/* configuracoes basicas */
* {
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#general {
    margin-top: 2.8%;
    flex: 1;
}

/* botoes */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-primary {
    background-color: #434448;
    color: #fff;
    border: 2px solid #43444833;
}

.btn-primary:hover {
    background-color: #474648dd;
    border-color: #43444833;
}

.btn-secondary {
    background-color: #fff;
    color: #434448;
    border: 2px solid #43444833;
    margin-top: 15px;
}

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

/* contact */
#section-contact p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    text-align: center;
}

#section-contact form {
    max-width: 600px;
    margin: 0 auto;
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: left;
}

#section-contact form button {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    cursor: pointer;
}

.container h3 {
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 10px;
}

#alert-contact.green {
    background-color: #008000;
    color: #fff;
}

#alert-contact.red {
    background-color: #800000;
    color: #fff;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    color: #333;
}

.form-group input[type = "text"], .form-group input[type = "email"], .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.social-links {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 25px;
}

.social-links a {
    color: #000;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #434448;
}

/* home */
#home-section-hero {
    background-position: center;
    min-height: 400px;
    text-align: center;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-container {
    width: 90%;
    margin: auto;
    overflow: hidden;
    padding: 20px 0;
}

.home-container h2 {
    font-size: 3rem;
    margin-bottom: 10px;  
}

.home-container p {
    font-size: 1.2em;
    margin-bottom: 20px;
}

.btn-home:hover {
    background-color: #43444849;
    border-color: #434448;
}

/* secao servicos*/
#home-section-services {
    background-color: #e2e2e2;
    border-radius: 0 20% 0 20%;
}

.home-container h3 {
    text-align: center;
}

.home-services-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.home-services-item {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    flex: 1;
    min-width: 290px;
    max-width: 30%;
    box-sizing: border-box;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.home-services-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.home-services-item h4 {
    margin-bottom: 10px;
}

/* secao blog */
#home-section-blog h3 {
    font-size: 2.5rem;
    text-align: center;
}

.home-grid-posts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.home-item-post {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
    max-height: 580px;
}

.home-item-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.home-item-img {
    width: 100%;
    height: 250px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    margin: 0 auto;
}

.home-item-post h6 {
    font-family: 'Montserrat', sans-serif;
    text-align: center;
    font-size: 2rem;
    margin: 5px 0 5px 0;
    color: #333;
}

.home-item-post p {
    font-size: 0.95rem;
    padding: 0 15px;
    margin-bottom: 15px;
    min-height: 100px;
}

.home-item-post .btn-secondary {
    display: block;
    width: calc(100% - 30px);
    margin: 0 15px 15px;
    text-align: center;
}

/* blog */
#blog-section-hero {
    background-image: url('../imgs/cave.png');
    background-position: center;
    min-height: 400px;
    text-align: center;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.blog-container h3 {
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 10px;
}

.blog-container p {
    font-size: 1.2em;
    margin-bottom: 20px;
}

.btn-blog:hover {
    background-color: #43444849;
    border-color: #434448;
}

.blog-post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.blog-item-post {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
    margin: 5px 0;
}

.blog-item-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.blog-item-post h6 {
    font-family: 'Montserrat', sans-serif;
    text-align: center;
    font-size: 2rem;
    margin: 5px 0 5px 0;
    color: #333;
}

.blog-item-post p {
    font-size: 0.95rem;
    padding: 0 15px;
    margin-bottom: 15px;
    max-height: 150px;
}

.blog-item-post .btn-secondary {
    display: block;
    width: calc(100% - 30px);
    margin: 0 15px 15px;
    text-align: center;
}

/* secao mensagen*/
#blog-section-messager {
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    position: relative;
    padding: 30px;
    border-radius: 0 20% 0 20%;
    background-color: #e2e2e2;
    color: #000;
}

#blog-section-messager h3 {
    font-size: 2rem; 
}

#blog-section-messager p {
    font-size: 1rem; 
}

/* secao posts*/
.search-article {
    margin: 0 auto;
}

#form-search-post input {
    width: 60%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

#form-search-post select {
    width: 20%;
    padding: 12px;
}

/* portifolio */
.portfolio-container {
   width: 90%;
   max-width: 1200px;
   margin: 0 auto;
   padding: 20px 0;
}

.portfolio-container h2 {
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 10px;
}

.portfolio-container h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 250px;
    height: 4px;
    background-color: #43444833;
    border-radius: 2px;
}

#portfolio-section-message .portfolio-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.portfolio-message {
    flex: 1;
    min-width: 300px;
    max-width: 600px; 
}

.portfolio-message h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.portfolio-message p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.portfolio-message-img {
    flex: 1;
    min-width: 250px;
    max-width: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.portfolio-message-img img {
    max-width: 100%;
    height: auto;
    border-radius: 50%;
    border: 5px solid #43444833;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
}

/* secao sobre min */
.portfolio-about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 40px;
    text-align: left;
}

.portfolio-about-image {
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    display: flex;
    justify-content: center;
}

.portfolio-about-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.portfolio-about-text {
    flex: 2;
    min-width: 300px;
    max-width: 700px;
}

.portfolio-about-text h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    margin-top: 20px;
    margin-bottom: 15px;
    color: #000;
}

.portfolio-about-text ul {
    list-style: none;
    padding-left: 0;
    margin-top: 15px;
}

.portfolio-about-text ul li {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="%23007bff" class="bi bi-check-circle-fill" viewBox="0 0 16 16"><path d="M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0m-3.97-3.03a.75.75 0 0 0-1.08.022L7.477 9.497 5.384 7.3a.75.75 0 0 0-1.06 1.06L6.94 10.94a.75.75 0 0 0 1.06 0z"/></svg>') no-repeat left center;
    background-size: 16px;
    padding-left: 25px;
    margin-bottom: 8px;
}

/* secao projetos */
.div-portfolio-projects {
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    border-radius: 5px;
    padding: 10px;
    margin-top: 10px;
}

.div-project-btn {
    text-align: center;
}

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

#div-images-projects {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 20px;
}

#div-images-projects img {
    margin: 0 auto;
    max-width: 100%;
    width: 250px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.div-description-projects ul {
    list-style-type: none;
    padding: 0;
}

.div-description-projects li {
    background: #474648dd;
    color: #fff;
    display: inline-block;
    padding: 8px 12px;
    margin: 4px;
    border-radius: 6px;
}

/*roda pe*/
footer {
  background-color: rgba(248,249,250, 1);
  color: #000;
  width: 100%;
  text-align: center;
  padding: 20px 0;
}

/* responsividade */
@media(max-width: 1200px) {
    #general {
        margin-top: 5.5%;
    }
}

@media(max-width: 800px) {
    #general {
        margin-top: 15%;
    }

    /* home */
    .home-grid-posts, .blog-grid-posts {
        grid-template-columns: 1fr;
    }

    /* blog */
    #form-search-post {
        text-align: center;
    }

    #form-search-post input,#form-search-post select {
        width: 95%;
        display: block;
        margin: 5px;
    }

    #form-search-post button {
        width: 95%;
    }

    /* portifolio */
    .portfolio-social-links a, .home-social-links a {
        font-size: 2.5rem;
    }

    .portfolio-container h1 {
        font-size: 3rem;
    }

    .hide-mobile {
        display: none;
    }
}