/* HEADER */
.header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: visible;
}

.nav {
    width: 100%;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 70px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-image {
    height: 120px;
    object-fit: contain;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 25px;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #007BFF;
}

.header-controls {
    display: flex;
    gap: 10px;
}

.header-controls button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: #333;
    transition: color 0.3s ease;
}

.header-controls button:hover {
    color: #007BFF;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle .bar {
    height: 3px;
    width: 25px;
    background-color: #333;
    margin: 4px 0;
    transition: 0.3s;
}



/* MAIN */
/* HERO */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(120deg, #f5f7fa, #e4ecf7);
    padding: 0 20px;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-title {
    font-size: 48px;
    color: #222;
    margin-bottom: 20px;
}

.hero-title span {
    color: #007BFF;
}

.hero-subtitle {
    font-size: 18px;
    color: #555;
    margin-bottom: 30px;
    max-width: 500px;
    text-align: justify;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 12px 25px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn.primary {
    background-color: #007BFF;
    color: #fff;
}

.btn.primary:hover {
    background-color: #0056b3;
}

.btn.secondary {
    border: 2px solid #007BFF;
    color: #007BFF;
}

.btn.secondary:hover {
    background-color: #007BFF;
    color: #fff;
}

.hero-image {
    position: relative;
    width: 350px;
    height: 350px;
    min-width: 350px;
    min-height: 350px;
    overflow: hidden;
    border-radius: 10px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}



/* SECTIONS COMUNS */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
}

.section-title {
    font-size: 36px;
    color: #222;
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: #007BFF;
    margin-top: 10px;
    border-radius: 2px;
}

/* SOBRE MIM */
.about {
    background-color: #f9fbff;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-text p {
    font-size: 16px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 16px;
}

.about-skills h3 {
    font-size: 20px;
    color: #222;
    margin-bottom: 20px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 10px;
    background: #fff;
    border: 1px solid #e8eef7;
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.skill-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0,123,255,0.12);
}

.skill-item i {
    font-size: 32px;
}

.skill-item span {
    font-size: 13px;
    color: #555;
    font-weight: 500;
}

.skills-extra {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.skill-badge {
    background-color: #e8f0fe;
    color: #007BFF;
    font-size: 13px;
    font-weight: 500;
    padding: 7px 16px;
    border-radius: 20px;
    border: 1px solid #c8dcfe;
}

body.dark-mode .skill-badge {
    background-color: #1a3a5c;
    color: #5ba3ff;
    border-color: #1e4a7a;
}

/* TRAJETÓRIA */
.trajectory {
    background-color: #fff;
}

.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background-color: #e0e9f7;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-dot {
    position: absolute;
    left: -26px;
    top: 6px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #007BFF;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px #007BFF;
}

.timeline-date {
    font-size: 13px;
    color: #007BFF;
    font-weight: 600;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 6px;
}

.timeline-content h3 {
    font-size: 18px;
    color: #222;
    margin-bottom: 8px;
}

.timeline-content p {
    font-size: 15px;
    color: #666;
    line-height: 1.7;
}

/* PROJETOS */
.projects {
    background-color: #f9fbff;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.project-card {
    background: #fff;
    border: 1px solid #e8eef7;
    border-radius: 12px;
    padding: 28px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,123,255,0.1);
}

.project-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.project-icon {
    font-size: 28px;
    color: #007BFF;
}

.project-links a {
    font-size: 20px;
    color: #555;
    transition: color 0.2s ease;
}

.project-links a:hover {
    color: #007BFF;
}

.project-name {
    font-size: 18px;
    color: #222;
    margin-bottom: 10px;
}

.project-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    margin-bottom: 18px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background-color: #e8f0fe;
    color: #007BFF;
    font-size: 12px;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 20px;
}

/* CONTATO */
.contact {
    background-color: #fff;
    text-align: center;
}

.contact-subtitle {
    font-size: 17px;
    color: #555;
    margin-bottom: 40px;
    margin-top: -30px;
}

.contact-links {
    justify-content: center;
    display: flex;
    align-items: center;
    gap: 16px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    color: #333;
    padding: 14px 28px;
    border: 1px solid #e8eef7;
    border-radius: 8px;
    width: 340px;
    transition: all 0.3s ease;
}

.contact-link:hover {
    border-color: #007BFF;
    color: #007BFF;
    background-color: #f0f7ff;
}

.contact-link i {
    font-size: 20px;
    width: 24px;
    text-align: center;
}

