:root {
  --clr-font: #fffbe9;
  --clr-bg1: #ceab93;
  --clr-bg2: #e3caa5;
  --clr-header-footer: #ad8b73;

  --spacer: url("./waves.svg");

  --clr-footer: black;
}

body {
  margin: 0;
  /* margin-top: 3rem; */
}
html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

*,
::before,
::after {
  box-sizing: inherit;
}

/*****    Theme    *****/

input[type="radio"] {
  appearance: none;
  width: 1rem;
  height: 1rem;
  outline: 3px solid var(--radio-color, currentColor);
  outline-offset: 3px;
  border-radius: 50%;
  margin: 0.9rem;
}

input[type="radio"]:checked {
  background-color: var(--radio-color);
}

#dark {
  --radio-color: #064663;
}

#light {
  --radio-color: #fff;
}

:root:has(#dark:checked) {
  --clr-font: #fffbe9;
  --clr-bg1: #04293a;
  --clr-bg2: #064663;
  --clr-header-footer: #041c32;
  --clr-footer: var(--clr-font);
  --spacer: url("./waves-dark.svg");
}
ul:has(#dark:checked) .logo > img {
  content: url(https://i.ibb.co/qrvznX9/Layer-4-copy.png);
}

/*************    waves  *********************/

.spacer {
  aspect-ratio: 960/300;
  width: 100%;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  position: absolute;
  bottom: 0;
}
.spacer3 {
  aspect-ratio: 960/300;
  width: 100%;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  position: absolute;
  top: 0;
  transform: rotate(180deg);
  z-index: 0;
}

.layer1 {
  background-image: var(--spacer);
}

/*****    Navbar    *****/

h1 {
  margin: 0;
  font-family: "Open Sans", sans-serif;
}
p {
  font-family: "Lato", sans-serif;
}

.logo > img {
  height: 2.5rem;
  padding: 3px 0 0 10px;
  content: url(https://i.ibb.co/HBRR1Dn/Layer-4.png);
}

.logo {
  float: left;
}

li {
  float: right;
}

ul {
  list-style-type: none;
  background-color: var(--clr-header-footer);
  margin: 0;
  padding: 0;
  overflow: hidden;
  height: 3rem;
  text-align: center;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1;
  font-family: "Open Sans", sans-serif;
}

li a {
  display: block;
  text-decoration: none;
  text-align: center;
  padding: 10px;
  color: var(--clr-font);
  padding: 13px 20px;
}

li a:hover {
  text-shadow: 0px 0px 20px antiquewhite;
}

/*********   welcome section   **********/

#welcome-section {
  background-color: var(--clr-bg1);
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  /* text-align: center;
    align-items: center; */
}
#welcome-section h1 {
  font-size: 4rem;
  color: var(--clr-font);
  z-index: 9;
}

#welcome-section p {
  font-size: 2rem;
  color: var(--clr-font);
  z-index: 9;
}

/*********   Project section   **********/

#projects {
  background-color: var(--clr-bg2);
}

#projects > p {
  font-size: 2rem;
  text-align: center;
  margin: 0;
  padding-top: 4rem;
  padding-bottom: 2rem;
  font-family: "Open Sans", sans-serif;
  color: aliceblue;
}

img {
  width: 100%;
  border-radius: 5% 5% 0% 0%;
}

.projecttitle {
  font-size: 1.4rem;
  padding-bottom: 10px;
  display: inline-block;
}

/********************** title faild attempts******************

.hehe{
    /* position: relative; 
    display: flex;
    width: fit-content;
block-size: fit-content;
border: 2px solid black;
flex-direction: row;
align-items: center;
margin: auto;

max-width: 300px;
max-height: 90px;
overflow: hidden;


/*height: calc(100%- img);
}
************************************************************/

.project-tile {
  background-color: #2c74b3;
  border-radius: 5% 5% 5% 5%;
  text-decoration: none;
  color: aliceblue;
  text-align: center;
  align-items: center;
  transition-duration: 0.6s;
  transition: all 0.6s ease-out;
  position: relative;
}

.project-tile:active {
  transform: scale(0.9);
}

.before_title {
  position: absolute;
  left: 25%;
  top: 88%;
  color: #2c74b3;
  transition: all 0.4s ease-out;

  font-family: "Nanum Gothic", sans-serif;
}
.after_title {
  position: absolute;
  right: 25%;
  top: 88%;
  color: #2c74b3;
  transition: all 0.4s ease-out;
  font-family: "Nanum Gothic", sans-serif;
}

.project-tile:hover .before_title {
  color: orangered;
}

.project-tile:hover .after_title {
  color: orangered;
}

/* not working*/
/* .before_title{
    /*visibility: visible;
    visibility: hidden;
    position: absolute;
    left: 25%;
    top: 87.9%;
    
    

}
.after_title{
    /* visibility: visible;
    visibility: hidden;
    position: absolute;
    right: 25%;
    top: 87.9%;
}

.project-tile:hover .before_title::before{

    visibility: visible;
    


    content: "<";
}

.project-tile:hover .after_title::after{
    visibility: visible;
    
    

    content: "_>";
    
    /* background-color:  black;
} */

#projectsdiv:nth-child(1) {
  grid-area: one;
}
#projectsdiv:nth-child(2) {
  grid-area: two;
}
#projectsdiv:nth-child(3) {
  grid-area: three;
}
#projectsdiv:nth-child(4) {
  grid-area: four;
}
#projectsdiv:nth-child(5) {
  grid-area: five;
}
#projectsdiv:nth-child(6) {
  grid-area: six;
}

#projectsdiv {
  display: grid;
  /* grid-template-columns: 1fr; */
  /* grid-auto-columns: 1fr; */
  grid-template-areas:
    "one two three"
    "four five six";

  gap: 2rem;
  padding: 2rem;

  max-width: 1200px;
  margin: auto;
}

@media (max-width: 1000px) {
  #projectsdiv {
    grid-template-areas:
      "one two"
      "three four"
      "five six";
  }
}

@media (max-width: 600px) {
  #projectsdiv {
    grid-template-areas:
      "one"
      "two"
      "three"
      "four"
      "five"
      "six";
  }
}

/*****    contact section  *******/

#contact {
  display: flex;
  flex-direction: column;
  text-align: center;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-color: var(--clr-bg1);
  position: relative;
  /* z-index: 6; */
}

#contacttitle {
  margin: 3rem;
  z-index: 8;
}

#contacttitle h1 {
  /* border: 2px solid ; */
  color: aliceblue;
  margin: 1rem;
  font-size: 3rem;
  /* z-index: 9; */
}

#contacttitle p {
  color: aliceblue;
  font-size: 1.5rem;
  /* z-index: 9; */
  /* border: 2px solid ; */
}

#profile-link {
  padding: 3rem;
  margin-bottom: 4rem;
}

.links {
  margin: 1.5rem;
  text-decoration: none;
  color: aliceblue;
  font-size: 1.1rem;
}

.links i {
  margin-right: 0.5rem;
  transition: all 0.4s ease-out;
}

.links:hover i {
  transform: scale(1.8);
}

#footer {
  position: absolute;
  bottom: 0;
  padding: 1.8rem;
  border-top: 2px solid aliceblue;
  background-color: var(--clr-header-footer);
  width: 100%;
  color: var(--clr-footer);
}

/* main{
    scroll-snap-type: y mandatory;
}

.scroll{
    scroll-snap-align: start;
} */
