@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&family=Playfair+Display:wght@700&display=swap');

:root {
    --primary-bg: #1a1a1a;
    --secondary-bg: #222222;
    --text-color-light: #ffffff;
    --text-color-dark: #cccccc;
    --accent-color: #222222;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
}

html {
    scroll-behavior: smooth;
}

#contato {
    scroll-margin-top: 100px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-color-light);
    background-color: var(--primary-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: var(--text-color-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

ul {
    list-style: none;
}

.hero {
    background: url('./imagens/montanha.jpeg') no-repeat center center/cover;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    position: relative;
    padding-top: 20px;
}

.navbar {
    width: 100%;
    padding: 15px 0;
    background-color: rgba(0, 0, 0, 0.5);
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.nav-links a {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1.1em;
    padding: 5px 10px;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -5px;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease, left 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
    left: 0;
}

.hero-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--text-color-light);
    margin-top: 50px;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 4.5em;
    margin-bottom: 5px;
    letter-spacing: 2px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}

.hero-content p {
    font-family: var(--font-body);
    font-size: 1.8em;
    font-weight: 400;
    letter-spacing: 1px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.scroll-indicator {
    padding-bottom: 30px;
    animation: bounce 2s infinite;
}

.scroll-indicator img {
    width: 40px;
    height: 40px;
    filter: drop-shadow(0 0 5px rgba(0,0,0,0.5));
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

section {
    padding: 80px 5%;
    text-align: center;
}

h2 {
    font-family: var(--font-heading);
    font-size: 2.5em;
    margin-bottom: 50px;
    color: var(--text-color-light);
    letter-spacing: 1px;
    display: inline-block;
}

.skills {
    background-color: var(--primary-bg);
    overflow: hidden;
    position: relative;
    padding-top: 40px;
    padding-bottom: 10px;
}

.skills h2 {
    margin-bottom: 70px;
}

.skills-wrapper {
    width: 100%;
    max-width: 1000px;
    margin: 10px auto;
    overflow: hidden;
    position: relative;
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.skills-grid {
    display: flex;
    gap: 40px;
    width: max-content;
    animation: scroll-seamless 25s linear infinite;
}

@keyframes scroll-seamless {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-50% - 20px));
    }
}

.skill-item {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    padding: 0;
}

.skill-item img {
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
    filter: invert(100%) brightness(120%);
    transition: none;
}

.skill-item:hover img {
    transform: none;
}

.skill-item p {
    font-size: 1em;
    font-weight: 700;
    color: var(--text-color-light);
}

.about-me {
    background-color: var(--secondary-bg);
    padding: 60px 5%;
    display: flex;
    justify-content: center;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 60px;
    max-width: 1000px;
    text-align: left;
}

.about-image-container {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #333;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.profile-pic {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.5s ease;
}

.profile-pic:hover {
    filter: grayscale(0%);
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text h2 {
    text-align: left;
    margin-bottom: 30px;
    font-size: 2.2em;
}

.about-text h2::after {
    display: none !important;
}

.about-text p {
    font-size: 1.1em;
    color: var(--text-color-dark);
    margin-bottom: 30px;
    max-width: 600px;
}

.btn-download-cv {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--text-color-light);
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 700;
    transition: transform 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.btn-download-cv:hover {
    color: #ffffff;
    transform: translateY(-3px);
    background-color: var(--accent-color);
}

.projects {
    background-color: var(--primary-bg);
    padding-bottom: 20px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto 50px;
}

.flip-card {
    background-color: transparent;
    width: 100%;
    height: 400px;
}

.flip-card-inner {
    width: 100%;
    height: 100%;
    transition: transform 0.8s ease;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.flip-card-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.flip-card-back {
    background-color: #000000;
    color: white;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}

.footer {
    background-color: #0a0a0a;
    color: var(--text-color-dark);
    padding: 30px 5%;
    display: flex;
    justify-content: center;
    align-items: center;
    border-top: 0px solid #333;
}

.footer-container {
    width: 100%;
    max-width: 1000px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left,
.footer-right {
    flex: 1;
    display: flex;
    align-items: center;
}

.footer-left {
    justify-content: flex-start;
}

.footer-center {
    flex: 2;
    display: flex;
    justify-content: center;
    text-align: center;
}

.footer-center p {
    white-space: nowrap;
}

.footer-right {
    justify-content: flex-end;
    gap: 20px;
}

.fatec-logo {
    height: 30px;
    filter: brightness(0) invert(1);
}

.footer-right img {
    width: 25px;
    height: 25px;
    transition: transform 0.3s ease;
    filter: grayscale(100%) brightness(150%);
}

.footer-right img:hover {
    transform: translateY(-3px);
    filter: grayscale(0%) brightness(100%);
}

@media (max-width: 900px) {
    .about-content {
        flex-direction: column;
        text-align: center;
    }
    .about-text h2 {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .nav-links {
        gap: 15px;
    }
    .hero-content h1 {
        font-size: 3.5em;
    }
    .hero-content p {
        font-size: 1.5em;
    }
    h2 {
        font-size: 2em;
    }
    .skills-grid {
        gap: 20px;
    }
    .skill-item img {
        width: 50px;
        height: 50px;
    }
    .footer-container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    .footer-left,
    .footer-center,
    .footer-right {
        justify-content: center;
        width: 100%;
    }
    .footer-center p {
        white-space: normal;
    }
}

@media (max-width: 480px) {
    .nav-links {
        flex-wrap: wrap;
    }
    .hero-content h1 {
        font-size: 2.5em;
    }
    .about-image-container {
        width: 200px;
        height: 200px;
    }
}
