@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');

:root {
  --primary-color: #1E88E5; /* New Theme Color */
  --secondary-color: #0D47A1;
  --background-color: #ECEFF1; /* Light Background */
  --link-hover-color: #1565C0;
  --link-active-color: #64B5F6;
}

body {
  font-family: 'Montserrat', sans-serif;
  margin: 0;
  padding: 0;
  background: url('images/1.jpg') no-repeat center center fixed; /* Background image */
  background-size: cover;
  color: var(--secondary-color);
}

header {
  background: url('images/2.png') no-repeat center center; /* Header background image */
  background-size: cover;
  color: #fff;
  padding: 40px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#search-container {
  display: flex;
  align-items: center;
  background: var(--search-bg); /* Updated with gradient background */
  border-radius: 10px; /* Increased border-radius for a futuristic look */
  box-shadow: 0 4px 8px var(--button-shadow); /* Enhanced shadow for depth */
  transition: box-shadow 0.3s ease;
}

#search-container:hover {
  box-shadow: 0 6px 12px var(--button-shadow); /* Increased shadow on hover */
}

#search-input {
  padding: 15px;
  border: 2px solid var(--input-border); /* Light border for input */
  border-radius: 10px 0 0 10px; /* Increased border-radius for input */
  font-size: 16px;
  width: 350px;
  background-color: #f9f9f9; /* Subtle background color */
  transition: border-color 0.3s ease;
}

#search-input:focus {
  border-color: var(--primary-color); /* Glowing effect on focus */
  outline: none;
  box-shadow: 0 0 5px var(--primary-color);
}

#search-button {
  background-color: var(--primary-color);
  color: #fff;
  padding: 15px 25px;
  border: none;
  border-radius: 0 10px 10px 0; /* Increased border-radius for button */
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.3s; /* Added transform transition */
  box-shadow: 0 4px 6px var(--button-shadow); /* Enhanced shadow for button */
}

#search-button:hover {
  background-color: var(--link-hover-color);
  transform: scale(1.05); /* Scaling effect on hover */
}

main {
  padding: 50px;
  background-color: #FFF;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  margin: 20px auto;
  width: 80%;
}

.link-container {
  margin-bottom: 50px;
}

.link-container h2 {
  color: var(--primary-color);
  margin-top: 0;
  font-size: 24px;
  border-bottom: 2px solid var(--primary-color);
  display: inline-block;
  padding-bottom: 5px;
}

.link-list {
  list-style-type: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.link-list li {
  margin-bottom: 15px;
}

.link-list a {
  color: var(--secondary-color);
  text-decoration: none;
  background-color: #fff;
  padding: 15px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background-color 0.3s, color 0.3s;
  position: relative;
  overflow: hidden;
}

.link-list a:hover {
  background-color: var(--link-hover-color);
  color: #fff;
  transform: translateY(-3px);
}

.link-list a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--link-active-color);
  z-index: -1;
  transition: transform 0.3s ease-in-out;
  transform: scaleX(0);
  transform-origin: right;
}

.link-list a:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

#add-link-container {
  text-align: center;
  margin-top: 50px;
}

#add-link-input {
  padding: 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
  width: 60%;
  margin-right: 10px;
}

#add-link-button {
  padding: 15px 25px;
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s;
}

#add-link-button:hover {
  background-color: var(--link-hover-color);
}

footer {
  background: url('images/2.png') no-repeat center center;
  background-size: cover;
  color: #fff;
  text-align: center;
  padding: 40px 0;
  margin-top: 50px;
  box-shadow: 0 -6px 12px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 1;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4); /* Add a dark overlay to improve text readability */
  z-index: -1;
}
