/* Remove default list styling and setup flex */
ul {
  list-style-type: none;
  display: flex;
  justify-content: space-around;
  margin: 0;
  padding: 0;
  flex-wrap: wrap; /* Wrap nav items on small screens */
}

/* Font faces */
@font-face {
  font-family: MAIN;
  src: url('amigh.ttf') format('truetype');
  font-weight: normal;
}
@font-face {
  font-family: SUB;
  src: url('theboldfont.ttf') format('truetype');
  font-weight: bold;
}

/* Video background */
#myVideo {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  object-fit: cover;
  transform: scale(1.05);
}

/* Body */
body {
  font-family: MAIN, sans-serif;
  margin: 0;
  padding: 0;
}

/* Nav bar styling */
nav {
  background-color: rgb(225, 181, 199);
  padding: 0;
  border-radius: 10px;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
}

/* Nav links */
nav > ul > li > a {
  font-family: SUB, sans-serif;
  color: rgb(171, 34, 71);
  text-decoration: none;
  display: block;
  text-shadow: 1px 1px 2px rgb(255, 255, 255);
  padding: 10px;
  transition: color 0.4s ease;
}

/* Hover effects for specific links */
.about a:hover,
.projects > a:hover {
  color: rgb(255, 255, 255);
  background-color: transparent;
}

/* Dropdown styling */
.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 160px;
  background-color: rgb(255, 235, 197);
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  z-index: 1;
  border-radius: 10px;
}

.dropdown-content a {
  color: rgb(182, 157, 111);
  padding: 12px 16px;
  text-align: left;
  display: block;
  text-shadow: none;
  transition: background-color 0.3s, padding 0.3s;
}

.dropdown-content a:hover {
  background-color: #bfc1d7;
  color: white;
  border-radius: 10px;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* H4 styling */
h4 {
  color: white;
  transition: color 0.4s ease;
}

h4:hover {
  color: rgb(186, 63, 113);
}

/* Specific nav link padding */
.about a,
.projects a {
  padding-top: 20px;
}

/* Email styling */
.email {
  display: flex;
  align-items: center; 
  color: white;
}

/* Text background image */
.text-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  nav > ul {
    flex-direction: column; /* Stack nav items vertically on small screens */
    align-items: center;
  }
  
  .dropdown-content {
    position: static; /* Flow vertically */
    box-shadow: none;
    border-radius: 0;
    background-color: rgba(255, 235, 197, 0.95);
  }

  .dropdown:hover .dropdown-content {
    display: block;
  }
  
  #myVideo {
    object-fit: cover; /* Keep full screen on mobile */
  }
}
