/* styles.css
   Styles inspired by the minimalist dark portfolio layout (hero-centered, subtle glass cards, cyan accent).
   Works with the provided indexNew.html structure.
*/

/* Import a clean system font stack with a Google fallback */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;900&display=swap');

:root {
    --dark-black: #1c1c25;
    --smoke: #c4c4c4;
    --blue: #2a4bb3;
    --medium-black: #25252f;
    --black: #101016;
    --soft-black: #3b3b44;
    --dark-blue: #213e9a;
    --black-blue: #1f367e;
    --dark-red: #95234c;
    --dark-yellow: #b58622;
    --dark-purple: #4548a9;
    --red: #e72a6e;
    --yellow: #ecb236;
    --white-smoke: #f7efdd;
    --purple: #7174db;
    --green: #44ac9e;
    --dark-green: #267267;
    --light-blue: #536cbb;
}

*{box-sizing:border-box}
html,body{
  height:100%;
  margin:0;

  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  -webkit-text-size-adjust:100%;
  line-height:1.45;
  scroll-behavior:smooth;

  /* Background */
  background-color: rgb(28, 28, 37);
  background-image: radial-gradient(circle, rgba(229, 229, 229, 0.03) 20%, transparent 10%), radial-gradient(circle, rgba(229, 229, 229, 0.03) 20%, transparent 10%);
  background-size: 1em 1em;
  background-position: 50% 50%;

  /* Fonts */
  font-family: Roboto, sans-serif;
  color: var(--white-smoke);
  
  /* Layout: stack children and center them horizontally */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

/* =================================================================================== */


/* =================================================================================== */

.header{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  /* shrink-to-fit width so header only as wide as its content */
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  /* max-width: 95%; */

  /* internal spacing — adjust as needed */
  /* padding: 1rem 1.5rem; */

  background-color: var(--blue);
  border-radius: .83em;
  box-shadow: 0px 0px 30px 5px var(--black);

  /* center the shrink-to-fit header */
  margin: 5rem auto 0;
  text-align: center;
}

/* Header parts */
.header .name{
  display: flex;
  margin:15px 18px 14px;
  width: 20rem;

  align-items: center;
  justify-content: center;  
}

.header .name .text{
  width: 15rem;

  color:var(--white-smoke);
  font-family: Roboto, sans-serif;
  font-weight: 800;
  letter-spacing: 1.5px;
  font-size: clamp(1rem, 2.6vw, 1.25rem);
}

.header .name .device-dots__img {
    object-fit: contain;
    width: 4.2em;
    height: 1.2em;
}

/* Tabs container and tab items */
.header .tabs{
  display: inline-flex;

  align-items: center;
  justify-content: center;
  white-space: nowrap;
  gap: .5rem;

  background-color: var(--dark-blue);
  padding: 1rem;
}

.header .contact{
  display: inline-flex;
  margin: 0.6rem;
}

.small-screws {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 3rem;
}
.small-screw-blue {
    border-radius: 100%;
    width: .54em;
    min-width: .54em;
    height: .54em;
    min-height: .54em;
    background-color: var(--black-blue);
}

.header .contact{
  height: 3.8rem;
  width: 8rem;

  margin-top: .6rem;
  margin-bottom: .6rem;
  margin-left: .6rem;
  margin-right: .6rem;

  padding: .5rem;

  background-color: var(--dark-blue);
  border-radius: 5px;

  align-items: center;
  align-content: center;
  justify-content: center;
}

/* =================================================================================== */


/* =================================================================================== */

.device{
  width: 100%;
  height: fit-content;

  padding: 1rem;

  background: var(--medium-black);
  border-radius: .83em;
  box-shadow: 0px 0px 30px 5px var(--black);

  justify-content: center;
  justify-items: center;
}

.device .title{
  display: inline-flex;
  border: var(--white-smoke);
  border-width: 1rem;

  justify-content: space-between;

  width: 100%;
  height: 4rem;
}
.device .title .name{
  display: flex;
  align-items: center;
  padding: 2rem;
  gap: 1rem;

  background-color: var(--dark-black);
  border-radius: .5rem;

  width: 100%;
  height: 4rem;
}
.device .title .text{
  width: max-content;

  color:var(--white-smoke);
  font-family: Roboto, sans-serif;
  font-weight: 800;
  letter-spacing: 1.5px;
  font-size: clamp(1rem, 2.6vw, 1.25rem);
}

.device .title .dot{
    object-fit: contain;
    width: 4rem;
    height: 2rem;
}

.device .title .buttons{
  display: inline-flex;
  width: 11rem;
  gap: 1rem;
  padding-right: 1rem;
}

/* =================================================================================== */

/* Project Description */

/* =================================================================================== */

.project-card{
  display: inline-flex;
  flex-direction: column;
  padding: 1rem;

  background: var(--medium-black);
  border-radius: .83em;
  box-shadow: 0px 0px 30px 5px var(--black);
}

.project-title{
  width: 100%;
  height: 4rem;

  display: inline-flex;
  justify-content: space-between;

  background: var(--dark-black);
  border-radius: 5px;
}

.project-info{
  width: 100%;
  height: 100%;

  margin-top: 1rem;

  background-color: var(--dark-black);
  border-radius: 5px;
  padding: 1rem;
}

/* =================================================================================== */

/* Project Description */

/* =================================================================================== */

.contentBackground{
  background: var(--medium-black);
  border-radius: .83em;
  box-shadow: 0px 0px 30px 5px var(--black);
}

/* .container{
  display: flex;
  width: 100%;
  height: 100%;

  margin-top: 1rem;
  gap: 1rem;
} */

.container .left{
  width: 90rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.preview_title{
  width: 100%;
  height: 4rem;
  background-color: var(--dark-black);
  border-radius: 5px;

  align-items: center;
  align-content: center;
  padding-left: 1rem;

  color:var(--white-smoke);
  font-family: Roboto, sans-serif;
  font-weight: 800;
  letter-spacing: 1.5px;
  font-size: clamp(2rem, 2.6vw, 1.25rem);
}

.preview_screen{
  width: 80%;
  height: fit-content;
  background-color: var(--black);
  border-radius: 5px;
  padding: 1rem;
  margin-top: 1rem;
}

.preview_img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 5px;
}

.screen_grain{
  opacity: 0.67;
  mix-blend-mode: overlay;
  display: flex;
  position: absolute;
  inset: 0%;

  content: "";
  z-index: 100;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url(https://uploads-ssl.webflow.com/61ba0d8…/62a847d…_bg-noise.png);
  animation: 0.2s infinite noise;
  pointer-events: none;
}

.container .left 

.container .right{
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.container .right .resume{
  width: 100%;
  height: 100%;
  /* height: max-content; */
  padding: 1rem;
}

.container .right .link{
  width: 100%;
  height: 20%;
  margin-top: 1rem;
  padding: 1rem;
}

.screen__static-grain {
  opacity: .67;
  mix-blend-mode: overlay;
  background-image: url(images/bg-noise.png);
  background-position: 50%;
  background-size: contain;
  position: absolute;
  inset: 0%;
}

/* =================================================================================== */

/* Tags */

/* =================================================================================== */

.tags{
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  width: 100%;
  height: 100%;
  gap: .5rem;
}

.tag{
  display: inline-flex;
  width: fit-content;
  height: fit-content;

  background-color: var(--dark-black);
  border-radius: 20px;

  padding-top: .25rem;
  padding-bottom: .25rem;
  padding-left: .5rem;
  padding-right: .5rem;

  align-content: center;
  align-items: center;
  gap: .25rem;
}

.tag_dot{
  height: .5rem;
  width: .5rem;
  background-color: var(--yellow);
  border-radius: 100%;
}

.task-title{
  color:var(--yellow);
  font-family: Roboto, sans-serif;
  font-weight: 800;
  letter-spacing: 1.5px;
  font-size: clamp(2rem, 2.6vw, 1.25rem);

  text-shadow: 0px 5px 0px 0px var(--dark-yellow);
  transform: translateY(-5px);
}

.tasks{
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.task{
  color: var(--white-smoke);
  background-color: var(--medium-black);
  border-radius: 5px;
  width: 100%;
}

/* =================================================================================== */

/* Pages */

/* =================================================================================== */

.pages{
  width: 70rem;
  height: 38rem;
  
  border-color: var(--white-smoke);
  border-width: 1rem;
}

.page{
  display: inline-flex;
  flex-direction: row;

  gap: 1rem;

  width: 100%;
  height: 100%;
}

.page_content{
  display: inline-flex;
  flex-direction: row;
  gap: 1rem;
}

.content_title{
  width: 100%;
  height: 100%;
}

.content_resume{
  width: 40rem;
  height: 100%;
}

/* =================================================================================== */

/* Tab */

/* =================================================================================== */

.tabcontent{
  display: inline-flex;
  animation: fadeEffect 1s; /* Fading effect takes 1 second */
}

/* Go from zero to full opacity */
@keyframes fadeEffect {
  from {opacity: 0;}
  to {opacity: 1;}
}

.tab_content_flex_row{
  flex-direction: row;
}

.tab_content_flex_column{
  flex-direction: column;
}

/* =================================================================================== */

/* preview */

/* =================================================================================== */

.preview_container{
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 15rem;
  gap: 1rem;

  align-items: center;
  align-content: center;
  justify-items: center;
  justify-content: center;
  text-align: center;
}

.preview_source{
  display: flex;
  width: fit-content;
  height: 100%;

  /* overflow: clip;
  overflow-clip-margin: content-box;
  object-fit: cover; */

  padding: 1rem;
  gap: 1rem;

  background-color: var(--black);
  border-radius: .83em;
}

.preview_highlights{
  padding: 1rem;
  background-color: var(--black);
  border-radius: 5px;
  line-height: 0;
}

.preview_highlights img{
  overflow: clip;
  overflow-clip-margin: content-box;
  width: 100%;
  /* height: fit-content; */
  object-fit: cover;
  border-radius: 5px;
}

.preview_highlights video{
  overflow: clip;
  overflow-clip-margin: content-box;
  width: 100%;
  /* height: fit-content; */
  object-fit: cover;
  border-radius: 5px;
}

.preview_source img{
  overflow: clip;
  overflow-clip-margin: content-box;
  width: fit-content;
  height: 100%;
  object-fit: cover;
  border-radius: 5px;
}

.preview_source video{
  overflow: clip;
  overflow-clip-margin: content-box;
  width: fit-content;
  height: 100%;
  object-fit: cover;
  border-radius: 5px;
}

/* =================================================================================== */

/* Container */

/* =================================================================================== */

.container-full{
  display: flex;
  flex-direction: column;

  /* width: 100%; */
  /* height: 100%; */

  padding: 1rem;
  gap: 1rem;

  background-color: var(--medium-black);
  border: 1px solid var(--medium-black);
  border-radius: .83em;
  box-shadow: 0 0 1em 0 var(--black);

  transition: border-color .2s, background-color .2s;
}

.container-full:hover{
  background-color: var(--soft-black);
  border: 1px solid var(--white-smoke);

  transition: border-color .2s, background-color .2s;
}

.container-dark{
  background-color: var(--dark-black);
  border-radius: 5px;
  padding: .5rem;
}

.container_page_btn{
  display: flex;
  flex-direction: row;

  align-content: center;
  align-items: center;
  justify-content: center;
  justify-items: center;

  width: 100%;
  height: 5rem;

  padding: .5rem;
  gap: 1rem;

  background-color: var(--medium-black);
  border: 1px solid var(--medium-black);
  border-radius: .83em;
  box-shadow: 0 0 1em 0 var(--black);

  transition: border-color .2s, background-color .2s;
}

.container_page_btn:hover{
  background-color: var(--soft-black);
  border: 1px solid var(--white-smoke);

  transition: border-color .2s, background-color .2s;
}

/* =================================================================================== */

/* text */

/* =================================================================================== */

.title{
  background-color: var(--dark-black);
  border-radius: 5px;

  color:var(--white-smoke);
  font-family: Roboto, sans-serif;
  font-weight: 800;
  letter-spacing: 1.5px;
  font-size: clamp(2rem, 2.6vw, 1.25rem);
}

/* =================================================================================== */

/* Display */

/* =================================================================================== */

.center{
  align-items: center;
  align-content: center;
  justify-items: center;
  justify-content: center;
  text-align: center;
}

.content-fit-height{
  height: fit-content;
}
.content-fit-width{
  width: fit-content;
}

.content-max-height{
  height: 100%;
}
.content-max-width{
  width: 100%;
}

.content-max{
  width: 100%;
  height: 100%;
}

/* =================================================================================== */

/* pro */

/* =================================================================================== */

.page_pro{
  display: inline-flex;
  flex-direction: row;
  gap: 1rem;

  justify-items: center;
  justify-content: center;
  align-items: center;
  align-content: center;
}

.container_pro{
  width: 20rem;
  height: min-content;
}

.text_pro{
  color: var(--red);
  font-family: Roboto, sans-serif;
  font-weight: 800;
  letter-spacing: 1.5px;
  font-size: clamp(1.5rem, 2.6vw, 1.25rem);
}

.text_pro_year{
  color: var(--yellow);
  font-family: Roboto, sans-serif;
  font-weight: 800;
  letter-spacing: 1.5px;
  font-size: clamp(1.5rem, 2.6vw, 1.25rem);
}

.img_pro{
  width: auto;
  height: 7rem;
  object-fit: cover;
}

.pro_together{
  height: 10rem;
}

/* =================================================================================== */

/* Loader */

/* =================================================================================== */

.loader {
  border: 16px solid var(--medium-black); /* Light grey */
  border-top: 16px solid var(--yellow); /* Blue */
  border-radius: 50%;
  width: 120px;
  height: 120px;
  animation: spin 2s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.highlight-aboutme{
  border: 2px solid var(--medium-black); /* Light grey */
  border-top: 16px solid var(--blue); /* Blue */
  animation: spin 2s linear infinite;
}

@keyframes rotate {
	100% {
		transform: rotate(1turn);
	}
}

.rainbow {
	position: relative;
	z-index: 0;
	/* width: 400px;
	height: 300px; */
	/* border-radius: 2px; */
	overflow: hidden;
	padding: .5rem;
	display: flex;
	justify-content: center;
	align-items: center;
	font-family: sans-serif;
	font-weight: bold;
	
	&::before {
  content: '';
  position: absolute;
  z-index: -2;
  left: -50%;
  top: -450%;
  width: 200%;
  height: 1000%;
  background-color: var(--blue), var(--blue);
  background-repeat: no-repeat;
  background-size: 50% 50%, 50% 50%;
  background-position: 0 0, 100% 0, 100% 100%, 0 100%;
  background-image: linear-gradient(var(--medium-black), var(--medium-black)), linear-gradient(var(--yellow), var(--yellow)), linear-gradient(var(--medium-black), var(--medium-black)), linear-gradient(var(--yellow), var(--yellow));
  animation: rotate 4s linear infinite;
	}
	
	&::after {
		content: '';
		position: absolute;
		z-index: -1;
		left: 6px;
		top: 6px;
		width: calc(100% - 2px);
		height: calc(100% - 2px);
		/* background: white; */
		border-radius: 5px;
	}
}

/* =================================================================================== */

/* About me */

/* =================================================================================== */

.aboutme{
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.container_about_me{
  display: flex;
  flex-direction: row;
  gap: 1rem;
}

.picture_border{
  border-radius: 100%;
}
.picture_border img{
  border-radius: 100%;
  width: 10rem;
  height: 10rem;
}

.aboutme_more{
  gap: .5rem;
}

.aboutme_title{
  color: var(--yellow);
  font-family: Roboto, sans-serif;
  font-weight: 800;
  letter-spacing: 1.5px;
  font-size: clamp(1rem, 2.6vw, 1.25rem);
}

.aboutme_list{
  align-items: flex-start;
  align-content: baseline;
  justify-items: baseline;
  justify-content: baseline;
}

.aboutme_text_title{
  color: var(--soft-black);
  font-family: Roboto, sans-serif;
  font-weight: 800;
  letter-spacing: 1.5px;
  font-size: clamp(0.5rem, 2.6vw, 1.25rem);
}