@import url('https://fonts.googleapis.com/css2?family=Lilita+One&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');

/* ===== TOKENS ===== */
:root {
    --color-gold:        #FFD700;
    --color-gold-dark:   #BF9F1C;
    --color-green-mid:   #758D72;
    --color-green-dark:  #577362;
    --color-bg-dark:     #1B2A29;
    --color-bg-light:    #D3DFD2;
    --color-orange:      #EA9B4D;
    --color-black:       #090909;
}

/* ===== RESET ===== */
*, *::before, *::after {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Share Tech Mono', monospace;
}

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

/* ===== HEADER ===== */
header {
    background-color: var(--color-green-dark);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 16px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 8000;
    opacity: 0.9;
}

#logo {
    height: 30px;
    width: auto;
    display: block;
}

/* Desktop nav */
.nav-links {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-links li a {
    padding: 10px;
    display: inline-block;
    color: var(--color-bg-light);
    font-weight: bold;
    transition: color 0.3s ease;
}

.nav-links li a:hover {
    color: var(--color-gold-dark);
}

/* Hamburger icon */
.menu-icon {
    display: none;
    cursor: pointer;
    padding-top: 2px;
}

.bar1, .bar2, .bar3 {
    width: 23px;
    height: 4px;
    background-color: var(--color-bg-light);
    margin: 3px 0;
    border-radius: 3px;
    transition: 0.4s;
}

.menu-icon.change .bar1 { transform: translate(0, 7px) rotate(-45deg); }
.menu-icon.change .bar2 { opacity: 0; }
.menu-icon.change .bar3 { transform: translate(0, -7px) rotate(45deg); }

/* ===== HOME ===== */
#home {
    background-color: var(--color-bg-dark);
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

#capa {
    padding-top: 51px;
    display: flex;
    align-items: center;
    flex: 1;
    flex-wrap: wrap;
    justify-content: space-evenly;
    gap: 24px;
}

#imagesun {
    display: flex;
    align-items: center;
    justify-content: center;
}

#fortune_sun {
    width: 253px;
    max-width: 100%;
}

#banner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

#name {
    font-family: 'Lilita One', cursive;
    font-size: clamp(3rem, 14vw, 6.5rem);
    line-height: 0.9;
    color: var(--color-gold);
    margin-top: 39px;
    text-align: justify;
}

#sname {
    font-family: 'Lilita One', cursive;
    font-size: clamp(2.2rem, 10.5vw, 4.8rem);
    line-height: 1;
    background-color: var(--color-gold);
    color: var(--color-bg-dark);
    text-align: center;
    width: 100%
}

h1 {
    color: var(--color-orange);
    letter-spacing: 0.9px;
    margin-top: 12px;
    margin-bottom: 39px;
}

#wrapsocial {
    display: flex;
    width: 200px;
    justify-content: space-evenly;
    gap: 24px;

}

/* Social icon wave animation */
.icon {
    animation: wave 2s ease-in-out infinite;
}

.icon-1 { animation-delay: 0s; }
.icon-2 { animation-delay: 0.33s; }

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

/* ===== WAVES SVG ===== */
.waves {
    display: block;
    width: 100%;
}

.waves--flip {
    transform: rotate(180deg);
}

.parallax > use {
    animation: move-forever 25s cubic-bezier(.55, .5, .45, .5) infinite;
}

.parallax > use:nth-child(1) { animation-delay: -2s; animation-duration: 7s; }
.parallax > use:nth-child(2) { animation-delay: -3s; animation-duration: 10s; }
.parallax > use:nth-child(3) { animation-delay: -4s; animation-duration: 13s; }
.parallax > use:nth-child(4) { animation-delay: -5s; animation-duration: 20s; }

@keyframes move-forever {
    0%   { transform: translate3d(-90px, 0, 0); }
    100% { transform: translate3d(85px, 0, 0); }
}

/* ===== SECTION HEADINGS ===== */
h2 {
    font-family: 'Bebas Neue', cursive;
    font-size: 30px;
    margin: 19px 9px;
    padding-top: 60px;
    text-decoration: underline;
}

/* ===== ABOUT ===== */
#about {
    width: 100%;
    background-color: var(--color-green-mid);
    display: flex;
    flex-direction: column;
    align-items: center;
}

#about h2 {
    color: var(--color-bg-dark);
}

