@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --bg-color: #0b1020;
    --surface: #111827;
    --surface-strong: #172033;
    --section-bg: #10192b;
    --text-main: #f8fafc;
    --text-sub: #a7b0c0;
    --accent: #14b8a6;
    --accent-strong: #0f766e;
    --accent-soft: rgba(20, 184, 166, 0.14);
    --rose: #f472b6;
    --card-bg: rgba(17, 24, 39, 0.82);
    --border-color: rgba(148, 163, 184, 0.18);
    --header-bg: rgba(11, 16, 32, 0.82);
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
    --radius: 8px;
    --avatar-position: 50% 28%;
    --avatar-zoom: 1.4;
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(var(--avatar-zoom)); }
    50% { transform: translateY(-10px) scale(var(--avatar-zoom)); }
}

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

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 18% 16%, rgba(20, 184, 166, 0.15), transparent 28rem),
        linear-gradient(180deg, var(--bg-color), var(--bg-color));
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    width: 100%;
    padding: 1rem clamp(1.25rem, 6vw, 5rem);
    background: var(--header-bg);
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.logo {
    color: var(--text-main);
    font-size: 1.15rem;
    font-weight: 800;
    text-decoration: none;
}

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

.main-nav {
    display: flex;
    align-items: center;
    gap: 1.6rem;
}

.main-nav a {
    color: var(--text-sub);
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
}

.main-nav a:hover,
.main-nav a:focus-visible {
    color: var(--text-main);
}

.hero {
    width: min(1120px, calc(100% - 2rem));
    min-height: 100vh;
    margin: 0 auto;
    padding: 8.5rem 0 5rem;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    align-items: center;
    gap: clamp(2rem, 6vw, 5rem);
}

.hero-content {
    max-width: 680px;
}

.eyebrow {
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 1rem;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: var(--accent);
}

.hero h1 {
    max-width: 760px;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 500;
    line-height: 1.2;
    color: var(--text-main);
}

.hero-subtitle {
    display: block;
    margin-top: 0.5rem;
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    font-weight: 400;
    color: var(--text-sub);
    letter-spacing: 0.02em;
}


.hero p,
.section-heading p,
.project-info p,
.about-copy p,
.contact-info span {
    color: var(--text-sub);
}

.hero p {
    max-width: 620px;
    margin-top: 1.2rem;
    font-size: 0.95rem;
    color: var(--text-sub);
    line-height: 1.6;
}

.about-copy{
    width: 100%;
}

.btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 2rem;
}

.btn {
    min-height: 2.5rem;
    padding: 0.6rem 1.1rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn i,
.project-link i,
.contact-icon i {
    width: 1rem;
    height: 1rem;
}

.btn-primary {
    background: var(--accent);
    color: #041312;
    box-shadow: 0 18px 35px rgba(20, 184, 166, 0.24);
}

.btn-primary:hover,
.btn-primary:focus-visible {
    background: #2dd4bf;
    transform: translateY(-2px);
}

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

.btn-secondary:hover,
.btn-secondary:focus-visible {
    background: var(--surface);
    transform: translateY(-2px);
}

.profile-area {
    display: flex;
    justify-content: center;
    perspective: 900px;
}

.avatar-card {
    position: relative;
    width: min(340px, 76vw);
    aspect-ratio: 4 / 5;
    isolation: isolate;
    transform: rotate(2deg);
}

.avatar-card::before {
    content: "";
    position: absolute;
    inset: 1.05rem -0.8rem -0.85rem 1.1rem;
    z-index: -2;
    border: 1px solid var(--border-color);
    border-radius: 28px;
    background:
        linear-gradient(135deg, rgba(244, 114, 182, 0.16), transparent 42%),
        linear-gradient(315deg, rgba(20, 184, 166, 0.22), transparent 45%),
        var(--surface);
    box-shadow: var(--shadow);
}

.avatar-frame {
    position: absolute;
    inset: 0.25rem;
    border-radius: 30px;
    overflow: hidden;
    background: var(--surface-strong);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.avatar-frame::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(180deg, transparent 48%, rgba(11, 16, 32, 0.62)),
        linear-gradient(135deg, rgba(20, 184, 166, 0.2), transparent 36%);
    pointer-events: none;
}

.avatar-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 28%;
    transform: scale(1.42);
    transform-origin: 50% 28%;
    filter: saturate(1.05) contrast(1.03);
}

