@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Text&display=swap');

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

body {
    font-family: 'Poppins', sans-serif;
    transition: background-color 0.3s ease, color 0.3s ease;
}

:root{
    --primary-color: #edf2fc;
    --secondary-color: #212121;
}
.dark-theme{
    --primary-color: #000106;
    --secondary-color: #fff;
}
.dm-serif-text{
    font-family: 'DM Serif Text', serif;
}

#icon{
    width: 30px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

#icon:hover {
    transform: scale(1.1);
}

#icon2{
    width: 30px;
    cursor: pointer;
}

nav ul{
    flex: 1;
    text-align: right;
}

.hero{
    min-height: 100vh;
    width: 100%;
    background: var(--primary-color);
    position: relative;
    transition: background-color 0.3s ease;
    overflow: hidden;
}

.heroCommands{
    height: 251vh;
    width: 100%;
    background: var(--primary-color);
    position: relative;
    transition: background-color 0.3s ease;
}

nav{
    width: 84%;
    margin: auto;
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nome {
    margin: 0 15px;
    color: var(--secondary-color);
    transition: color 0.3s ease;
}

.logo{
    width: 100px;
    cursor: pointer;
    border-radius: 50%
}

nav ul li{
    display: inline-block;
    list-style: none;
    margin: 10px 20px;
}

nav ul li a{
    text-decoration: none;
    color: var(--secondary-color);
    transition: color 0.3s ease;
}

nav ul li a:hover{
    color: #ff0000
}

.info{
    margin-left: 8%;
    margin-top: 15%;
    z-index: 10;
}

.info h1{
    font-size: 40px;
    color: var(--secondary-color);
    margin-bottom: 20px;
    transition: color 0.3s ease;
    line-height: 1.2;
}
span{
    color: #ff4321;
}

.info p{
    color: var(--secondary-color);
    line-height: 1.5;
    transition: color 0.3s ease;
}

.info a{
    background: var(--secondary-color);
    padding: 10px 18px;
    text-decoration: none;
    color: var(--primary-color);
    display: inline-block;
    margin: 30px 0;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s, transform 0.3s, box-shadow 0.3s;
    position: static;
}

.info a:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.img-box{
    width: 45%;
    height: 80%;
    position: absolute;
    bottom: 0;
    right: 100px;
}

.img-box img{
    height: 100%;
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    transition: bottom 1s, left 1s;
}

.img-box:hover .back-img{
    bottom: 40px;
}

.img-box:hover .main-img{
    left: 54%;
}

.social-links{
    margin-left: 10%;
    background: var(--primary-color);
    margin-top: 60px; 
    color: var(--primary-color);
}

.social-links a{
    background: var(--primary-color);
    color: var(--secondary-color);
    font-size: 30px;
    margin-right: 20px;
    transition: color 0.3s ease;
}

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

.containerFooter {
    max-width: 1000px;
    margin: auto;
    padding: 0 20px;
}
.rowFooter {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;  
    gap: 30px;
}
.footer {
    background-color: #1a1a1d;
    padding: 40px 0 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.footer-col {
    flex: 1;
    min-width: 180px;
    padding: 0 15px;
    margin-bottom: 20px;
}
.footer-col h4 {
    font-size: 16px;
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: 600;
    position: relative;
    letter-spacing: 0.5px;
}
.footer-col h4::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    background-color: #4e73df;
    height: 2px;
    width: 40px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li:not(:last-child) { margin-bottom: 8px; }
.footer-col ul li a {
    font-size: 14px;
    color: #b1b1b1;
    text-decoration: none;
    font-weight: 400;
    transition: all 0.3s ease;
    display: inline-block;
}
.footer-col ul li a:hover { color: #ffffff; transform: translateX(5px); }
.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #2d2d30;
    margin-top: 20px;
}
.footer-bottom p { color: #777; font-size: 13px; margin: 0; }

@media (max-width: 768px) {
    .footer { padding: 30px 0 15px; }
    .footer-col { width: 50%; padding: 0 15px; margin-bottom: 25px; }
}
@media (max-width: 480px) {
    .footer-col { width: 100%; text-align: center; }
    .footer-col h4::before { left: 50%; transform: translateX(-50%); }
    .footer-col ul li a:hover { transform: none; padding-left: 5px; }
}

@media (max-width: 767px) {
    .hero {
        height: auto;
        padding-bottom: 4rem;
    }

    nav {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    nav ul {
        text-align: center;
        width: 100%;
        padding: 10px 0;
        flex: none;
    }

    #icon {
        display: block;
        margin-top: 15px;
    }

    .info {
        margin: 10% 5% 0 5%;
        text-align: center;
    }

    .info h1 {
        font-size: 50px;
    }

    .img-box {
        display: block;
        position: relative;
        width: 80%;
        max-width: 350px;
        height: auto;
        margin: 3rem auto 0 auto;
        right: auto;
        bottom: auto;
    }

    .img-box img {
        display: block;
        position: relative;
        transform: none;
        left: auto;
        bottom: auto;
        width: 100%;
        height: auto;
    }
    
    .img-box .back-img {
        display: none;
    }

    .img-box:hover .main-img{
        left: auto;
    }

    .social-links {
        margin-left: 5%;
    }
}

@media (max-width: 574px) {
    .info {
        margin-top: 15%;
    }

    .info h1 {
        font-size: 40px;
    }

    .info p {
        font-size: 14px;
    }

    .social-links {
        margin-left: 0;
        text-align: center;
    }
}

@media (max-width: 400px) {
    .info h1 {
        font-size: 30px;
    }

    .info p {
        font-size: 12px;
    }

    .info a {
        padding: 8px 16px;
        font-size: 14px;
    }

    .social-links a {
        font-size: 24px;
        margin-right: 10px;
    }

    .nav ul li a {
        font-size: 14px;
    }
}