*{box-sizing: border-box;}

html{
  scroll-behavior: smooth;
}

:root{
    --base-color:#ff7900;
    --base-variant:#ff7900;
    --text-color: black;
    --primary-color: black;
    --text-proj:#F5F5F5;
    --bg-col:#FFB047;
}

.darkmode{
    --base-color: #493545;
    --base-variant: #493545;
    --text-color: #F5F5F5;
    --primary-color:#F5F5F5;
    --text-proj:#240046;
    --bg-col:#562E77;
}

body,
html{padding: 0;margin: 0;}

body{
    max-width: 850px;
    margin:auto;
    font-size: 1.2rem;
    padding: 0 1.5rem 1.5rem 1.5rem;
    background-color:var(--base-color);
    transition: background-color 2s ease;
    font-family: monospace;
    color:var(--text-color);
}

h1{font-size: 2.75rem;
    font-weight: 700;}

h1 {
    display: block;
    margin-block-start: 0.67em;
    margin-block-end: 0.67em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    unicode-bidi: isolate;
}

h2{font-size: 30px;}
h3{font-size: 1.40rem;}
h4{font-size: 1.25rem;
font-weight: 100;}

p{font-size: 18px; 
    font-style: oblique;}

a{font-size: 18px;
    cursor: pointer; 
    color:var(--text-color);
    text-decoration:underline;
}

a:hover{color: white;}

div {display: block; unicode-bidi: isolate;
}

button {
    font-size: 3rem;
    font-weight: 700;
    cursor: pointer;
    background: none;
    border: 0cm;
    margin-left: -15px;
    transition: transform 0.5s ease;
}

#theme-switch{
    height: 50px;
    width: 50px;
    padding: 0;
    border-radius: 50%;
    background-color: var(--base-variant);
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 20px;
    right: 20px;
}

#theme-switch svg{
    fill: var(--primary-color);
}
#theme-switch svg:last-child{
    display: none;
}

.darkmode #theme-switch svg:first-child{
    display: none;
}
.darkmode #theme-switch svg:last-child{
    display: block;
}

.spacer{height: 3.5rem;
    width: 100%;
    background-image: repeating-linear-gradient(45deg, transparent, transparent 8px, currentcolor 8px, currentcolor 10px);
    margin-top: 25px;
}
    
.spacerbottom{height: 3.5rem;
    width: 100%;
    background-image: repeating-linear-gradient(-45deg, transparent, transparent 8px, currentcolor 8px, currentcolor 10px);
    margin-top: 25px;
}
.spacerbottombottom{height: 3.5rem;
  width: 100%;
  background-image: repeating-linear-gradient(45deg, transparent, transparent 8px, currentcolor 8px, currentcolor 10px);
  margin-top: 25px}

.foot{text-align: center; margin-top: 50px; font-size: 1rem;}
.links{margin-top: 50px;}


/* Nav Bar */
nav {
    position: absolute;
    top: 18px;
    left: -25px;
    width: 250px;
    height: 100%;

}
.navbar ul{
  list-style-type: none;
  overflow: hidden;
}

.navbar a{
  color:var(--text-color);
  text-decoration: none;
  padding: 15px;
  display: block;
  text-align: center;
}

.navbar li{
  float: left;
  border: 1.5px solid var(--text-color);
}

.navbar a:hover{
  background-color: var(--bg-col);
}

/*Hamburger menu*/
#hamb-nav{
  display: none;
  float: right;
} 

.hnav{  
  position: absolute;
  top: -10px;
  left: 150px;
  left: auto;
  width: 250px;
  height: 100%;
}
 
.hulnav{
  text-align: center;
  margin: 0;
  padding: 0;
}

.hamb-bar a{
  color:var(--text-color);
  text-decoration: none;
  padding: 15px;
  display: inline-block  ;
  text-align: center;
}

.hamb-bar li{
  float: left;
  border: 1.5px solid var(--text-color);
}

.hamb-bar li a{
  display: block;
  padding-inline: 15px;
}

/*Footer Contact Box*/
ul {
  list-style: none;
}
footer{ margin-top: 50px;}