.availability-badge {
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 3;
    padding: 0.8rem 0.9rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background: rgba(11, 16, 32, 0.78);
    color: #ffffff;
    font-size: 0.86rem;
    font-weight: 700;
    backdrop-filter: blur(14px);
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.availability-badge span {
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 0.32rem rgba(34, 197, 94, 0.18);
}

.section {
    padding: 6.5rem clamp(1.25rem, 6vw, 5rem);
}

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

.section-heading {
    width: min(1120px, 100%);
    margin: 0 auto 3rem;
}

.section-heading h2 {
    max-width: 720px;
    font-size: clamp(1.55rem, 2.9vw, 2.4rem);
    line-height: 1.12;
}

.section-heading p {
    max-width: 620px;
    margin-top: 0.9rem;
    font-size: 1rem;
}

.projects-grid,
.power-content,
.about-content,
.contact-grid {
    width: min(1120px, 100%);
    margin: 0 auto;
}

.power-section {
    padding-bottom: 3.25rem;
    background:
        radial-gradient(circle at 18% 8%, rgba(20, 184, 166, 0.12), transparent 22rem),
        radial-gradient(circle at 84% 34%, rgba(96, 165, 250, 0.1), transparent 24rem),
        linear-gradient(180deg, var(--bg-color), #0f1726 56%, var(--section-bg));
    color: var(--text-main);
}

.power-section + #sobre {
    padding-top: 3.25rem;
}

.power-content {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
}

.power-text {
    display: grid;
    gap: 0.95rem;
    max-width: 560px;
}

.power-text h2 {
    font-size: clamp(1.35rem, 2.2vw, 1.9rem);
    line-height: 1;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0;
    font-weight: 800;
}

.power-text p {
    max-width: 34rem;
    color: rgba(167, 176, 192, 0.82);
    font-size: clamp(0.92rem, 1.4vw, 1rem);
    line-height: 1.72;
}

.power-board {
    position: relative;
    min-height: clamp(27rem, 40vw, 34rem);
    max-width: 560px;
    width: 100%;
    justify-self: end;
    border-radius: 20px;
    background:
        linear-gradient(rgba(148, 163, 184, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.025) 1px, transparent 1px);
    background-size: 42px 42px;
    overflow: hidden;
}

.power-note {
    position: absolute;
    width: clamp(10.5rem, 17vw, 13.5rem);
    min-height: clamp(8.2rem, 13vw, 10.6rem);
    padding: clamp(0.95rem, 1.7vw, 1.2rem);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 8px 8px 18px 8px;
    background:
        radial-gradient(circle at 18% 16%, rgba(255, 255, 255, 0.28), transparent 8rem),
        linear-gradient(135deg, rgba(255, 255, 255, 0.3), transparent 55%),
        var(--note-color, #d8c8e8);
    color: #18202d;
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.26), inset 0 -18px 30px rgba(31, 41, 55, 0.05);
    transform: translateY(0) rotate(var(--tilt, 0deg));
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.power-note:hover {
    box-shadow: 0 24px 42px rgba(0, 0, 0, 0.32), inset 0 -18px 30px rgba(31, 41, 55, 0.05);
    transform: translateY(-4px) rotate(var(--tilt, 0deg));
}

.power-note::before {
    content: "";
    position: absolute;
    top: -0.8rem;
    left: 50%;
    width: 1.22rem;
    height: 1.22rem;
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 30%, #7b8087 0 18%, #24282f 19% 58%, #0d1016 59%);
    box-shadow: 0 0.55rem 0.85rem rgba(0, 0, 0, 0.32);
    transform: translateX(-50%);
    z-index: 2;
}

.power-note::after {
    content: "";
    position: absolute;
    right: -1px;
    bottom: -1px;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 16px 0 14px 0;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.13)),
        color-mix(in srgb, var(--note-color, #d8c8e8), #0b1020 10%);
    clip-path: polygon(100% 0, 100% 100%, 0 100%);
    box-shadow: -0.45rem -0.45rem 0.9rem rgba(0, 0, 0, 0.12);
}

.power-note h3 {
    max-width: 10.5rem;
    margin-bottom: 0.55rem;
    color: #121821;
    font-family: 'Inter', sans-serif;
    font-size: clamp(0.96rem, 1.45vw, 1.14rem);
    line-height: 1.15;
    font-weight: 800;
}

.power-note p {
    color: rgba(18, 24, 33, 0.82);
    font-size: clamp(0.78rem, 1vw, 0.88rem);
    line-height: 1.45;
}

.power-board-dot {
    position: absolute;
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 50%;
    background: rgba(20, 184, 166, 0.55);
    box-shadow: 0 0 0 0.35rem rgba(20, 184, 166, 0.08);
}

.power-board-dot--one {
    top: 15%;
    left: 34%;
}

.power-board-dot--two {
    right: 18%;
    bottom: 20%;
    background: rgba(148, 163, 184, 0.6);
    box-shadow: 0 0 0 0.35rem rgba(148, 163, 184, 0.08);
}

.power-board-line {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(148, 163, 184, 0.26), transparent);
    transform-origin: left center;
}

.power-board-line--one {
    top: 35%;
    left: 30%;
    width: 10rem;
    transform: rotate(8deg);
}

.power-board-line--two {
    right: 24%;
    bottom: 36%;
    width: 9rem;
    transform: rotate(-12deg);
}

.power-note--canvas {
    top: 8%;
    left: 7%;
    --note-color: #d9c6ea;
    --note-accent: #7f56c5;
}

.power-note--sharepoint {
    top: 2%;
    right: 10%;
    --note-color: #eee8dd;
    --note-accent: #7f56c5;
}

.power-note--ai {
    bottom: 8%;
    left: 12%;
    --note-color: #e9d49a;
    --note-accent: #c98505;
}

.power-note--learning {
    right: 8%;
    bottom: 10%;
    --note-color: #cfddeb;
    --note-accent: #5872b7;
}

.about-content {
    width: min(1120px, 100%);
}

.projects-carousel {
    position: relative;
    width: min(1200px, 100%);
    margin: 0 auto;
    overflow: visible;
}

.projects-grid {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    width: 100%;
    max-width: none;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.25rem clamp(0.25rem, 1.5vw, 1rem) 1rem;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.projects-grid::-webkit-scrollbar {
    height: 0;
}

@media (max-width: 640px) {
    .projects-grid {
        gap: 2.5rem;
        flex-direction: column;
        overflow-x: visible;
        overflow-y: visible;
        scroll-snap-type: none;
    }

    .project-card {
        flex: 1 1 auto;
        width: 100%;
        max-width: 100%;
        min-height: auto;
        overflow: visible;
        scroll-snap-align: none;
        scroll-snap-stop: normal;
    }

    .project-preview {
        height: auto;
        min-height: 220px;
        max-height: none;
        aspect-ratio: 16 / 10;
    }
}

.project-card,
.about-card,
.skills-card,
.contact-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background: transparent;
    box-shadow: none;
}

.project-card {
    flex: 0 0 clamp(300px, 31vw, 356px);
    min-height: 580px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
    padding: 1.45rem;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    background: var(--card-bg);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.12);
    transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.project-card.project-compact {
    background: linear-gradient(180deg, rgba(20, 184, 166, 0.04), transparent 36%), var(--card-bg);
}

.project-card.project-featured {
    border-color: rgba(20, 184, 166, 0.35);
    box-shadow: 0 18px 52px rgba(20, 184, 166, 0.12);
    background: linear-gradient(180deg, rgba(20, 184, 166, 0.06), transparent 42%), var(--card-bg);
}

.project-card:hover {
    transform: translateY(-4px) scale(1.015);
    border-color: rgba(20, 184, 166, 0.52);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.18);
}

