* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: white;
    background: linear-gradient(to bottom left, black, #404041, #0c0c0c, #000000, #2c2b2b, #171718, black) no-repeat;
    background-size: 300%;
    animation: backgroundAnimation 5s ease infinite;
    overflow-x: hidden;

}

@keyframes backgroundAnimation {
    0% {
        background-position: 100% 0%;
    }

    50% {
        background-position: 0% 100%;
    }

    100% {
        background-position: 100% 0%;
    }
}

.header {
    max-width: 1100px;
    margin: auto;
    padding: 2rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    font-weight: 700;
    font-size: 1.5rem;
    height: 100px;
    width: 100px;
    color: white;
}

.nav a {
    margin-left: 1.5rem;
    text-decoration: none;
    color: white;
    font-weight: 500;
    display: inline-block;
    transition: transform 0.25s ease;
}

.nav a:hover {
    transform: scale(1.2);
}

.navbar {
    background: transparent !important;
}

.nav-link {
    color: #ffffff !important;
    font-weight: 500;
}

.nav-link:hover {
    color: #dddddd !important;
}

.navbar-toggler {
    border: none;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    filter: invert(1);
}

.hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    text-align: center;
    padding: 2rem;
    color: white;
    justify-content: space-between;
}

.perfil {
    width: 25rem;
    height: 25rem;
    object-fit: cover;
    border-radius: 50%;
}

.container {
    .container {
        padding: 1rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }

}

.hero h1,
.hero h2,
.hero p {
    color: white;
}

.hero h2 {
    font-weight: 400;
    opacity: 0.8;
}

.hero h1 {
    font-size: 3rem;
    margin: 0.5rem 0;
}

.hero p {
    max-width: 600px;
    margin: 1rem auto 2rem;
    opacity: 0.85;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    color: white;
}

.hero .btn {
    background-color: #ffffff;
    color: #0f0f0f;
    opacity: 1;
}

.hero .btn.secondary {
    background-color: transparent;
    border: 1px solid #ffffff;
    color: #ffffff;
}

.hero .btn:hover {
    opacity: 0.85;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    color: white;
}

.primary {
    background: #ffffff;
    color: #0f0f0f;
}

.secondary {
    border: 1px solid #ffffff;
    color: #ffffff;
}

.section {
    max-width: 1100px;
    margin: auto;
    padding: 4rem 1rem;
    color: white;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: white;
}

.section-text {
    opacity: 0.85;
    font-family: "Roboto", sans-serif;
    font-size: 20px;
    color: white;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.skill {
    padding: 1rem;
    gap: 1rem;
    height: 10rem;
    width: 10rem;
    display: flex;
    color: white;
}

.contact-links i {
    font-size: 2.5rem;
    color: #888888;
    transition: color 0.3s ease, transform 0.3s ease;
}

.contact-links a:hover .bi-github {
    color: #ffffff;
    transform: scale(1.2);
}

.contact-links a:hover .bi-linkedin {
    color: #0a66c2;
    transform: scale(1.2);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.project-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    gap: 0.75rem;
    border-radius: 30px;
    box-shadow: rgba(0, 0, 0, 0.56) 0px 22px 70px 4px;
    color: white;
}

.project-card h3,
.project-card p {
    color: white;
}

.projects-grid img {
    width: 100%;
    max-height: 180px;
    object-fit: cover;
    border-radius: 30px;
}

.btn {
    box-shadow: rgba(0, 0, 0, 0.56) 0px 22px 70px 4px;
    background-color: transparent;
    transition: transform 0.3s ease;
}

.btn a {
    color: white;
    text-decoration: none;
}

.btn:hover {
    transform: scale(1.05);
    opacity: 0.5;
}

.contact-links {
    display: flex;
    gap: 2rem;
    margin-top: 1.5rem;
}

.contact-links a {
    color: white;
    text-decoration: none;
    font-weight: 600;
}

.footer {
    text-align: center;
    padding: 2rem;
    font-size: 0.9rem;
    opacity: 0.6;
    color: white;
}




@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }


    .hero img {
      width: clamp(180px, 40vw, 300px);
    height: clamp(180px, 40vw, 300px);
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 0 auto;
    }

}


.hero-text {
    order: 1;
}

.container {
    order: 2;
    padding: 0;


}

.section {
    padding: 2rem;
}


  .skills-grid img {
    width: 32px;
    height: 32px;
   
}

  .skill {
        width: 32;
        height: auto;
        padding: 0.5rem;
    }
    



.nav {
    display: flex;
    padding: 2rem;
    width: 100%;
    height: 100%;
}



@media (max-width: 900px) {

    .hero {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        text-align: center;
    }
}

.hero img {
   width: clamp(180px, 40vw, 300px);
    height: clamp(180px, 40vw, 300px);
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 0 auto;
}

.section {
    padding: 2rem;
}

.skills-grid {
    grid-template-columns: repeat(2, 1fr);
}

.skill {
    width: auto;
        height: auto;
        padding: 0.5rem;
}

.nav {
    display: flex;
    padding: 2rem;
    width: 100%;
    height: 100%;
}

.container {
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}


.hero-text {
    width: 100%;
}

.container {
    padding: 0;
    margin-top: 1.5rem;
    justify-content: center;
}

.perfil {
    width: 200px;
    height: 200px;
    max-width: 100%;
}








@media (min-width: 1200px) {
    .hero {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        gap: 2rem;
    }

    .container {
        padding: 5rem;
        justify-content: center;
        align-items: center;
    }

    .perfil {
        width: 360px;
        height: 360px;
    }

   .skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.skills-grid img {
    width: 64px;
    height: 64px;
    object-fit: contain;
}



}