@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;
}

/* Main Content */
.container {
  max-width: 100%;
  min-height: 100vh;
  margin: 0;
  padding-top: 150px; /* Space for navbar */
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 90%;
  gap: 30px;
  padding-bottom: 50px;
}

.page-title {
  font-family: Font7;
  font-size: 48px;
  color: #d4d4d4;
  text-align: center;
  margin-bottom: 30px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

/* Sites Grid Layout */
.sites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
  width: 100%;
}

/* Site Card Styles */
.site-card {
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 2px solid black;
  display: flex;
  flex-direction: column;
}

.site-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.site-image-container {
  width: 100%;
  height: 400px;
  overflow: hidden;
  border-bottom: 2px solid black;
}

.site-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.site-card:hover .site-image {
  transform: scale(1.05);
}

.site-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.site-title {
  font-family: Font1;
  font-size: 24px;
  margin-bottom: 10px;
  color: #333;
  text-align: center;
}

.site-description {
  font-size: 16px;
  line-height: 1.5;
  color: #666;
  margin-bottom: 20px;
  text-align: center;
  flex-grow: 1;
}

.site-link {
  display: block;
  background-color: #6e8efb;
  color: white;
  text-align: center;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s;
  margin-top: auto;
  border: 1px solid black;
}

.site-link:hover {
  background-color: #5d7de8;
}

/* Animation for site cards */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.site-card {
  animation: fadeIn 0.5s ease forwards;
  opacity: 0;
}

.site-card:nth-child(1) { animation-delay: 0.1s; }
.site-card:nth-child(2) { animation-delay: 0.2s; }
.site-card:nth-child(3) { animation-delay: 0.3s; }
.site-card:nth-child(4) { animation-delay: 0.4s; }
.site-card:nth-child(5) { animation-delay: 0.5s; }
.site-card:nth-child(6) { animation-delay: 0.6s; }

/* Responsive Styles */
@media (max-width: 1200px) {
  .sites-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
}

@media (max-width: 992px) {
  .sites-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .sites-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
  
  .page-title {
    font-size: 36px;
  }
}

@media (max-width: 576px) {
  .sites-grid {
    grid-template-columns: 1fr;
  }
  
  .container {
    padding-top: 130px;
  }
  
  .page-title {
    font-size: 32px;
  }
}