@font-face {
  font-family: 'NewYork';
  src: url('../fonts/NewYork.woff2') format('woff2'),
       url('../fonts/NewYork.woff') format('woff'),
       url('../fonts/NewYork.otf') format('opentype');
}

@font-face {
  font-family: 'Poppins';
  src: url('../fonts/Poppins-Regular.woff2') format('woff2'),
       url('../fonts/Poppins-Regular.woff') format('woff'),
       url('../fonts/Poppins-Regular.ttf') format('truetype');
}

@font-face {
  font-family: 'Corbel';
  src: url('../fonts/Corbel.woff2') format('woff2'),
       url('../fonts/Corbel.woff') format('woff'),
       url('../fonts/Corbel.otf') format('truetype');
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
    color-scheme: dark;
    --special-text-color: hsla(60, 100%, 50%, 0.5);
    --border-color: black;
}

@media (prefers-color-scheme: dark) {
    :root {
        --special-text-color: hsla(60, 50%, 70%, 0.75);
        --border-color: white;
    }
}

::-webkit-scrollbar {
  display: none;
}

html,
body {
  height: 100vh;
  margin: 0;
}

header {
  padding-top: 3%;
  min-height: 8vh;
  width: 100%;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 1;
}

h1 {
  color: white;
  font-size: 5vh;
  font-family: 'NewYork';
  font-weight: normal;
  padding: 0 2%;
  margin: 0;
}

nav {
  display: flex;
  width: 100%;
  height: 20%;
  align-items: center;
  justify-content: center;
  z-index: 1;
  font-size: 1.5vh;
  font-family: 'Corbel';
}

nav a {
  text-decoration: none;
  color: #ACABAC;
  white-space: nowrap;
  transition: 0.5s;
  padding-left: 3vh;
  padding-right: 3vh;
}

nav a:hover {
  color: white;
}

.portfolio-container {
    color: white;
    font-family: 'Corbel';
    position: relative;
    display: inline-block;
}

.dropdown {
    position: absolute;
    background: rgb(221 221 221 / 5%);
    top: 180%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 2;
    backdrop-filter: blur(0.4vh);
    -webkit-backdrop-filter: blur(10px);
    width: 18vh;
    box-sizing: border-box;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.8s ease-out, opacity 0.4s ease-out;
    opacity: 0;
}

.dropdown a {
    display: block;
    color: white;
    padding: 1vh;
    text-decoration: none;
    font-family: 'Poppins';
    font-size: 1.5vh;
    text-shadow: black 0px 0 3px;
    width: 100%;
    box-sizing: border-box;
}

.dropdown a:hover {
    background-color: black;
}

/* Show the dropdown on hover with animation */
.portfolio-link:hover + .dropdown,
.portfolio-container:hover .dropdown {
    max-height: 60vh; 
    opacity: 1;
}

.openbtn {
  font-size: 4vh;
  cursor: pointer;
  color: white;
  opacity: 0.7;

  border: none;
  display: none;
  position: absolute;
  right: 2vh;
  top: 2.3vh;
}

.sidenav a i{
  font-size: 5vh;
}

.sidenav {
    height: 100%;
    width: 0;
    position: fixed;
    font-family: 'Poppins';
    top: 0;
    right: 0;
    background-color: #111;
    overflow-x: hidden;
    transition: width 0.5s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 1.5vh;
    z-index: 15;
	transform-origin: right;
}

#logo h1 {
    margin-bottom: 20%;
    font-size: 5vh;
    color: white;
}

.sidenav a {
	
	white-space: nowrap;
    text-decoration: none;
    font-size: 2vh;
    margin-bottom: 2vh;
    display: block;
    transition: color 0.3s;
    color: #BAB9BA;
}

.sidenav a:hover {
    color: white;
}

.sidenav .closebtn {
    position: absolute;
    top: 0.5vh;
    font-size: 7vh;
    margin-left: 80%;
}


.social-icons {
    display: flex;
    justify-content: center;
    align-items: center; 
    gap: 3vh;     
    margin-top: 15%;
}

.dropdown-content {
    display: block;
    overflow: hidden;
    transition: max-height 0.8s ease-in-out, margin-bottom 0.8s ease-in-out;
    max-height: 0;
    margin-bottom: 0;
}

.dropdown-content.show {
    margin-bottom: 1.5vh;
}

.dropdown-content a {
    padding: 0.1vh 0;
    font-size: 1.5vh;
}

.dropdown-toggle::after {
    content: '\25BC';
    font-size: 1.5vh;
    margin-left: 0.5vh;
    transition: transform 0.3s ease-in-out;
    display: inline-block;
}

.dropdown-toggle.active::after {
    transform: rotate(180deg) !important;
}

#logomobile {
    position: absolute;
    top: 2vh;
    left: 2vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

#logomobile h1 {
    display: none;
    font-size: 4.2vh;
    color: white;
    font-family: 'NewYork';
    margin: 0;
    white-space: nowrap;
    text-shadow: #000000 1px 0 3px;
}

@media only screen and (max-width: 768px) {
	
	nav {
		display: none;
	}
	
	.openbtn {
		display: block;
	}

	#logomobile h1 {
		display: block;
		z-index: 1;
	}
	
	.sidenav {
		text-align: center;
	}

} 