/* Variáveis CSS - Paleta Escala de Cinza */
:root {
    --primary-color: #2d2d2d;
    --secondary-color: #1a1a1a;
    --accent-color: #666666;
    --dark-neutral: #0f0f0f;
    --medium-gray: #4a4a4a;
    --light-gray: #e5e5e5;
    --lighter-gray: #f8f8f8;
    --white-color: #ffffff;
    --border-color: #d1d1d1;
    --text-light: #888888;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Montserrat", sans-serif;
    line-height: 1.6;
    background-color: var(--lighter-gray);
    color: var(--primary-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Portfolio home button */
.portfolio-home-button {
    position: fixed;
    bottom: 0;
    margin: auto;
    width: 100%;
    text-align: center;
}

.btn-view {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin: 0 20px 20px;
    transition: background-color 0.3s 
ease;
}

/* Header */
header {
    background-color: var(--dark-neutral);
    color: var(--white-color);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

header .container {
    display: flex;
    justify-content: space-between;
    /* align-items: center; */
    align-items: top;
}

header .logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--white-color);
    display: flex;
    align-items: center;
}

header nav ul {
    list-style: none;
}

header nav ul li {
    display: inline-block;
    margin-left: 20px;
}

header nav ul li a {
    color: var(--light-gray);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

header nav ul li a:hover {
    color: var(--white-color);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white-color);
    text-align: center;
    overflow: hidden;
    margin-top: 70px;
}

.hero .carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero .carousel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    filter: grayscale(100%);
}

.hero .carousel img.active {
    opacity: 1;
}

.hero .hero-content {
    position: relative;
    z-index: 10;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 40px;
    border-radius: 10px;
    border: 2px solid var(--accent-color);
    margin: 20px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
    color: var(--white-color);
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: var(--light-gray);
}

.btn {
    background-color: var(--accent-color);
    color: var(--white-color);
    padding: 12px 25px;
    border-radius: 15px;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 1.5em;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid var(--accent-color);
}

.btn:hover {
    background-color: transparent;
    color: var(--accent-color);
    border-color: var(--accent-color);
}

/* Sections General */
section {
    padding: 80px 0;
    text-align: center;
}

section:nth-child(even) {
    background-color: var(--white-color);
}

section h2 {
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--secondary-color);
    position: relative;
    display: inline-block;
}

section h2::after {
    content: '';
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -15px;
    border-radius: 2px;
}

/* About Me */
.about-me .bio-content {
    display: flex;
    align-items: center;
    gap: 40px;
    text-align: left;
    max-width: 900px;
    margin: 0 auto;
}

.about-me .bio-content img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--accent-color);
    flex-shrink: 0;
    filter: grayscale(100%);
}

.about-me .bio-content p {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--medium-gray);
}

/* Portfolio */
.portfolio .project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.portfolio .project-card {
    background-color: var(--white-color);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid var(--border-color);
}

.portfolio .project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.portfolio .project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    /* filter: grayscale(100%); */
    transition: filter 0.3s ease;
}

.portfolio .project-card:hover img {
    filter: grayscale(0%);
}

.portfolio .project-card h3 {
    font-size: 1.5rem;
    margin: 20px 20px 10px;
    color: var(--secondary-color);
}

.portfolio .project-card p {
    font-size: 1rem;
    margin: 0 20px 20px;
    color: var(--text-light);
}

.portfolio .project-card .btn-view {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin: 0 20px 20px;
    transition: background-color 0.3s ease;
}

.portfolio .project-card .btn-view:hover {
    background-color: var(--secondary-color);
}

/* Process */
.process .process-steps {
    display: flex;
    justify-content: space-around;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.process .step-card {
    background-color: var(--white-color);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    flex: 1;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

.process .step-card:hover {
    transform: translateY(-5px);
}

.process .step-card h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.process .step-card p {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* Features */
.features .feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.features .feature-card {
    background-color: var(--white-color);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid var(--border-color);
}

.features .feature-card:hover {
    transform: translateY(-10px);
}

.features .feature-card h3 {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.features .feature-card p {
    font-size: 1rem;
    color: var(--text-light);
}

/* FAQ */
.faq .accordion {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.faq .accordion-item {
    background-color: var(--white-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.faq .accordion-item button.accordion-header {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 18px 25px;
    width: 100%;
    text-align: left;
    border: none;
    outline: none;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.faq .accordion-item button.accordion-header:hover {
    background-color: var(--secondary-color);
}

.faq .accordion-item button.accordion-header::after {
    content: '+';
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.faq .accordion-item.active button.accordion-header::after {
    content: '-';
    transform: rotate(0deg);
}

.faq .accordion-content {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq .accordion-item.active .accordion-content {
    max-height: 500px;
}

.faq .accordion-content p {
    padding: 15px 0;
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--white-color);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
}

.contact-form .form-group {
    margin-bottom: 20px;
    text-align: left;
}

.contact-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--primary-color);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background-color: var(--lighter-gray);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn-submit {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
}

.contact-form .btn-submit:hover {
    background-color: var(--secondary-color);
}

/* Footer */
footer {
    background-color: var(--dark-neutral);
    color: var(--light-gray);
    padding: 50px 0 20px;
    text-align: left;
}

footer .footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}

footer h3 {
    font-size: 1.5rem;
    color: var(--white-color);
    margin-bottom: 20px;
}

footer p,
footer ul li a {
    color: var(--light-gray);
    text-decoration: none;
    font-size: 1rem;
}

footer ul {
    list-style: none;
}

footer ul li {
    margin-bottom: 10px;
}

footer ul li a:hover {
    color: var(--white-color);
}

footer .copyright {
    text-align: center;
    border-top: 1px solid var(--medium-gray);
    padding-top: 20px;
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Responsive Design */
@media (max-width: 768px) {
    header .container {
    /*    flex-direction: column; */
    }

    header nav ul {
        margin-top: 15px;
        text-align: center;
    }

    header nav ul li {
        margin: 0 10px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.2rem;
    }
    
    .btn {
        font-size: 1em;
    }

    .about-me .bio-content {
        flex-direction: column;
        text-align: center;
    }

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

    .process .process-steps {
        flex-direction: column;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-content > div {
        margin-bottom: 30px;
    }

    .footer-content > div:last-child {
        margin-bottom: 0;
    }

    .contact-form {
        margin: 0 20px;
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.5rem;
    }

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

    section h2 {
        font-size: 2rem;
    }

    .portfolio .project-grid,
    .features .feature-grid {
        grid-template-columns: 1fr;
    }
}


/* estilo menu responsivo inicio */

.topnav {
  overflow: hidden;
  /* background-color: #333; */
}

.topnav a {
  float: left;
  display: block;
  color: #f2f2f2;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 17px;
}

.topnav a:hover {
  background-color: #ddd;
  color: black;
}

.topnav a.active {
  background-color: #04AA6D;
  color: white;
}

.topnav .icon {
  display: none;
}

@media screen and (max-width: 600px) {
  .topnav a:not(:first-child) {display: none;}
  .topnav a.icon {
    float: right;
    display: block;
  }
}

@media screen and (max-width: 600px) {
  .topnav.responsive {position: relative;}
  .topnav.responsive .icon {
    position: absolute;
    right: 0;
    top: 0;
  }
  .topnav.responsive a {
    float: none;
    display: block;
    text-align: left;
  }
}

/* estilo menu responsivo fim */




