/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

body {
	background-image: url(imagenes/fondoweb.png);
	background-repeat: no-repeat;
	background-size: cover;
	font-family: "Montserrat", sans-serif;
}
.center {
	justify-items: center;
}

/* HEADER */

header {
    display: flex;
    justify-content: center;
}

.menu {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    padding: 15px 20px;
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 35px;
}

.menu ul {
    display: flex;
    padding-top: 10px;
    list-style: none;
}

.menu ul li a {
    color: white;
    margin-left: 200px;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
    font-size: 14px;
}

.menu ul li a:hover {
    color: #65D620;
}

.memoji {
    width: 40px;
    height: auto;
}

.home {
    position: relative;
    display: inline-block;
}

.home img {
    display: block;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.home::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background-color: #65D620;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    transition: width 0.5s ease, height 0.5s ease;
}

.home:hover::before {
    width: 50px;
    height: 50px;
}

/* LANDING PAGE */
.landing {
    display: grid;
    place-items: center;
    margin-top: 150px;
}

.elemento1 {
    display: grid;
    place-items: center;
}

.elemento1 img {
    width: 125px;
    height: auto;
}

.elemento1 p {
    font-size: 15px;
    color: #65D620;
    margin: 5px 0 50px 0;
}

.elemento2 h1 {
    text-align: center;
    padding-bottom: 5px;
    font-weight: bold;
    font-size: 40px;
    background: radial-gradient(circle, #94C981, #DAF0D2);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-fill-color: transparent;
    margin-bottom: 50px;
}

.elemento3 h3 {
    text-align: center;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 55px;
}

.elemento4 a {
    text-decoration: none;
    color: white;
    background-color: #65D620;
    padding: 10px 20px;
    border-radius: 30px;
    transition: background-color 0.4s ease-in-out;
}

.elemento4 a:hover {
    background-color: #4CAF50;
}

/* PROYECTOS */
.proyectos-contenedor {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.titulo h1 {
    text-align: center;
    font-weight: bold;
    font-size: 40px;
    background: radial-gradient(circle, #94C981, #DAF0D2);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-fill-color: transparent;
    margin: 80px 0 50px;
}

/* PROYECTOS GENERALES */
[class^="contenedor"] {
    position: relative;
    width: 250px;
    height: 400px;
    overflow: hidden;
    border-radius: 12px;
    margin: 20px;
}

[class^="contenedor"] img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(10px);
    transition: transform 0.5s ease, filter 0.5s ease;
}

[class^="contenedor"]:hover img {
    transform: scale(1.1);
    filter: blur(0);
}

.texto {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 20px;
    letter-spacing: 5px;
    text-align: center;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
    opacity: 1;
    transition: opacity 0.5s ease;
}

[class^="contenedor"]:hover .texto {
    opacity: 0;
}

/* SOBRE MI */
.contenido {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.imagen img {
    width: 350px;
    height: auto;
}

.textosobremi {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    display: grid;
    align-content: center;
    padding: 30px;
    max-width: 500px;
}

.textosobremi p {
    font-size: 18px;
    text-align: center;
    margin-bottom: 20px;
    color: white;
    line-height: 1.2;
    border: solid 1px rgba(255, 255, 255, 0.3);
}