@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&family=Playfair+Display+SC:ital,wght@0,400;0,700;0,900;1,400;1,700;1,900&family=Playfair:ital,opsz,wght@0,5..1200,300..900;1,5..1200,300..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap'); 

/* General */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: #f9f9f9;
  color: #0b0b0b;
}

html {
  scroll-behavior: smooth;
}

p {
  color: rgb(85, 85, 85);
  line-height: 1.6;
  font-size: 1rem;
}

/* Transition */
a, .btn {
  transition: all 0.3s ease-in-out;
}

/* Desktop Nav */
nav, .nav-link {
  display: flex;
  font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-size: 1.4rem;
  font-weight: 500;
  color: #1f353a;
  align-items: center;
}

nav {
  justify-content: space-around;
  height: 12vh;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
 background: #9bbac9;   
color: #1f2a44; 
}

.nav-link {
  gap: 2rem;
  list-style: none;
}

a {
  color: #1f353a;
  text-decoration: none;
  position: relative;
  font-weight: 500;
}

a::after {
  content: '';
  display: block;
  height: 2px;
  width: 0;
  background: cornflowerblue;
  transition: width 0.3s;
  position: absolute;
  bottom: -5px;
  left: 0;
}

a:hover::after {
  width: 100%;
}

.sty{
  background-color: rgb(213, 231, 238);
  border-radius: 7px;
}
.logo {
  font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-size: 2.0rem;
  font-weight: 700;
  color: #101011;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: default;
}
h4{
  font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: #101011;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  cursor: default;
  text-align: center;
}

/* Lists */
ul {
  list-style: none;   
  margin: 0;          
  padding: 0;       
}

/* Hamburger Menu */
#hamburger-nav {
  display: none;
}

.hamburger-menu {
  position: relative;
  display: inline-block;
}

.hamburger-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 24px;
  width: 24px;
  cursor: pointer;
}

.hamburger-icon span {
  width: 100%;
  height: 3px;
  background-color: #1f353a;
  border-radius: 2px;
  transition: all 0.3s ease-in-out;
}

.menu-links {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: #ffffff;
  width: fit-content;
  max-height: 0;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-radius: 8px;
  transition: all 0.3s ease-in-out;
}

.menu-links a {
  display: block;
  padding: 12px 20px;
  text-align: center;
  font-size: 1.4rem;
  color: #1f353a;
  text-decoration: none;
  font-weight: 500;
}

.menu-links a:hover {
  background-color: cornflowerblue;
  color: #fff;
  border-radius: 6px;
}

.menu-links li {
  list-style: none;
}

.menu-links.open {
  max-height: 300px;
}

.hamburger-icon.open span:first-child {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-icon.open span:nth-child(2) {
  opacity: 0;
}

.hamburger-icon.open span:last-child {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Tablet */
@media only screen and (max-width: 780px) {
  .logo {
  font-size: 1.3rem;
}
h4{
  font-size: 0.8rem;
}

}

/* Mobile */
@media only screen and (max-width: 435px) {
  .logo {
  font-size: 1rem;
}
h4{
  font-size: 0.6rem;
}
#hamburger-nav {
  display: none;
  height: auto;
}
a{
  font-size: 0.45rem;
}
skills{
  font-size: 0.45rem;
}
p{
  font-size: 0.5rem;
}
h2,h1{
  font-size: 1.2rem;
}


}