.project-card:hover .project-preview {
    transform: scale(1.01);
}

.project-preview {
    height: 240px;
    max-height: 250px;
    background: linear-gradient(145deg, var(--surface-strong), rgba(20, 184, 166, 0.12));
    display: grid;
    place-items: center;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.project-compact .project-preview {
    height: 220px;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
}

.preview-window {
    width: min(100%, 420px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius);
    background: rgba(11, 16, 32, 0.64);
    overflow: hidden;
}

.preview-topbar {
    height: 2rem;
    padding: 0 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.preview-topbar span {
    width: 0.48rem;
    height: 0.48rem;
    border-radius: 50%;
    background: var(--rose);
}

.preview-content {
    min-height: 160px;
    padding: 1rem;
    display: grid;
    grid-template-columns: 4rem 1fr;
    gap: 1rem;
}

.preview-sidebar,
.preview-panel {
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.1);
}

.preview-panel {
    padding: 1rem;
}

.preview-line {
    height: 0.65rem;
    max-width: 78%;
    margin-bottom: 0.7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
}

.preview-line.large {
    height: 1.1rem;
    max-width: 52%;
    background: var(--accent);
}

.preview-tasks {
    display: grid;
    gap: 0.55rem;
    margin-top: 1rem;
}

.preview-tasks span {
    height: 1.9rem;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.12);
}

