
:root {
    --color-background: #000;
    --color-background-secondary: #1e1e1e;
    --color-text-primary: #FFFFFF;
    --color-text-secondary: #AAAAAA;
    --color-text-dark: #0e1602;
    --color-accent-solid: #00c70a;
    --color-accent-gradient: linear-gradient(90deg, #499113, #56ff00);
    /* --color-accent-gradient: linear-gradient(90deg, #6A9113, #99FF00); */
    --color-card-background: #101010;
    --color-border: #2D2D2D;
    --font-family: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--color-background);
    color: var(--color-text-primary);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1500px;
    margin: 0 auto;
}

img {
    max-width: 100%;
    height: auto;
}

section {
    padding: 6rem 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

h2 {
    line-height: 45px;
}

h3 {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    max-width: 800px;
    font-weight: 200;
    margin: 0 auto;
}

header {
    padding: 0.7rem 0;
    position: sticky;
    top: 0;
    background: #000000e1;
    z-index: 1000;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    text-decoration: none;
    background: var(--color-text-primary);
    /* background: var(--color-accent-gradient); */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.navigation {
    gap: 2rem;
}

.navigation > nav {
    display: flex;
    gap: 1rem;
}

.links-nav > a {
    text-decoration: none;
    color: var(--color-text-secondary);
    height: 24px;
    gap: 2px;
} 

.links-nav > a:hover {
    color: var(--color-text-primary);
} 

.social-link svg {
    fill: var(--color-text-secondary);
    transition: fill 0.3s ease;
}

.social-link:hover svg {
    fill: var(--color-text-primary);
}

/* .highlight {
    background: var(--color-accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
} */

/* .highlight {
  background-image: var(--color-accent-gradient);
  background-size: 200% 100%;
  background-position: 0% 50%;

  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;

  animation: moveGradient 4s linear infinite;
  will-change: background-position;
} */
 
.highlight {
    background: linear-gradient(to right,#00ff55 20%,#b1ff20 30%,#00b837 70%,#00ff40 80%);
    text-wrap: nowrap;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 500% auto;
    transition: .3s ease-in;
    animation: textShine 3s ease-in-out infinite alternate;
}

.highlight:hover {
    filter: drop-shadow(0 0 6px green);
}

main > section:nth-child(even) {
    background-color: var(--color-background-secondary);
}


/* Hero Section */
.hero {
    background: radial-gradient(rgb(40, 40, 40) 30%, rgb(0, 0, 0) 70%) center;
    min-height: 93vh;
    display: flex;
    align-items: center;
    text-align: center;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-content .typing-text {
    background: var(--color-accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--color-text-secondary);
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;

    gap: 5px;
    padding: 0.5rem 1.4rem;
    /* padding: 0.8rem 2rem; */
    border-radius: 5px;
    /* border-radius: 50px; */
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-gradient {
    background: var(--color-accent-solid);
    color: var(--color-text-dark);
}

.btn-gradient:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.btn-outline {
    border-color: var(--color-border);
    color: var(--color-text-primary);
}

.btn-outline:hover {
    background-color: var(--color-border);
    color: var(--color-text-primary);
}

.hero-buttons svg {
    width: 20px;
    height: 20px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    /* background: var(--color-accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; */
    display: inline-block;
}

/* About Section */
.about {
    text-align: center;
}

.about-text {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    max-width: 800px;
    margin: 0 auto;
}

.about-cards-container {
    display: grid;
    /* grid-template-columns: repeat(4, minmax(0, 1fr)); */
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-column-gap: 6px;
    grid-row-gap:30px;
    justify-items: center;
}

.about-card {
    /* padding: 20px; */
    max-width: 350px;
    background: black;
    border-radius: 10px;
}

.card-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
}

.card-title svg {
    height: 2rem;
    width: 2rem;
    color: #05e911;
}

.card-title > div {
    font-size: 25px;
    font-weight: 500;
}

.about-card > p {
    color: var(--color-text-secondary);
    padding: 0 1.5rem 1.5rem 1.5rem ;
}


/* Skills Section */
.skills {
    text-align: center;
}

.skill-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-column-gap: 30px;
    grid-row-gap:30px;
    margin-top: 40px;
    justify-items: center;
}


.skill-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    background-color: var(--color-card-background);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid var(--color-border);
    font-weight: 500;
}

.skill-card svg {
    color: var(--color-accent-solid);
}

.skill-card span {
    color: var(--color-text-secondary);
    font-size: 17px;
}

.skill-card > span {
    color: var(--color-text-primary);
    font-size: x-large;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.skill-card-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    grid-column-gap: 15px;
    grid-row-gap: 15px;
}

.skill-card-container .skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 10px;
    padding: 10px;
    background-color: var(--color-background);
}

.skill-card-container svg {
    height: 30px;
    width: 30px;
    margin-bottom: 5px;
}

/* Portfolio Section */
.portfolio {
    text-align: center;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    text-align: left;
}


/* Contact Section */
.contact {
    text-align: center;
}

.contact-text {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    margin: auto;
    max-width: 450px;
    margin-bottom: 2rem;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    background-color: var(--color-card-background);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    color: var(--color-text-primary);
    font-family: var(--font-family);
    font-size: 1rem;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--color-text-secondary);
}

.contact-form button {
    align-self: center;
}


/* Footer */
footer {
    padding: 3rem 0;
    border-top: 1px solid var(--color-border);
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
}

.footer-content .logo {
    font-size: 1.5rem;
}

.footer-content p {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

.footer-socials a {
    color: var(--color-text-secondary);
    text-decoration: none;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.footer-socials a:hover {
    color: var(--color-text-primary);
}


/* ANIMACIONES */
@keyframes textShine {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}

/* MEDIA QUERIES */
@media (prefers-reduced-motion: reduce) {
    .highlight { animation: none; }
}

@media (max-width: 750px) {
    nav.links-nav {
        display: none;
    }

    .navigation > .social-nav {
        height: 24px;
    }

    .navigation > img {
        display: none;
    }

    .hero-content h1 {
        font-size: 36px;
        font-weight: 700;
        line-height: 1.2;
        margin-bottom: 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons > a {
        width: 80%;
        justify-content: center;
        margin-inline: auto;
    }
}