.standart {
    margin: 0 10% 60px;
    line-height: 1.6;
}

/* Skills slideshow */
.slideshow-container {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: space-evenly;
    gap: 24px;
    padding: 0 16px;
}

.card {
    box-shadow: 3px 3px 9px rgba(0, 0, 0, 0.2);
    width: 230px;
    min-height: 330px;
    text-align: center;
    border-radius: 9px;
    border: 1px solid var(--color-green-dark);
    padding: 30px 16px;
    background-color: rgba(255,255,255,0.05);
}

.tec_conteiner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    margin-top: 32px;
    gap: 12px;
}

.skill-icon {
    width: 50px;
    height: 50px;
}

.figcaption {
    font-size: 0.6rem;
    margin-top: 2px;
}

/* Slide indicators */
.slide-indicators {
    display: none;
    margin: 12px 0 60px;
    text-align: center;
}

.bolinha {
    cursor: pointer;
    display: inline-block;
    width: 15px;
    height: 15px;
    margin: 0 3px;
    background-color: var(--color-green-dark);
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.bolinha.active {
    background-color: var(--color-bg-dark);
}

/* ===== PROJECTS ===== */
#projects {
    width: 100%;
    background-color: var(--color-bg-dark);
    padding-bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#projects h2 {
    color: var(--color-orange);
    text-align: center;
}

.projects-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
    padding: 0 16px;
    width: 100%;
    max-width: 1100px;
}

.project-container {
    color: var(--color-bg-light);
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 480px;
    flex: 1 1 300px;
}

.preview {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: none;
    border-radius: 6px;
}

.title {
    font-size: 18px;
    font-weight: bold;
}

.description,
.tecnologies {
    font-size: 13px;
    color: var(--color-green-mid);
}

/* ===== CONTACT ===== */
#contact {
    background: linear-gradient(
        to bottom, 
        var(--color-bg-dark) 0%, 
        var(--color-green-mid) 50% 
    );
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: center;
}

#contact h2 {
    margin-top: 60px;
    color: var(--color-bg-dark);
}

#contacts {
    width: 90%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-bottom: 60px;
    padding-top: 16px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

#contacts.visivel .contact-item {
    opacity: 1;
}

.contact-text {
    color: var(--color-bg-dark);
    font-size: 0.95rem;
}

.contact-link:hover {
    text-decoration: underline;
}

/* ===== FOOTER ===== */
footer {
    width: 100%;
    background-color: var(--color-black);
    color: var(--color-bg-light);
}

footer .waves {
    background-color: var(--color-green-mid);
}

.core {
    background-color: var(--color-black);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px 0 24px;
}

.site-map {
    display: flex;
    gap: 24px;
    font-size: 16px;
}

.site-map a {
    color: white;
    transition: color 0.3s ease;
}

.site-map a:hover {
    color: var(--color-gold-dark);
}

.footer-credit {
    color: var(--color-gold-dark);
    letter-spacing: -1px;
    font-style: italic;
    font-size: 0.9rem;
}

.footer-icons {
    color: var(--color-green-mid);
    font-size: 0.8rem;
}

.footer-icons a {
    color: var(--color-bg-light);
}

/* ===== RESPONSIVE  ===== */
@media (max-width: 768px) {
    /* Header */
    #logo {
        height: 22px;
    }

    .menu-icon {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 38px;
        left: 0;
        width: 100%;
        background-color: var(--color-green-dark);
        padding: 16px 0;
        z-index: 7999;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links li {
        text-align: center;
        padding: 16px 0;
    }

    .nav-links li a {
        font-size: 1.2rem;
    }

    /* Home */
    #capa {
        flex-direction: column;
        justify-content: center;
    }

    #fortune_sun {
        width: 180px;
    }

    /* About carousel */
    .standart {
        margin: 0 5% 40px;
    }

    .slideshow-container {
        position: relative;
        height: 370px;
        overflow: hidden;
    }

    .card {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.4s ease;
    }

    .card.active {
        opacity: 1;
        pointer-events: auto;
    }

    .slide-indicators {
        display: block;
    }

    /* Projects */
    .projects-grid {
        flex-direction: column;
        align-items: center;
    }

    .project-container {
        max-width: 90%;
    }

    /* Contact */
    #contacts {
        align-items: flex-start;
        padding-left: 5%;
    }

    /* Footer */
    .site-map {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
        font-size: 14px;
    }
}