.study-preview {
    justify-items: start;
    align-content: end;
    color: var(--text-main);
}

.study-preview i {
    width: 3rem;
    height: 3rem;
    color: var(--accent);
}

.study-preview span,
.project-status {
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.study-preview strong {
    display: block;
    max-width: 260px;
    margin-top: 0.35rem;
    font-size: 1.45rem;
    line-height: 1.15;
}

.project-info {
    padding: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 0;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.1rem;
}

.tag {
    padding: 0.38rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: transparent;
    color: var(--text-sub);
    font-size: 0.74rem;
    font-weight: 600;
    text-transform: capitalize;
}

.tag-status {
    border-color: rgba(20, 184, 166, 0.38);
    color: var(--accent);
    background: rgba(20, 184, 166, 0.08);
    text-transform: uppercase;
    font-weight: 700;
}

.project-info h3 {
    margin-bottom: 1.15rem;
    font-size: 1.45rem;
    font-weight: 600;
}

.project-info p {
    margin-bottom: 1.7rem;
    font-size: 0.9rem;
    line-height: 1.7;
}

.project-link {
    width: fit-content;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.project-link:hover,
.project-link:focus {
    color: #2dd4bf;
    transform: translateX(4px);
}

.projects-carousel:hover .carousel-nav,
.projects-carousel:focus-within .carousel-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(-50%) scale(1);
}

.carousel-nav {
    position: absolute;
    top: 50%;
    z-index: 40;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: rgba(11, 16, 32, 0.62);
    color: var(--text-main);
    display: grid;
    place-items: center;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 1;
    pointer-events: auto;
    transform: translateY(-50%) scale(1);
    transition: opacity 0.18s ease, transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.carousel-nav:hover,
.carousel-nav:focus-visible {
    background: rgba(20, 184, 166, 0.14);
    border-color: rgba(20, 184, 166, 0.4);
    color: var(--accent);
}

.carousel-prev {
    left: 0.25rem;
}

.carousel-next {
    right: 0.25rem;
}

.carousel-nav i {
    width: 1rem;
    height: 1rem;
}

.carousel-nav.is-disabled {
    opacity: 0;
    pointer-events: none;
}

.project-status {
    display: inline-block;
}

.project-footer {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    justify-content: flex-start;
}

.project-status-private {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    width: fit-content;
    padding: 0.5rem 0.85rem;
    margin-top: 1.25rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.14), rgba(14, 165, 233, 0.08));
    border: 1px solid rgba(20, 184, 166, 0.28);
    color: var(--text-main);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.about-content {
    margin-bottom: 24px;
}

.about-copy {
    width: 100%;
    max-width: none;
    margin: 0 0 3rem 0;
    text-align: left;
}

.about-copy p + p {
    margin-top: 1rem;
}

.skills-card {
    width: min(1120px, 100%);
    margin: 0 auto;
    padding: clamp(1.35rem, 3vw, 2rem) 0;
    border: none;
    border-radius: var(--radius);
    background: transparent;
    box-shadow: none;
}

.skills-card h3 {
    margin-bottom: 1.35rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.competencies-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.competency-card {
    padding: 1.35rem 1.25rem 1.4rem;
    border: none;
    border-radius: calc(var(--radius) + 6px);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 70%), var(--card-bg);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.10);
}

