:root {
  --text-color1: rgb(135, 5, 5);
  --text-color2: rgb(255, 255, 255);
  --background-color: rgb(5, 8, 12);
}
:root {
  --card-bg: rgb(10, 14, 20);
  --card-text: rgb(210, 220, 235);
  --shadow: rgba(106, 128, 162, 0.4);
  --hover-shadow: rgba(150, 170, 200, 0.7);
}
/* Global */
body {
  background-color: var(--background-color);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  flex-direction: column;
  
 
}

/* Header */
.headD {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 50px;
  height: 50px;

  position: fixed;
  top: 0;
  left: 0;
  width: 95%;
  z-index: 100;

  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(10px);
}

/* Left Logo */
.headD .left a {
  font-size: 40px;
  font-weight: 600;
  color: var(--text-color1);
  text-decoration: none;
}

/* Nav links */
.headD .right a {
  color: var(--text-color2);
  margin: 0 10px;
  text-decoration: none;
  position: relative;
  padding: 5px;
  transition: color 0.3s ease;
}

/* Hover animation */
.headD .right a:hover {
  color: rgb(133, 195, 239);
}

.headD .right a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: var(--text-color1);
  transition: width 0.5s ease;
}

.headD .right a:hover::after {
  width: 100%;
}

/* Responsive */
@media (max-width: 768px) {
  .headD {
    display: block;
    padding: 10px 20px;
    height: auto;
    padding-bottom: 80px;
  }

  .headD .left {
    text-align: center;
    padding-bottom: 10px;
  }

  .headD .right {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
  }
}







/* Educ Sectioon */


.main {
  display: flex;

  justify-content: center ;
  align-items: center;
  width: 95%;
 margin-top:300px;
  padding: 20px;
  background: var(--background-color)
}

.main .Elem, .Junior, .Senior, .College  {
  background-color: var(--card-bg);
  height: 300px;
  width: 250px;
  border-radius: 16px;
  box-shadow: 0 1px 10px var(--shadow);
  color: var(--card-text);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 25px;
  text-align: center;
  transition: transform 0.5s ease, box-shadow 0.9s ease;
  margin-right: 45px;
}

/* hoverr */
.main div:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 10px var(--hover-shadow);
}


.main h3 {
  margin: 5px 0;
  font-size: 1.3rem;
  letter-spacing: 1px;
}

.main p {
  margin-top: 15px;
  font-size: 0.95rem;
  opacity: 0.8;
  line-height: 1.4;
}

/* Flex direction applied to all cards */
.Elem, .Junior, .Senior, .College {
  flex-direction: column;
}


/*Just for line*/
.inside{
  display: flex;
  justify-content: center;
  align-items: center;
  width: 95%;
  height: 20px;
}
.line{
  height: 1px;
 width: 80%;
  background-color: rgb(57, 58, 59);
  margin-bottom: 10px;
}