/* FOOTER */
.footer {
    background-color: #1a1a2e;
    color: #aaa;
    text-align: center;
    padding: 24px 20px;
    font-size: 14px;
}

.footer strong {
    color: #fff;
}

/* ANIMAÇÃO SCROLL */
.hidden {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

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


/* DARK MODE */
body.dark-mode {
    background-color: #121212;
    color: #e0e0e0;
}

body.dark-mode .header {
    background: rgba(30, 30, 30, 0.7);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

body.dark-mode .nav-link { color: #ccc; }
body.dark-mode .header-controls button { color: #ccc; }

body.dark-mode .hero {
    background: linear-gradient(120deg, #1a1a2e, #16213e);
}

body.dark-mode .hero-title { color: #f0f0f0; }
body.dark-mode .hero-subtitle { color: #aaa; }

body.dark-mode .about { background-color: #1a1a2e; }
body.dark-mode .about-text p { color: #bbb; }
body.dark-mode .about-skills h3 { color: #f0f0f0; }
body.dark-mode .skill-item { background: #1e1e1e; border-color: #333; }
body.dark-mode .skill-item span { color: #bbb; }

body.dark-mode .trajectory { background-color: #121212; }
body.dark-mode .timeline::before { background-color: #333; }
body.dark-mode .timeline-dot { border-color: #121212; }
body.dark-mode .timeline-content h3 { color: #f0f0f0; }
body.dark-mode .timeline-content p { color: #aaa; }

body.dark-mode .projects { background-color: #1a1a2e; }
body.dark-mode .project-card { background: #1e1e1e; border-color: #333; }
body.dark-mode .project-name { color: #f0f0f0; }
body.dark-mode .project-desc { color: #aaa; }
body.dark-mode .project-links a { color: #aaa; }
body.dark-mode .tag { background-color: #1a3a5c; color: #5ba3ff; }

body.dark-mode .contact { background-color: #121212; }
body.dark-mode .contact-subtitle { color: #aaa; }
body.dark-mode .contact-link { color: #ccc; border-color: #333; }
body.dark-mode .contact-link:hover { background-color: #1a2a3a; border-color: #007BFF; color: #5ba3ff; }

body.dark-mode .section-title { color: #f0f0f0; }

/* ========================================= */
/* iPAD MINI */
/* ========================================= */
@media screen and (max-width: 768px) {

    .nav-container {
        height: 70px;
    }

    .nav-menu {
        position: fixed;

        top: 70px;
        left: -100%;

        width: 100%;
        height: calc(100vh - 70px);

        background: rgba(255, 255, 255, 0.95);

        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);

        flex-direction: column;
        align-items: center;
        justify-content: flex-start;

        gap: 30px;

        padding-top: 40px;

        transition: left 0.3s ease;

        z-index: 999;
    }

    body.dark-mode .nav-menu {
        background: rgba(30, 30, 30, 0.95);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

    .hero {
        height: auto;
        padding: 140px 20px 80px;
    }

    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 50px;
    }

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

    .hero-title {
        font-size: 42px;
    }

    .hero-subtitle {
        max-width: 650px;
        text-align: center;
    }

    .hero-image {
        width: 280px;
        height: 280px;
        min-width: 280px;
        min-height: 280px;
    }

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

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

    .contact-links {
        flex-direction: column;
    }

    .contact-link {
        width: 100%;
        max-width: 500px;
    }
}

/* ========================================= */
/* iPHONE SE */
/* ========================================= */
@media screen and (max-width: 375px) {

    .nav-container {
        height: 65px;
        padding: 0 12px;
    }

    .logo-image {
        height: 55px;
    }

    .header-controls {
        gap: 4px;
    }

    .header-controls button {
        font-size: 13px;
    }

    .nav-toggle {
        margin-left: 8px;
    }

    .nav-toggle .bar {
        width: 22px;
        height: 2px;
    }

    .hero {
        padding-top: 100px;
    }

    .hero-title {
        font-size: 28px;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 15px;
        line-height: 1.7;
    }

    .hero-image {
        width: 220px;
        height: 220px;
        min-width: 220px;
        min-height: 220px;
    }

    .hero-buttons {
        width: 100%;
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .section-title {
        font-size: 28px;
    }

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

    .project-card {
        padding: 20px;
    }

    .project-name {
        font-size: 16px;
    }

    .project-desc {
        font-size: 14px;
    }

    .project-tags {
        gap: 6px;
    }

    .tag {
        font-size: 11px;
    }

    .contact-link {
        font-size: 13px;
        padding: 12px;
    }

    .contact-link span {
        word-break: break-word;
    }
}