:root {
    --primary-color: #3d9f73;
    --secondary-color: #143c3c;
    --background-color: hsla(228, 71%, 4%, 1);
    --text-color: #ffffff;
    --nav-height: 70px;
}
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* cursor: none; */
}
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--primary-color);
    color: var(--text-color);
}


/* Navbar Styles */
.navbar {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 35%;
    height: var(--nav-height);
    background-color: var(--primary-color);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(61, 159, 115, 0.8);
}

.navbar.scrolled {
    background-color:  var(--primary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo a {
    color: var(--text-color);
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-logo a:hover {
    color: var(--secondary-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 3px 0;
    transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: var(--nav-height);
        right: -100%;
        width: 70%;
        height: calc(100vh - var(--nav-height));
        background-color: rgba(10, 15, 30, 0.98);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: right 0.3s ease;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        margin: 1rem 0;
    }
    
    .nav-links a {
        font-size: 1.2rem;
    }
}

@media screen and (max-width: 480px) {
    .nav-links {
        width: 100%;
    }
    
    .nav-container {
        padding: 0 15px;
    }
}

/* Main content adjustment */
main {
    margin-top: var(--nav-height);
}

section {
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* home */
.home {
    margin-top: 6rem;
    display: flex;
}
.home-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 50px;
}
.home .home-gif {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}
.gif-once {
    width: 750px;
}
.home h1{
    margin-top: -15rem;
    font-size: 6rem;
    color: var(--primary-color);
    font-weight: bold;
    text-shadow: 0 0 15px rgb(64, 165, 120, 100%);
}
.home h1 span {
    color: var(--secondary-color);
}
.home p {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-top: 1rem;
    font-weight: bolder;
}
.learn-more {
    animation: latido 6s ease-in-out infinite
}

/* services */

.services {
    height: 60vh;
    background-color: black;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.services h2 {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-shadow: 0 0 8px var(--primary-color);
}
.services-content a{
    text-decoration: none;
}
.services-content{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}
.service-content {
    display: flex;
    background-color: var(--primary-color);
    border-radius: 50%;
    width: 250px;
    height: 250px;
    box-shadow: 0 2px 20px rgba(15, 134, 105, 0.8);
}
.service-content img{
    width: 250px;
    height: 250px;
    object-fit: contain;
    padding: 2rem;
}
.services-content h3 {
    font-size: 1.6rem;
    color: var(--text-color);
    margin-top: 1rem;
    text-decoration: none;
}
.servicio {
    max-width: 280px;
    margin: 1rem auto;
    transition: ease 0.3s;
    animation: wave1 2s ease-in-out infinite
}

/* proyects */
.proyects {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: auto ;
    background: radial-gradient(circle, rgb(0, 15, 12), rgb(0, 0, 0));
}
.proyects h2 {
    font-size: 4rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    text-shadow: 0 0 15px var(--primary-color);
}
.proyecto-content img{
    display: flex;
    width: 600px;
    height: auto;
    border-radius: 10px;
}
.proyects-content {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}
.proyects-content .proyecto img:hover {
    transition: all 0.3s ease;
    animation: temblor 0.8s ease-in-out infinite;
    z-index: 10;
    transform: scale(1.20);
}

/* About */

.about {
    padding: 4rem 2rem;
    background-color: rgb(0, 6, 12);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.about h2 {
    font-size: 4rem;
    color: var(--primary-color);
    text-shadow: 2px 2px 8px var(--primary-color);
    text-align: center;
    margin-bottom: 1rem;
}
.about .txt-about {
    display: flex;
    flex-direction: row;
    gap: 2rem;
}

.vision, .mission {
    flex: 1;
    background-color: none;
    border-radius: 18px;
    border: 4px solid var(--primary-color);
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(61, 159, 115, 0.8);
    transition: ease-in-out 0.2s;
}
.vision:hover, .mission:hover,.about .txt-why-us:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 20px rgba(61, 159, 115, 0.8);
    background: rgba(61, 159, 115, 0.8);
    cursor: pointer;
    animation: flotar 2s ease-in-out infinite;
    transition: ease-in-out 0.2s;
}
.about h3 {
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.about p {
    font-size: 1.2rem;
    color: var(--text-color);
    line-height: 1.6;
    border-radius: 18px;
    border: 4px solid var(--primary-color);
    box-shadow: 0 2px 10px rgba(61, 159, 115, 0.8);
    padding: 2rem;
    transition: ease-in-out 0.2s;
}
.vision p, .mission p{
    border: none;
    box-shadow: none;
    background: none;
}

/* contact */
.contact {
    background-color: rgb(0, 6, 12);
    color: white;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact h2 {
    font-size: 4rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 1rem;
    animation: neon-txt 2s ease-in-out infinite
}
.contact p {
    font-size: 1.2rem;
    color: var(--text-color);
    line-height: 1.6;
}
.contact form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}
.contact form input,
.contact form select,
.contact form textarea {
    width: 400px;
    padding: 1rem;
    border: 4px solid var(--primary-color);
    border-radius: 8px;
    background: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    appearance: none;       /* Quita el estilo por defecto */
    -webkit-appearance: none;
    -moz-appearance: none;
}
.contact form input:focus,
.contact form select:focus,
.contact form textarea:focus {
    outline: none;
    transform: scale(1.5);
    box-shadow: 2px 2px 8px rgba(61, 159, 115, 0.8);
    z-index: 1000;
    appearance: none;       /* Quita el estilo por defecto */
    -webkit-appearance: none;
    -moz-appearance: none;
}
.contact form label {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-top: 1rem;
}
.contact form button {
    padding: 1rem;
    background-color: var(--primary-color);
    color: var(--text-color);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}
.contact form button:hover {
    border: 4px solid var(--primary-color);
    background-color: var(--secondary-color);
    color: var(--text-color);
    transform: scale(1.05);
    box-shadow: 2px 2px 8px rgba(61, 159, 115, 0.8);
}

.contact form select option {
    padding: 2rem;
    background: rgb(0, 6, 12);
    color: var(--text-color);
    font-size: 0.9rem;
    border: 3px solid var(--primary-color);
}

/* Footer */
footer {
    background: var(--primary-color);
    color: var(--secondary-color);
    padding: 2rem 1rem 1rem 1rem;
    font-size: 0.9rem;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.footer-left,
.footer-center,
.footer-right {
    flex: 1 1 300px;
    margin: 0.5rem 1rem;
}

.footer-left h3,
.footer-right h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    border-bottom: 1px solid var(--secondary-color);
    padding-bottom: 0.3rem;
}

.footer-left ul,
.footer-right ul {
    list-style: none;
}

.footer-left ul li,
.footer-right ul li {
    margin-bottom: 0.4rem;
}

.footer-right ul.contact-list li a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-right ul.contact-list li a:hover {
    color: white;
    background: var(--secondary-color);
    padding: 0.3rem 0.3rem;
    border-radius: 3px;
}

.footer-center {
    text-align: center;
}

.footer-logo {
    max-width: 130px;
    height: auto;
}

.footer-bottom {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.8rem;
    color: var(--secondary-color);
}

/* animaciones */

@keyframes flotar {
    0% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-10px) rotate(2deg); }
    50% { transform: translateY(-20px) rotate(0deg); }
    75% { transform: translateY(-10px) rotate(-2deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes temblor {
    0%, 100% { transform: translateX(0) rotate(0deg); }
    10% { transform: translateX(-2px) rotate(-5deg); }
    20% { transform: translateX(2px) rotate(5deg); }
    30% { transform: translateX(-2px) rotate(-5deg); }
    40% { transform: translateX(2px) rotate(5deg); }
    50% { transform: translateX(-1px) rotate(-2deg); }
    60% { transform: translateX(1px) rotate(2deg); }
    70% { transform: translateX(-1px) rotate(-2deg); }
    80% { transform: translateX(1px) rotate(2deg); }
    90% { transform: translateX(-1px) rotate(-1deg); }
}

@keyframes wave1 {
    0% { transform: translateX(0) translateY(0); }
    25% { transform: translateX(5px) translateY(-5px); }
    50% { transform: translateX(10px) translateY(0); }
    75% { transform: translateX(5px) translateY(5px); }
    100% { transform: translateX(0) translateY(0); }
}

@keyframes latido {
    0% { transform: scale(1); }
    14% { transform: scale(1.3); }
    28% { transform: scale(1); }
    42% { transform: scale(1.3); }
    70% { transform: scale(1); }
}

@keyframes neon-txt {
    0% { 
        text-shadow: 0 0 10px currentColor, 0 0 20px currentColor, 0 0 30px currentColor;
        opacity: 1;
    }
    50% { 
        text-shadow: 0 0 20px currentColor, 0 0 30px currentColor, 0 0 40px currentColor;
        opacity: 0.8;
    }
    100% { 
        text-shadow: 0 0 10px currentColor, 0 0 20px currentColor, 0 0 30px currentColor;
        opacity: 1;
    }
}