.contact_box {
  margin: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bolder; /* Made bolder */
  background-color: var(--primary-color); /* Black background */
  border-radius: 30px; /* Added border-radius to make the container rounded */
  padding: 20px; /* Added padding for better appearance */
  height: 70px;
  width: 400px;
}

.contact_box .icon-content {
  margin: 0 10px;
  position: relative;
  font-weight: bolder; /* Made bolder */
}

.contact_box .icon-content .tooltip {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--text-color); /* White background */
  color: var(--base-variant); /* Black text */
  padding: 6px 10px;
  border-radius: 5px;
  opacity: 0;
  visibility: hidden;
  font-size: 14px;
  transition: all 0.3s ease;
  font-weight: bolder; /* Made bolder */
}

.contact_box .icon-content:hover .tooltip {
  opacity: 1;
  visibility: visible;
  top: -50px;
}

.contact_box .icon-content .link {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  color: var(--primary-color); /* White icons */
  background-color: var(--base-color); /* Black background */
  transition: all 0.3s ease-in-out;
  font-weight: bolder; /* Made bolder */
}

.contact_box .icon-content .link:hover {
  box-shadow: 3px 2px 45px 0px rgb(0 0 0 / 12%);
}

.contact_box .icon-content .link svg {
  width: 30px;
  height: 30px;
  fill: #fff; /* White icons */
}

.contact_box .icon-content .link[data-social="linkedin"]:hover {
  color: #0088cc;
}

.contact_box .icon-content .link[data-social="github"]:hover {
  color: orange;
}

.contact_box .icon-content .link[data-social="email"]:hover {
  color:#8B0000;
}

.contact_box .icon-content .link[data-social="surprise"]:hover {
  color: #FF00FF;
}

.contact_box .icon-content .link[data-social="blog"]:hover {
  color:#568203;
}

/* Experience CSS */
img.Slope_logo{
  width: 60px;
  height: auto;
}

.smalltext{
  font-size: .90rem;
  text-align: left;
  font-weight:normal ;
}


/* Project Cards*/
.cards {
  display: flex;
  flex-direction:row;
  gap: 15px;
}
.cards .change{
  background-color: var(--primary-color);
}

/* Color card
.cards .red {
  background-color: #f43f5e;
}
.cards .blue {
  background-color: #3b82f6;
}
.cards .green {
  background-color: #22c55e;
}*/

.cards .card {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  height: 100px;
  width: 250px;
  border-radius: 10px;
  color: white;
  cursor: pointer;
  transition: 400ms;
}

.cards .card p.tip {
  font-size: .9em;
  font-weight: 700;
  color: var(--text-proj);
}

.cards .card p.second-text {
  font-size: .7em;
  color: var(--text-proj);
}

.cards .card:hover {
  transform: scale(1.1, 1.1);
}

.cards:hover > .card:not(:hover) {
  filter: blur(10px);
  transform: scale(0.9, 0.9);
}

a.project{
  color: var(--text-proj);
    font-size: 1em;
}



/* Mobile */
@media only screen and (max-width: 768px){
  img.Slope_logo{
    max-width: 100%;
    height: auto;
  }
  .contact_box{
    max-width: 100%;
  }
  .contact_box .icon-content {
    margin: 0 5px;
  }
  .cards .card p.tip {
    font-size: .55em;
    font-weight: auto;
    color: var(--text-proj);
  }
  .cards .card p.second-text {
    font-size: .5em;
    color: var(--text-proj);
  }
}

@media only screen and (max-width: 1030px){
  #desktop-nav{
    display: none;
  }
  #hamb-nav{
    display: block;
  } 
  h1{
    margin-top: 6vh;
  }
}


@media only screen and (max-width: 768px) {
    .foot{text-align: center;margin-top:auto ;}
    .spacer{margin-top: 0cm;}
    .spacerbottom{margin-top: 0cm;}
    .links{margin-top: auto;}
    #theme-switch{
        position:absolute;
        top: 15px;
        bottom: 20px;
        right: 5px;
    }
}


