@font-face {
  font-family: Font1;
  src: url(fonts/font1.otf);
}

@font-face {
   font-family: Font2;
   src: url(fonts/font2.otf);
}

@font-face {
   font-family: Font3;
   src: url(fonts/font3.ttf);
}

@font-face {
  font-family: Font4;
  src: url(fonts/font4.ttf);
}

@font-face {
  font-family: Font5;
  src: url(fonts/font5.otf);
}

@font-face {
  font-family: Font6;
  src: url(fonts/font6.ttf);
}

@font-face {
  font-family: Font7;
  src: url(fonts/font7.ttf);
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  cursor: url('cursorHover.png'), auto;
  position: relative;
  min-height: 100vh;
  background-color: #f0f0f0;
}

/* Infinite Scrolling Background */
.scrolling-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-image: url('images/blueBG1.png');
  background-size: 1920px 1080px;
  animation: scrollBackground 20s linear infinite;
}

@keyframes scrollBackground {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 400px 0;
  }
}

.scrolling-background::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.3);
}

/* Navigation Bar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(33, 61, 109, 0.9);
  padding: 15px 30px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo {
  height: 100px;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.1);
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropbtn {
  background-color: #6e8efb;
  color: white;
  padding: 10px 20px;
  border: none;
  cursor: pointer;
  font-size: 30px;
  transition: background-color 0.3s;
}

.dropbtn:hover {
  background-color: #5d7de8;
}

.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
  border: 2px solid black;
}

.dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  transition: background-color 0.2s;
}

.dropdown-content a:hover {
  background-color: #cccccc;
}

.dropdown.show .dropdown-content {
  display: block;
}

.projects-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 90%;
  margin: 120px auto 40px;
}

.projects-title {
  font-size: 50px;
  font-family: Font7;
  color: #ffffff;
  text-align: center;
  margin-bottom: 30px;
}

.projects-categories {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
  gap: 15px;
  flex-wrap: wrap;
}

.category-button {
  background-color: #6e8efb;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 18px;
  font-family: Font5;
  transition: background-color 0.3s;
}

.category-button:hover,
.category-button.active {
  background-color: #4a6cd9;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  width: 100%;
}

.project-card {
  background-color: rgba(255, 255, 255, 0.9);
  border: 2px solid black;
  border-radius: 10px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.project-image {
  width: 90%;
  height: 400px;
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 15px;
}

.project-name {
  font-size: 28px;
  font-family: Font1;
  margin-bottom: 10px;
  text-align: center;
}

.project-category {
  font-size: 16px;
  color: #666;
  margin-bottom: 10px;
  text-align: center;
  font-family: Font5;
}

.project-description {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 15px;
  flex-grow: 1;
  text-align: center;
}

.project-link {
  background-color: #6e8efb;
  color: white;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 5px;
  text-align: center;
  transition: background-color 0.3s;
  align-self: center;
  font-size: 16px;
  margin-top: auto;
}

.project-link:hover {
  background-color: #5d7de8;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .projects-grid {
      grid-template-columns: 1fr;
  }
  
  .projects-container {
      width: 95%;
  }
}