.competency-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.competency-head i {
    width: 1.1rem;
    height: 1.1rem;
    flex-shrink: 0;
}

.competency-head h4 {
    color: var(--text-main);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

.competency-card--blue {
    border-color: rgba(59, 130, 246, 0.28);
}

.competency-card--blue .competency-head i,
.competency-card--blue .competency-list i {
    color: #60a5fa;
}

.competency-card--green {
    border-color: rgba(34, 197, 94, 0.28);
}

.competency-card--green .competency-head i,
.competency-card--green .competency-list i {
    color: #4ade80;
}

.competency-card--purple {
    border-color: rgba(168, 85, 247, 0.28);
}

.competency-card--purple .competency-head i,
.competency-card--purple .competency-list i {
    color: #c084fc;
}

.competency-list {
    list-style: none;
    display: grid;
    gap: 0.75rem;
}

.competency-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    color: var(--text-sub);
    font-size: 0.9rem;
    line-height: 1.45;
}

.competency-list i {
    width: 0.95rem;
    height: 0.95rem;
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.contact-section {
    background: linear-gradient(180deg, var(--bg-color), var(--section-bg));
}

#sobre {
    padding-bottom: 2.5rem;
}

#contato {
    padding-top: 2.5rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.contact-card {
    min-width: 0;
    padding: 1.2rem;
    color: inherit;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.contact-card:hover,
.contact-card:focus-visible {
    border-color: var(--accent);
    transform: translateY(-4px);
}

.contact-icon {
    flex: 0 0 auto;
    width: 2.8rem;
    height: 2.8rem;
    border-radius: var(--radius);
    background: var(--accent-soft);
    color: var(--accent);
    display: grid;
    place-items: center;
}

.contact-icon i {
    width: 1.2rem;
    height: 1.2rem;
}

.contact-icon img {
    width: 1.2rem;
    height: 1.2rem;
    display: block;
}

.contact-icon svg {
    width: 1.2rem;
    height: 1.2rem;
    display: block;
}



/* Modal de Projeto */
.project-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow);
    animation: slideUp 0.3s ease;
}

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

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    background: var(--surface-strong);
    color: var(--text-main);
    border-radius: var(--radius);
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.modal-close:hover,
.modal-close:focus-visible {
    background: var(--accent);
    color: var(--bg-color);
}

.modal-body {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    gap: 2rem;
    padding: 2rem;
    align-items: start;
}

.modal-media {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    align-self: start;
    width: 100%;
}

.modal-gallery {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    width: 100%;
}

