/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {

    scroll-behavior: smooth;
	
}


/* FONTES BASE E CORES */
body {
    font-family: "Unageo", sans-serif;
    font-size: 22px;
    background: #f8f8ff;
    color: #f8f8ff;
}

/* HEADER */
header {
  background: linear-gradient(30deg, #55308d, #2a6099);
  height:44px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: left;
  flex-wrap: nowrap;
  padding: 0 1rem;
  max-width: 90%;
  width: 1100px;
  position: relative;
}



/* Logo */
header .logo {
  font-family: "EvilEmpire", sans-serif;
  font-size: 2rem;
  color: #ff4000;
  text-shadow: 0.035em 0.035em 0px black;
  margin-left: 0.5rem;
}

header .logo a {
  color: #ff4000;
  text-decoration: none;
  font-family: "EvilEmpire", sans-serif;
  font-size: 2rem;
  text-shadow: 0.05em 0.05em 0px black;
  display: inline-block;
  cursor: pointer;
}

header nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

header nav a {
  color: #f8f8ff;
  text-decoration: none;
  font-family: "Unageo", sans-serif;
  font-size: clamp(1.2rem, 2vw, 1rem);
  line-height: 1;
  padding: 0.5rem 0rem;
  display: inline-block;
  transition: background-color 0.3s ease;
}

header nav a:hover {
  font-family: "UnageoBold", sans-serif;
  background-color: #ff4000;
}

.menu-toggle {
  display: none;
  font-size: 2rem;
  color: #f8f8ff;
  cursor: pointer;
}

/* LANGUAGE SELECTOR */

.language-selector {
  position: relative;
  display: inline-block;
  align-items: center;
}


.lang-btn {
  display: flex;
  gap: 0.2rem;
  background: transparent;
  padding: 0.2rem 0.8rem;
  font-family: "Unageo", sans-serif;
  font-size: clamp(1.2rem, 2vw, 1rem);
  border: 1px solid #f8f8ff;
  border-radius: 8px;
  cursor: pointer;
  color: #f8f8ff;
  align-items: center;
}


.lang-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: linear-gradient(30deg, #55308d, #2a6099);
  list-style: none;
  padding: 0.2rem 0.2rem;
  border: 0.3px solid #55308d;
  border-radius: 3px;
  margin-top: 8px;
  min-width: 8rem;
  z-index: 10;
}

.lang-menu a {
  color: #f8f8ff;
  text-decoration: none;
  font-family: "Unageo", sans-serif;
  font-size: clamp(1rem, 1.4vw, 0.8rem);
  line-height: 1;
  padding: 0rem 0.2rem;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.lang-menu a:hover {
  font-family: "UnageoBold", sans-serif
  background-color: #ff4000;
}

.language-selector.open .lang-menu {
  display: block;
}

.flag-icon {
  height: 1em;
  width: auto;
  vertical-align: -0.15em;
  margin-right: 6px; 
}


/* CONTAINER PRINCIPAL */

.content-wrapper {
  position: relative; 
  z-index: 1; 
  background-color: #55308d;
  background-image:
    linear-gradient(rgba(51, 51, 51, .1) 2px, transparent 2px),
    linear-gradient(90deg, rgba(51, 51, 51, .1) 2px, transparent 2px),
    linear-gradient(rgba(51,51,51,.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(51,51,51,.1) 1px, transparent 1px);
  background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px;
  background-position: -2px -2px, -2px -2px, -1px -1px, -1px -1px;
  background-repeat: repeat;
  min-height: calc(100vh - 44px - 60px);
  padding-top: 2rem;
  padding-bottom: 2rem;
}

#bubbles {
    position: absolute;
    top: 25%;
    width: 60vw;
    margin-left: 35vw;
    height: 100vh;
    z-index: 0;
    background: transparent;
}


.main-container {
    max-width: 70%;
    margin: 10vh auto 0 auto;
    padding: 0 2rem;
}

/* SECTIONS */
section {
    padding: 4rem 0;
}



/* INTRO */
.intro {
    max-width: 66%;
    margin-left: 0;
}

.intro h1 {
    font-family: "EvilEmpire", sans-serif;
    font-size: clamp(3.5rem, 8vw, 7rem);
    font-weight: 500;
    margin-bottom: 1rem;
    -webkit-text-stroke: 1px #000000;
    -webkit-text-fill-color: #F8F8FF;
    text-shadow: 0.05em 0.05em 0em #ff4000;
}


/* PORTFOLIO */
.portfolio h2 {
    text-align: left;
    font-family: "EvilEmpire", sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 500;
    margin-bottom: 1rem;
    -webkit-text-stroke: 1px #000000;
    -webkit-text-fill-color: #f8f8ff;
    text-shadow: 0.05em 0.05em 0em #ff4000;
}

/* Grid do portfólio flexível */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.portfolio-item {
  border: 2px solid black;
  padding: 1rem;
  max-width: 450px;
  text-align: left;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
  background: #f8f8ff;
  transition: box-shadow 0.01s ease-in-out;
}


.portfolio-item:hover {
  transform: scale(1.02);
  box-shadow: 0.25em 0.25em 0em #ff4000;
}

.portfolio-item img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  display: block;
}

.divider {
  height: 2px;
  background-color: black;
  width: 100%;
  margin: 0 auto;
}

.portfolio-item h3 {
  font-family: "Unageo", sans-serif;
  font-size: 2rem;
  color: black;
  text-decoration: none;
  margin: 0;
}


.portfolio-item p {
  font-family: "Unageo", sans-serif;
  font-size: 1rem;
  margin: 0;
  color: #333;
}


/* CONTATO */

.contact h2 {
    text-align: left;
    font-family: "EvilEmpire", sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 500;
    margin-bottom: 0.6rem;
    -webkit-text-stroke: 0.66px #000000;
    -webkit-text-fill-color: #f8f8ff;
    text-shadow: 0.05em 0.05em 0em #ff4000;
}

.contact {
    max-width: 100%;
    margin: 0;
    font-size: 18px;
}

.contact a {
  font-family: UnageoBold;
  color: inherit;
  text-decoration: none;
  transition: all 0.01s ease;
}

.contact a:hover {
  font-family: UnageoBlack;
  background: #f04000;
}

.back-to-top {
  margin-top: 2rem;
  text-align: right;
}

.back-to-top a {
  display: inline-block;
  background-color: #2a6099;
  color: #f8f8ff;
  font-family: "Unageo", sans-serif;
  padding: 0.5rem 1rem;
  border: 2px solid black;
  border-radius: 0px;
  text-decoration: none;
  box-shadow: 0.33em 0.33em 0em #000000;
  transition: background-color 0.01s ease;
  cursor: pointer;
  z-index: 3;
}

.back-to-top a:hover {
  background-color: #ff4000;
  font-family: "Unageo", sans-serif;
  z-index: 3;
  
}

/* FOOTER */
footer {
    text-align: center;
    padding: 1rem;
    background: linear-gradient(30deg, #55308d, #2a6099);
    font-size: 0.9rem;
}

footer a {
	color: inherit;
	text-decoration: none;
}

/* RESPONSIVIDADE */
	
/* Para telas menores que 768px */
@media (max-width: 768px) {

	header {
		height: 44px;
		padding: 1rem;
	}

	.header-container {
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
		padding-left: 0.5rem;
		padding-right: 0.5rem;
		max-width: 100%;
		gap: 1rem;
	}

	header .logo {
		font-size: 2.5rem;
		margin-left: 0.5rem;
	}

	.menu-toggle {
		display: block;
	}

	header nav {
		display: none;
		flex-direction: column;
		position: absolute;
		top: 44px;
		right: 0;
		width: 200px;
		background: linear-gradient(30deg, #55308d, #2a6099);
		padding: 1rem;
		gap: 1rem;
		box-shadow: 0 4px 15px rgba(0,0,0,0.3);
		z-index: 1000;
	}

	header nav.show {
		display: flex;
	}
	
	header nav a {
		padding: 0.5rem 0;
	}

	.language-selector {
		text-align: left;
	}

	.lang-btn {
	width: 100%;
		justify-content: space-between;
	}

	.main-container {
	    max-width: 100%;
	    margin: 3vh auto 0 auto;
	    padding-left: 5vh;
	    padding-right: 5vh;
	}

	#bubbles {
    	display: none;
	}

	.intro {
	    max-width: 100%;
	    margin-left: 0;
	}

    .intro h1 {
        max-width: 100%;
        font-size: 4rem;
    }

	.content-wrapper {
		padding-top: 1rem;
		padding-left: 0.5rem;
		padding-right: 0.5rem;
	}

}

/* Para telas menores que 500px */
@media (max-width: 500px) {

	.main-container {
	    padding: 0 2vh;
	}
	
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .intro h1 {
        font-size: 3.2rem;
    }

}
