* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  background-color: #f4f4f4;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header */
header {
  background-color: rgba(44, 62, 80, 0.95);
  color: white;
  padding: 15px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header .logo img {
  max-height: 5vh;
  height: auto;
  padding-left: 30px;
  padding-top: 5px;
  transition: transform 0.1s ease;
}

header .logo img:hover {
  transform: scale(1.05);
}

nav {
  padding-right: 30px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
  padding: 5px;
}

nav ul li {
  position: relative;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem;
  padding: 8px 0;
  transition: color 0.3s ease;
  position: relative;
}

nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #007BFF;
  transition: width 0.1s ease;
}

nav ul li a:hover {
  color: #007BFF;
}

nav ul li a:hover::after {
  width: 100%;
}

.hero {
  height: 40vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  background-color: #2C3E50;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); 
  z-index: 0; 
}

.hero-content {
  display: block;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
  color: white;
  padding: 20px;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  font-weight: bold;
  letter-spacing: 2px;
}

.hero p {
  font-size: 1.3rem;
  margin: 20px 0;
}

.cta-button {
  background-color: #007BFF;
  color: white;
  padding: 15px 30px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: #0056b3;
}

/* About Section */
#about {
  background-color: #f4f4f4;
  padding: 50px 0;
  text-align: center;
}

#about .container {
  max-width: 1200px;
  margin: 0 auto;
}

#about h2 {
  font-size: 3rem;
  margin-bottom: 20px;
}

#about p {
  font-size: 1.2rem;
  color: #555;
}

/* links Section */
#links {
  padding: 50px 0;
  text-align: center;
  background-color: #fff;
}

#links .container {
  max-width: 1600px;
  margin: 0 auto;
}

#links h2 {
  font-size: 3rem;
  margin-bottom: 20px;
}

#links p {
  font-size: 1.2rem;
  color: #555;
}

.links-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
  margin-top: 40px;
  padding: 0 20px;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.link {
  background-color: #f4f4f4;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.1s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.link:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  border-color: rgba(0, 0, 0, 0.1);
}

.link h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: #2C3E50;
}

.link p {
  color: #555;
  margin-bottom: 20px;
  flex-grow: 1;
}

.link-button {
  display: inline-block;
  text-decoration: none;
  color: white;
  padding: 12px 30px;
  border-radius: 25px;
  width: auto;
  background: linear-gradient(135deg, #1a233b 0%, #2c3e50 100%);
  transition: all 0.3s ease;
  font-weight: 500;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(26, 35, 59, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.link-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.link-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26, 35, 59, 0.3);
  background: linear-gradient(135deg, #2c3e50 0%, #1a233b 100%);
  border-color: rgba(255, 255, 255, 0.2);
}

.link-button:hover::before {
  opacity: 1;
}

.link-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(26, 35, 59, 0.2);
}

footer {
  background-color: #2C3E50;
  color: white;
  text-align: center;
  padding: 20px 0;
  margin-top: auto;
}

footer a {
  color: #007BFF;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

@media screen and (max-width: 768px) {
  header {
    padding: 10px 0;
    background-color: rgba(44, 62, 80, 0.98);
  }

  header .logo img {
    padding-left: 20px;
  }

  nav {
    padding-right: 20px;
  }

  nav ul {
    gap: 20px;
  }

  nav ul li a {
    font-size: 1rem;
  }

  .hero {
    height: 30vh;
  }

  .hero-content img {
    max-width: 80%;
    height: auto;
  }

  #about h2, #links h2 {
    font-size: 2rem;
  }

  .links-list {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 0 15px;
  }

  .link {
    padding: 20px;
  }

  .link h3 {
    font-size: 1.5rem;
  }

  .link-button {
    padding: 10px 25px;
    font-size: 0.95rem;
  }
}

@media screen and (max-width: 480px) {
  .hero {
    height: 25vh;
  }

  .hero-content img {
    max-width: 90%;
  }

  #about h2, #links h2 {
    font-size: 1.8rem;
  }

  .link h3 {
    font-size: 1.5rem;
  }

  .link p {
    font-size: 1rem;
  }
}
