body {
    background-color: #121212;
    color: #e0e0e0;
    font-family: 'Arial', sans-serif;
    overflow-x: hidden;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #000000, #1a1a1a);
    color: #f9d423;
    text-align: center;
    padding: 120px 0;
    margin-bottom: 50px;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 1s forwards 0.5s;
}

.modal-body {
    color: #333; /* Un color oscuro modal*/
}
.modal-title {
    color: #333; /* Un color más oscuro modal*/
}


.hero h1 {
    font-size: 4rem;
}

.hero p {
    font-size: 1.3rem;
    margin-top: 20px;
}

/* About Section */
.about {
    background-color: #121212;
    padding: 50px 0;
    margin-top: 50px;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 1s forwards 0.25s;
    /* Faster animation start */
}

.about h2 {
    color: #f9d423;
    margin-bottom: 30px;
    text-align: center;
}

#coding-description {
    position: relative;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.2rem;
    color: #e0e0e0;
}

#coding-description::after {
    content: '|';
    position: absolute;
    right: 0;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Project Section */
.projects-title {
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 1s forwards 0.75s;
    text-align: center;
    color: #f9d423;
    margin-bottom: 50px;
}

.project-card {
    background-color: #1a1a1a;
    border: none;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 1s forwards 1s;
}

.project-card img {
    height: 200px;
    object-fit: cover;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(255, 87, 34, 0.2);
}

.project-card img:hover {
    transform: scale(1.1);
}

.project-card h5 {
    color: #f9d423;
}

.project-card .btn {
    background-color: #ff5722;
    border: none;
    transition: background-color 0.3s ease;
}

.project-card .btn:hover {
    background-color: #e64a19;
}

/* Skills Section */
.skills {
    background-color: #1a1a1a;
    padding: 50px 0;
    margin-top: 50px;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 1s forwards 1.5s;
}

.skills h2 {
    color: #f9d423;
    text-align: center;
    margin-bottom: 40px;
}

.skills .badge {
    background-color: #ff5722;
    margin: 5px;
    font-size: 1.1rem;
}

/* Contact Section */
.contact {
    background-color: #000000;
    padding: 50px 0;
    text-align: center;
    margin-top: 50px;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 1s forwards 2s;
}

.contact a {
    color: #ff5722;
    font-size: 1.5rem;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.contact a:hover {
    color: #f9d423;
}

footer {
    background-color: #1a1a1a;
    padding: 20px 0;
    text-align: center;
    color: #e0e0e0;
}



.icon {
    display: inline-block;
    width: 34px; /* Tamaño del contenedor */
    height: 34px;
    border-radius: 50%; /* Bordes redondeados */
    border: 2px solid gray; /* Borde gris */
    margin: 5px;
    overflow: hidden; /* Oculta el contenido que se desborda */
    transition: transform 0.3s ease;
    position: relative; /* Necesario para alinear el contenido interno */
}

.icon img {
    position: absolute; /* Permite posicionar la imagen de manera absoluta dentro del contenedor */
    top: 50%; /* Centra la imagen verticalmente */
    left: 50%; /* Centra la imagen horizontalmente */
    transform: translate(-50%, -50%); /* Ajusta la posición para centrar la imagen */
    width: 100%; /* Ajusta la imagen al tamaño del contenedor */
    height: 100%;
    object-fit: contain; /* Asegura que la imagen mantenga su aspecto dentro del contenedor */
}

.icon:hover {
    transform: scale(1.1); /* Efecto de hover para agrandar el ícono */
}
