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

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

main {
    margin-top: 2.8%;
    margin-bottom: 1.5%;
    flex: 1;
}

/* messenger */
#alert-messenger {
    text-align: center;
    margin: 0 auto;
    padding: 5px;
    width: 50%;
}

/* barra de navegacao */
.icon-navbar-user {
    font-size: 30px;
}

.icon-navbar-user:hover {
    color: #434448;
}

.icon-navbar {
    font-size: 20px;
    color: #000;
}

.icon-navbar-link:hover {
    border: 1px solid #434448;
    padding: 5px;
    border-radius: 2px;
}

/* 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;
}

.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-image: url('../imgs/cave.png');
    display: flex;
    min-height: 500px;
    background-position: center;
    text-align: center;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-bottom: 25px;
}

#home-section-hero > div {
    width: 90%;
    margin: auto;
    overflow: hidden;
    padding: 20px 0;
}

#home-section-hero > div > h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

#home-section-hero > div > p {
    font-size: 1.2em;
    margin-bottom: 20px;
}

/* servicos */
#home-section-services {
    background-color: #e2e2e2;
    border-radius: 0 20% 0 20%;
    height: 350px;
    margin: 5px;
}

#home-section-services > div > h3 {
    padding: 5px;
    text-align: center;
}

#home-section-services > div > div {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 40px;
}

#home-section-services > div > div > div {
    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-section-services > div > div > div:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

#home-section-services > div > div > div > h4 {
    margin-bottom: 10px;
}


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

#articles-section-grid {
    padding: 25px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

#articles-section-grid > div {
    position: relative;
    max-width: 400px;
    height: 900px;
    border-radius: 5px;
    padding: 5px;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

#articles-section-grid > div > img {
    width: 100%;
    height: 300px;
    border-radius: 20px;
}

#articles-section-grid > div > h3 {
    overflow: auto;
    text-align: center;
    font-size: 2rem;
    padding: 5px 5px 0 0;
    height: 120px;
}

#articles-section-grid > div > hr {
    width: 90%;
    margin: 0 auto;
}

#articles-section-grid > div > p:nth-of-type(1) {
    overflow: auto;
    text-align: justify;
    width: 95%;
    height: 300px;
    font-size: 18px;
}

#articles-section-grid > div > p:nth-of-type(2) {
    margin-top: 15px;
}

#articles-section-grid > div > a {
    position: absolute;
    text-align: center;
    width: 97%;
    bottom: 10px; 
}

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

#portfolio-about-site > div, #portfolio-about-me > div{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

/* about site */
#portfolio-about-site > div > div:nth-of-type(1) {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
}

#portfolio-about-site > div > div:nth-of-type(1) > h2,  #portfolio-about-me > div >h2 {
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 10px;
}

#portfolio-about-site > div > div:nth-of-type(1) > h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 250px;
    height: 4px;
    background-color: #43444833;
    border-radius: 2px;
}

#portfolio-about-site > div > div:nth-of-type(1) p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

#portfolio-about-site > div > div:nth-of-type(2) {
    flex: 1;
    min-width: 250px;
    max-width: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#portfolio-about-site > div > div:nth-of-type(2) img {
    max-width: 100%;
    height: auto;
    border-radius: 50%;
    border: 5px solid #43444833;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

/* about me */
#portfolio-about-me > div > div:nth-of-type(1) {
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    display: flex;
    justify-content: center;
}

#portfolio-about-me > div > div:nth-of-type(1) > img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

#portfolio-about-me > div > div:nth-of-type(2) {
    flex: 2;
    min-width: 300px;
    max-width: 700px;
}

#portfolio-about-me > div > div:nth-of-type(2) > h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    margin-top: 20px;
    margin-bottom: 15px;
    color: #000;
}

#portfolio-about-me > div > div:nth-of-type(2) > ul {
    list-style: none;
    padding-left: 0;
    margin-top: 15px;
}

#portfolio-about-me > div > div:nth-of-type(2) > 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;
}

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

#portfolio-section-projects > div > div > div > h3 {
    font-size: 2rem;
    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 > ul > li {
    background: #474648dd;
    color: #fff;
    display: inline-block;
    padding: 8px 12px;
    margin: 4px;
    border-radius: 6px;
}

#portfolio-section-projects > div > div > div > div:nth-of-type(3) {
    text-align: center;
}

#portfolio-section-projects > div > div > div > div:nth-of-type(3) > a {
    width: 90%;
    text-align: center;
}

/*dashboard*/
#dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

/*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) {
    main {
        margin-top: 5.5%;
    }

    #div-devcaverna p {
        font-size: 60px;
    }
}

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

    /* nav bar */
    .icon-navbar {
        font-size: 25px;
    }

    /*home*/
    #home-section-services {
        height: 700px;
        margin: 10px;
    }

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

    .hide-mobile {
        display: none;
    }
    
}