.gallery-container {
    position: relative;
    display: block;
    border-radius: calc(var(--radius) + 4px);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.86));
    overflow: hidden;
    aspect-ratio: 16 / 9;
    width: 100%;
    max-height: min(58vh, 520px);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    background: transparent;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2.75rem;
    height: 2.75rem;
    background: rgba(15, 23, 42, 0.35);
    backdrop-filter: blur(14px) saturate(150%);
    -webkit-backdrop-filter: blur(14px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    color: var(--text-main);
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    z-index: 10;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.gallery-nav:hover,
.gallery-nav:focus-visible {
    background: rgba(20, 184, 166, 0.18);
    border-color: rgba(20, 184, 166, 0.35);
    color: var(--text-main);
    transform: translateY(-50%) scale(1.04);
}

.gallery-prev {
    left: 0.85rem;
}

.gallery-next {
    right: 0.85rem;
}

.gallery-indicators {
    display: flex;
    justify-content: center;
    gap: 0.55rem;
    padding: 0;
}

.indicator {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: var(--border-color);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.indicator.active {
    background: var(--accent);
    width: 1.5rem;
    border-radius: 999px;
}

.modal-info {
    display: flex;
    flex-direction: column;
    gap: 0.95rem;
}

.modal-info h2 {
    font-size: 1.4rem;
    color: var(--text-main);
}

.modal-info .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.modal-info p {
    color: var(--text-sub);
    line-height: 1.65;
}

#modalAccessStatus {
    margin-top: 0.15rem;
}

.project-access-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.42rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(20, 184, 166, 0.16);
    background: rgba(20, 184, 166, 0.06);
    color: var(--text-sub);
    font-size: 0.84rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.project-access-status i {
    width: 0.95rem;
    height: 0.95rem;
    color: var(--accent);
    flex: 0 0 auto;
}

.modal-details {
    padding: 1.2rem;
    background: var(--surface-strong);
    border-radius: var(--radius);
}

.tech-stack {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.tech-stack strong {
    color: var(--text-main);
}

.tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-badge {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background: var(--accent-soft);
    color: var(--accent);
    border-radius: 4px;
    font-size: 0.85rem;
}

.modal-actions {
    display: flex;
    gap: 0.8rem;
    margin-top: 0.25rem;
}

.modal-actions .btn {
    flex: 1;
}

/* Responsividade do Modal */
@media (max-width: 768px) {
    .modal-body {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .modal-gallery {
        order: -1;
    }

    .modal-info h2 {
        font-size: 1.25rem;
    }

    .project-actions {
        flex-direction: column;
    }

    .btn-view-project {
        width: 100%;
    }

    .gallery-nav {
        width: 2rem;
        height: 2rem;
    }

    .gallery-container {
        aspect-ratio: 16 / 9;
        max-height: min(42vh, 340px);
    }
}

.contact-info {
    min-width: 0;
}

.contact-info strong,
.contact-info span {
    display: block;
}

.contact-info span {
    font-size: 0.92rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.site-footer {
    padding: 1.5rem clamp(1.25rem, 6vw, 5rem);
    border-top: 1px solid var(--border-color);
    color: var(--text-sub);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.site-footer a {
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
}

button,
a {
    transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

:focus-visible {
    outline: 3px solid rgba(20, 184, 166, 0.35);
    outline-offset: 3px;
}

@media (max-width: 1100px) and (min-width: 641px) {
    .section {
        padding: 5.25rem clamp(1.5rem, 4vw, 3rem);
    }

    .hero {
        min-height: auto;
        padding-top: 7.5rem;
        padding-bottom: 4.5rem;
        grid-template-columns: minmax(0, 1fr) minmax(250px, 0.72fr);
        gap: clamp(2rem, 4vw, 3rem);
    }

    .avatar-card {
        width: min(300px, 34vw);
    }

    .projects-grid {
        gap: 1.25rem;
        padding-inline: 0.25rem;
    }

    .project-card {
        flex-basis: clamp(300px, 43vw, 340px);
        min-height: 560px;
        padding: 1.2rem;
    }

    .project-preview {
        height: 210px;
        max-height: 220px;
    }

    .power-content {
        grid-template-columns: 1fr;
        gap: 2.75rem;
    }

    .power-text {
        max-width: 760px;
    }

    .power-text p {
        max-width: 720px;
    }

    .power-board {
        justify-self: stretch;
        max-width: none;
        min-height: 28rem;
    }

    .power-note {
        width: clamp(12rem, 28vw, 15rem);
    }

    .power-note--canvas {
        left: 8%;
    }

    .power-note--sharepoint {
        right: 10%;
    }

    .power-note--ai {
        left: 13%;
    }

    .power-note--learning {
        right: 11%;
    }

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

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

@media (max-width: 900px) {
    .main-nav {
        display: flex;
        gap: 0.85rem;
    }

    .main-nav a {
        font-size: 0.78rem;
    }

    .hero {
        grid-template-columns: 1fr;
        padding-top: 7.25rem;
        text-align: left;
    }

    .profile-area {
        order: -1;
        justify-content: flex-start;
    }

    .avatar-card {
        width: min(320px, 88vw);
        max-width: 340px;
        transform: rotate(0);
    }

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

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

    .power-board {
        justify-self: stretch;
        max-width: none;
    }

    .power-board {
        min-height: auto;
        display: flex;
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 1rem;
        padding: 1rem;
        overflow: visible;
    }

    .power-note {
        position: relative;
        inset: auto;
        transform: rotate(var(--tilt, 0deg));
    }

    .power-note {
        flex: 1 1 13rem;
    }

    .power-board-line {
        display: none;
    }

    .about-content {
        margin-bottom: 20px;
    }

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

    .projects-carousel {
        width: 100%;
    }

    .carousel-nav {
        opacity: 1;
        pointer-events: auto;
    }
}

@media (min-width: 641px) and (max-width: 900px) {
    .power-board {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.25rem;
    }

    .power-note {
        width: 100%;
        min-height: 10rem;
        flex: initial;
    }

    .projects-grid {
        flex-wrap: wrap;
        overflow: visible;
    }

    .project-card {
        flex: 1 1 calc(50% - 1rem);
        min-width: 300px;
    }
}

@media (max-width: 560px) {
    .main-nav {
        gap: 0.55rem;
    }

    .main-nav a {
        font-size: 0.72rem;
    }

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

    .power-section {
        padding-inline: 1rem;
        padding-bottom: 2.5rem;
    }

    .power-content {
        gap: 1.6rem;
    }

    .power-text p {
        font-size: 0.94rem;
    }

    .power-board {
        padding: 1rem 0.75rem;
        border-radius: 18px;
        gap: 1.1rem;
    }

    .power-note {
        flex-basis: 100%;
        width: 100%;
        min-height: auto;
        transform: none;
    }

    .site-header {
        padding-inline: 1rem;
        gap: 0.75rem;
    }

    .logo {
        font-size: 1rem;
    }

    .hero {
        width: min(100% - 2rem, 1120px);
        min-height: auto;
        padding-top: 6.5rem;
        padding-bottom: 3.5rem;
    }

    .btn-group,
    .btn {
        width: 100%;
    }

    .projects-grid {
        gap: 1.25rem;
        padding-inline: 0;
    }

    .carousel-nav {
        width: 2.4rem;
        height: 2.4rem;
        top: 1rem;
        transform: none;
        opacity: 1;
        pointer-events: auto;
    }

    .carousel-prev {
        left: 0.5rem;
    }

    .carousel-next {
        right: 0.5rem;
    }

    .section {
        padding-block: 4.5rem;
    }

    .power-section {
        padding-top: 4rem;
        padding-bottom: 2.5rem;
    }

    .power-section + #sobre {
        padding-top: 2.5rem;
    }

    .project-preview {
        height: auto;
        min-height: 190px;
        aspect-ratio: 16 / 10;
        padding: 0;
    }

    .project-card {
        min-height: auto;
        overflow: visible;
        padding: 1.1rem;
    }

    .project-info {
        flex: initial;
    }

    .project-info p {
        margin-bottom: 1.2rem;
    }

    .project-footer {
        margin-top: 0.25rem;
    }

    .section-heading {
        margin-bottom: 2rem;
    }

    .about-copy {
        margin-bottom: 2rem;
    }

    .contact-card {
        padding: 1rem;
    }

    .expertise-block {
        padding: 1rem 1rem 1.05rem;
    }

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

    .preview-sidebar {
        display: none;
    }

    .site-footer {
        flex-direction: column;
    }
}
