:root {
  --dark-bg: #2e3440;
  --dark-accent: #4c566a;
  --light-bg: #e5e9f0;
  --light-text: #d8dee9;
  --highlight: #88c0d0;
  --green-accent: #a3be8c;
  --backdrop: backdrop-filter: blur(2px);
  font-family: sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

.background{
  background: url("./assets/img/ChatGPT\ Image\ 29\ aug.\ 2025\ 23_50_39.png") no-repeat center center;
  height:100dvh;
  width: 100%;
  background-size: cover;
  position: fixed;
  inset: 0;
  z-index: -1;
}

body {
  background: var(--light-text);
}

h1 {
  font-size: clamp(1.5rem, 4vw, 3rem);
  color: var(--dark-bg);
}

h2 {
  font-size: clamp(2rem, 4vw, 4rem);
  color: var(--dark-accent);
}

h3 {
  font-size: clamp(1.25rem, 2vw, 2.5rem);
  color: var(--dark-accent);
  text-decoration: underline;
}

.slogan {
  font-size: clamp(1rem, 2vw, 2rem);
  color: var(--dark-bg);
}

h4 {
  font-size: clamp(0.75rem, 2vw, 1.5rem);
  color: var(--light-text);
}

p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--dark-bg);
}

a{
  text-decoration: none;
  color:var(--light-text);
}

footer p{
  color:var(--light-text);
}

.global-container {
  max-width: 1200px;
  display: grid;
  margin-inline: auto;
  padding-inline: 1rem;
  grid-template-rows: auto auto auto auto auto;
  grid-template-columns: 1fr;
  grid-template-areas:
    "nav"
    "header"
    "about"
    "projects"
    "footer";
}

nav {
  grid-area: "nav";
  height: 5dvh;
  width: 100%;
  position: sticky;
  top: 0;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  z-index: 7;
  
  /* margin-inline: auto; */
}

.ham-menu{
  width: 40px;
  height:100%;
  padding-top:5px;
  display: flex;
  flex-direction:column;
  gap:3px;
  z-index: 99;
}

.ham-menu span{
  height:4px;
  width: 100%;
  background:black;
  border-radius: 25%;
}

.menu{
  position:fixed;
  width: 200px;
  height: 40dvh;
  background:rgba(46, 52, 64, 0.8);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap:15px;
  border-bottom-left-radius: 25px;
  border-bottom-right-radius: 25px;
  z-index:5;
  transform:translateY(-500px);
  opacity: 0;
  transition: all 0.8s ease;
}

.menu.active{
  transform: translateY(0);
  opacity: 1;
}

.menu a{
  height:2rem;
  width:7rem;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
  text-decoration: none;
  color:var(--light-text);
  transition: all 0.5s ease-in-out;
}

.menu a:hover{
  background: var(--highlight);
  color:var(--dark-bg);
}


header {
  min-height: 95dvh;
  grid-area: "header";
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 15px;
  padding: 1rem;
  backdrop-filter: blur(2px);
  border-radius: 10px;
  margin-bottom:2rem;
}

header img {
  width: min(80vw, 500px);
  border-radius: 50%;
  object-fit: cover;
  aspect-ratio: 1/1;
}

.about {
  grid-area: "about";
  min-height: 60dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  gap: 2rem;
  margin-bottom:2rem;
  backdrop-filter: blur(2px);
  border-radius: 10px;
  /* background:rgba(164, 191, 141, 0.4); */
  background: rgba(136, 192, 208, 0.4);
  
}

.about img {
  width: min(40vw, 300px);
  border-radius: 50%;
  object-fit: cover;
  aspect-ratio: 1/1;
}

.btn-container {
  display: flex;
  gap: 2rem;
}

.btn {
  width: 6rem;
  height: 2rem;
  border-radius: 9999px;
  background: transparent;
  border: 2px solid var(--dark-bg);
  color: var(--dark-bg);
  font-weight: bolder;
  transition: all 1s ease;
}

.btn:hover{
    background: var(--dark-bg);
    color:var(--light-text);
    scale:1.1;
    /* transform: translateY(-5px); */
    cursor: pointer;
    box-shadow: 2px 35px 32px -8px rgba(0, 0, 0, 0.75);
    transform: perspective(200px) translateY(-2px) rotateX(20deg) translateZ(0);
}



.projects {
  min-height: 100dvh;
  grid-area: "projects";
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  backdrop-filter: blur(2px);
  border-radius: 10px;
}

.card-container {
  max-width: 90%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.card {
  /* min-width:100%; */
  flex: 1 1 50%;
  min-height: 15%;
  max-height:25%;
  position: relative;
  overflow: hidden;
  transition: all 0.8s ease;
  border: 2px solid var(--green-accent);
  /* border-radius: 25px; */
}

.card img {
  max-width: 100%;
  object-fit: cover;
  aspect-ratio: 1/1;
  /* border-radius: 25px; */
}

.card-text {
  background: rgba(0, 0, 0, 0.5);
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 1rem;
}

.card-text p {
  max-height: 0;
  opacity: 0;
  transition: all 1s ease;
  color: var(--light-text);
}

.card:hover .card-text p {
  max-height: 200px;
  opacity: 1;
}

.card:hover {
  transform: perspective(1200px) translateY(-5%) rotateX(25deg) translateZ(0);
  box-shadow: 2px 35px 32px -8px rgba(0, 0, 0, 0.75);
}

footer {
  grid-area: "footer";
  background: var(--dark-bg);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-evenly;
  font-size: smaller;
  width: 100%;
  margin-top: 20px;
}

@media (min-width: 1000px) {
  .card-container {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .card {
    max-width: 45%;
    flex: 1 1 35%;
    max-height: 60%;
    position: relative;
    overflow: hidden;
    transition: all 0.8s ease;
    border: 1px solid var(--green-accent);
  }

  .about {
    min-height: 100dvh;
  }

  .about p {
    max-width: 50vw;
  }
}
