/*some random reccomended fix*/
*{
  box-sizing: border-box;
}

body{
  margin:0;
}

/* ------------------- TOP LOGO ------------------- */

.sitelogo {
  position: fixed;
  top: 20px;
  left: 660px; 
  z-index: 9999;
  display: block;
}

.sitelogo img {
  height: 80px;
  cursor: pointer;
  filter: drop-shadow(0 0 8px rgba(0, 170, 255, 0.9))
          drop-shadow(0 0 18px rgba(0, 140, 255, 0.7))
          drop-shadow(0 6px 18px rgba(0, 0, 0, 0.6));

  transition: transform 0.25s ease, opacity 0.25s ease, filter 0.25s ease;
}

.sitelogo img:hover {
  transform: translateY(-4px) scale(1.08);
  opacity: 0.9;
  filter: drop-shadow
}

/*---------------------------------------------------------------------------------------------MAIN------------------------*/

/* so this the font and stuff but it dont wrk on others laptops for sum reason*/
body {
  margin: 0;
  font-family: 'Franklin Gothic Heavy';
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: -50%;
  z-index: -1;
  background: linear-gradient(-45deg, #5405af, rgb(191, 191, 191), #5e90f4); /*moving backgrd source*/

  background-size: 400% 400%;
  animation: gradient 10s ease infinite;
  will-change: transform;
}

/*animation gradient*/
@keyframes gradient {
	0% {  
		background-position: 0% 50%;  
	}
	50% {
		background-position: 100% 50%;
	}
	100% {
		background-position: 0% 50%;
	}
}

/*---------------------------------------------------------------------------------------------SIDENAV------------------------*/
.sidenav {
  height: 100%;
  width: 0;
  position: fixed;
  z-index: 1;
  top: 0;
  left: 0;
  background-color: #000000;
  overflow-x: hidden;
  transition: 0.5s;
  padding-top: 60px;
  opacity: 50%;
}

.sidenav a {
  padding: 8px 8px 8px 32px;
  text-decoration: none;
  font-size: 25px;
  color: #ffffff;
  display: block;
  transition: 0.3s;
}

.sidenav a:hover {
  color:  rgb(39, 134, 224);
}

.sidenav .closebtn {
  position: absolute;
  top: 0;
  right: 25px;
  font-size: 36px;
  margin-left: 50px;
}

#main {
  transition: margin-left .5s;
  padding: 16px;
}

@media screen and (max-height: 450px) {
  .sidenav {padding-top: 15px;}
  .sidenav a {font-size: 18px;}
}

.sidenav {
  z-index: 2;
}

#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  z-index: 1;
}

.menuBtn {
  position: fixed;  
  top: 20px;
  left: 20px;
  cursor: pointer;
  z-index: 9999;  
  margin-right: 55px;   

  padding: 10px;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(50px);

  transition: 
    transform 0.2s ease-out,
    background-color 0.2s ease-out;
}

.menuBtn.scrolled {
  background: rgba(0,0,0,0.5);
}

.menuBtn:hover {
  background-color: rgba(0, 0, 0, 0.5);
  transform: translateY(-4px);
}

.menuBtn svg {
  transition: transform 0.2s ease-out;
}

.menuBtn:hover svg {
  transform: translateY(-2px);
}

.active{
    background: rgb(39, 134, 224);
    border-radius: 3px;
    
}

/*---------------------------------------------------------------------------------------------BACK TO TOP------------------------*/

html{
  scroll-behavior: smooth;
}

.back-to-top{
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(100px);
  background: rgba(255,255,255,0.25);
  padding: 14px 20px;
  border-radius: 14px; 
  text-decoration: none;
  transition: 0.2s ease-out;
}

.back-to-top span{
  transition: 0.2s ease-out;
}

.back-to-top:hover{
  background-color: rgba(0, 0, 0, 0.349);
}

.back-to-top:hover span{
  transform: translateY(-4px);
}

/*-------------------------------------------------------------------------------------------------the uh about us page*/

.infopage{
margin-top: 40px; 
  padding: 60px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.titleofpage{
  backdrop-filter: blur(100px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(0, 21, 255, 0.1);

  border: 1px solid rgba(255,255,255,0.25);
  padding: 14px 42px;
  border-radius: 8px;

  color: #fff;
  letter-spacing: 4px;
  font-weight: 700;

  box-shadow:
    0 10px 30px rgba(0,0,0,0.35),
    inset 0 0 0.5px rgba(255,255,255,0.6);

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.titleofpage:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 45px rgba(0,0,0,0.5);
}

.cardgrid{
    width: 100%;
    max-width: 1200px;
}

.infocard.large{
height: 420px;
margin-bottom: 50px;
color: #000000;
}

.bottomcards{
    display: flex;
  gap: 40px;
}

.infocard {
    display: flex;
  align-items: stretch;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
color: black;
  border-radius: 20px;
  overflow: hidden;
  flex: 1;

  border: 1px solid rgba(255,255,255,0.25);
  box-shadow:
0 20px 40px rgba(0,0,0,0.35),
inset 0 0 0.5px rgba(255,255,255,0.6);

transition:
transform 0.35s ease,
box-shadow 0.35s ease,
background 0.35s ease;
}

.infocard:hover {
  transform: translateY(-8px) scale(1.015);
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
  background: rgba(255,255,255,0.25);
}

/* Image area */
.cardimage {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.1) contrast(1.05);
}

.cardimage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient( to right, rgba(0,0,0,0.35),transparent);
}

/* Text area */
.cardcontent {
  width: 75%;
  padding: 40px;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0,0,0,0.35);
}

.cardcontent h2 {
  margin: 0;
  letter-spacing: 1px;
}

@media (max-width: 768px) {

  .info-card {
    flex-direction: row; /* KEEP image on the side */
    min-height: 170px;
  }

  .card-image {
    width: 90px;        /* fixed premium strip */
    min-width: 90px;
    height: auto;
  }

  .card-image img {
    object-fit: cover;
  }

  .card-content {
    padding: 20px;
    text-align: left;
  }

  /* Big ABOUT US card */
  .info-card.large {
    min-height: 200px;
  }
}

/*scroll down buttn*/

.scrolldown {
  margin-top: 20px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(12px);
  color: white;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  transition: transform 0.3s ease;
}

.scrolldown:hover {
  transform: translateY(6px);
}

@media (max-width: 768px){
   .container {
    flex-direction: column;
    padding: 0 16px;
   }

    .panel {
    min-height: auto;
    padding: 24px;
  }

  .sitelogo {
    left: 50%;
    transform: translateX(-50%);
  }

  .rightstack {
    flex-direction: column;
  }

  .newcards {
    width: 100%;
    padding: 24px;
  }


  h1 {
    font-size: 1.6rem;
  }

  p {
    font-size: 1rem;
  }

  .quick-nav {
    display: none;
  }
}

