@import url(./Pallet.css);

html,
body {
  transition: background-image 2s ease-in-out, background 0.4s, color 0.4s;
}

body {
  background: var(--bg);
  color: var(--text);
  background-size: cover;
  background-position-x: center;
  background-repeat: no-repeat;
  font-family: 'Google Sans', Roboto, sans-serif;
}


.main-inf {
  width: 100%;
  max-width: 1300px;
}

/* ===== Section Cards ===== */
.inf-div {
  background: var(--transulent-bg);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  /* Large Pixel Card */
  margin: 10px 5px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-o);
  transition: transform 0.3s, box-shadow 0.3s, background 0.4s;
}

.inf-div:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
  background: var(--bg);
}

.inf-div h2 {
  text-align: center;
  font-size: 1.7rem;
  color: var(--accent);
  margin-bottom: 1.2rem;
  font-weight: 600;
}

/* ===== Inner Section ===== */
.inf-div-bg {
  background: transparent;
  margin: auto;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  gap: 1.6rem;
}

.inf-div-profile-section {
  width: max-content;
  margin: auto;
  gap: 10px;
  display: flex;
  flex-direction: row;
  align-items: center;
}

/* ===== Profile ===== */
.inf-div-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  animation: ani1 6s ease-in-out infinite;
}

@keyframes ani1 {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-15px);
  }

  100% {
    transform: translateY(0);
  }
}

.Profile {
  width: 180px;
  height: 180px;
  border-radius: var(--radius-lg);
  /* Rounded Square Profile */
  object-fit: cover;
  cursor: grab;
  border: 2px solid var(--accent);
  box-shadow: var(--shadow-o);
}

.Profile-Name {
  height: 38px;
  object-fit: contain;
  filter: var(--img-invert);
}

.Profile,
.Profile-Name {
  animation: ani2 2s ease-in-out;
}

@keyframes ani2 {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

.Profile:hover {
  animation: ani3 2s linear;
}

@keyframes ani3 {
  0% {
    rotate: 0deg;
    scale: 1;
  }

  100% {
    rotate: 360deg;
    scale: 0;
  }
}

.Profile-Name:hover {
  height: 38px;
  width: 250px;
  content: url(../assets/founderofMRC&D.png);
  animation: ani4 1s linear;
  filter: var(--img-invert);
}

@keyframes ani4 {
  0% {
    transform: scale(2);
    opacity: .5;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.social {
  display: flex;
  flex-direction: row;
}

.social-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 3.7rem;
  font-size: 0.75rem;
  color: transparent;
  font-weight: 500;
  background: transparent;
  border-radius: 10px;
  text-decoration: none;
  transition: 0.3s;
}

.social-link:hover {
  background: var(--accent);
  color: var(--accent-h);
  transform: scale(1.05);
}

.social .social-link img {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
}



/* ===== Description ===== */
.inf-desc {
  border: 1px solid var(--border);
  background: var(--bg);
  text-align: center;
  width: 90%;
  padding: 15px;
  border-radius: var(--radius-md);
  text-wrap: wrap;
  margin: auto auto 10px auto;
}

.inf-desc p {
  font-size: 1.2rem;
  line-height: 1.7;
}

.inf-desc-ul-div {
  display: flex;
  border-left: 4px solid var(--accent);
  width: fit-content;
  padding: 10px;
  padding-left: 15px;
  margin: auto auto 10px auto;
  background: var(--gray-light);
  border-top-right-radius: var(--radius-md);
  border-bottom-right-radius: var(--radius-md);
}

/* ===== Images / Logos ===== */
.inf-mr {
  width: -webkit-fill-available;
  max-width: 555px;
  border-radius: var(--radius-lg);
  padding: 5px;
  margin: auto;
  background: var(--transulent-bg);
  backdrop-filter: var(--panel-bkdrop);
  overflow: hidden;
  cursor: grab;
  border: 1px solid var(--border);
}

.inf-mr:active {
  cursor: grabbing;
}

.c {
  border: 2px double var(--border-c);
}

.d {
  border: 2px double var(--border-d);
}

.c-img,
.d-img {
  width: 100%;
  border-radius: var(--radius-md);
}

.c-img:hover,
.d-img:hover {
  animation: ani5 2s cubic-bezier(0, 0, 0.2, 1);
}

@keyframes ani5 {
  0% {
    opacity: .5;
    scale: 1.5;
  }

  10% {
    opacity: 1;
    scale: 1.5;
  }

  20% {
    opacity: .5;
    scale: 2;
  }

  30% {
    opacity: 1;
    scale: 1;
  }

  40% {
    opacity: .5;
    scale: .5;
  }

  50% {
    opacity: 1;
    scale: .5;
  }

  60% {
    opacity: .5;
    scale: 1.1;
  }

  70% {
    opacity: 1;
  }

  80% {
    opacity: .5;
  }

  90% {
    opacity: 0;
  }

  100% {
    opacity: .5;
    scale: 0;
  }
}

/* ===== Details & Summary (Changelog etc.) ===== */
.summary {
  background: var(--bg);
  border-radius: var(--radius-md);
  width: 90%;
  margin: 20px auto;
  border: 1px solid var(--border);
  transition: background 0.3s ease;
}

.changelog {
  margin: 0 1.2rem 1.2rem 1.2rem;
  background: var(--transulent-bg);
  border: 1px solid var(--border);
  transition: background 0.3s ease;
  border-radius: var(--radius-md);
}

.summary summary,
.changelog summary {
  font-weight: 600;
  margin: 0.5rem 0 0.5rem 1rem;
  cursor: pointer;
  font-size: 1rem;
  color: var(--text);
  padding: 5px;
}

details summary:hover {
  color: var(--accent);
}

details p,
details ul {
  font-size: 0.92rem;
  margin-top: 0.5rem;
  margin-left: 1rem;
}

details ul {
  list-style-type: disc;
}

details.changelog summary {
  font-size: 0.9rem;
  opacity: 0.9;
}

.inf-navbar-bottom {
  display: flex;
  flex-direction: row;
  justify-content: center;
  flex-wrap: wrap;
}

.inf-navbar-bottom a {
  color: var(--text);
  text-decoration: none;
  margin: 7px;
  font-size: 1.2rem;
}

footer {
  text-align: center;
  margin: auto 60px;
  color: var(--text);
  background: var(--transulent-bg);
  width: -webkit-fill-available;
  padding: 10px 40px;
  border-radius: var(--radius-md);
}

/* =========================================
   📱 RESPONSIVE DESIGN
   ========================================= */

/* Mobile Landscape & Phones */
@media (max-width: 768px) {
  .inf-div {
    padding: 1rem 5px;
  }

  .inf-div-profile-section {
    display: flex;
    flex-direction: column;
  }

  .Profile {
    width: 150px;
    height: 150px;
  }

  .inf-desc h1 {
    font-size: 1.15rem;
  }

  .inf-desc p,
  .inf-desc ul {
    font-size: 0.9rem;
  }

  .inf-desc ul {
    margin-left: 1rem;
  }
}

/* Small Mobiles */
@media (max-width: 480px) {

  html,
  body {
    font-size: 0.88rem;
  }

  .inf-div {
    padding: 5px;
  }

  .inf-div-profile-section {
    flex-direction: column;
  }

  .Profile {
    width: 110px;
    height: 110px;
  }

  .Profile-Name {
    height: 27px;
  }

  .Profile-Name:hover {
    height: 27px;
    width: 180px;
  }

  .inf-div-links {
    width: 90%;
  }


  .inf-desc h1 {
    font-size: 1rem;
  }

  .inf-desc ul {
    margin-left: -15px;
  }

  details summary {
    font-size: 0.9rem;
  }

  details ul {
    margin-left: 0.9rem;
  }
}

/* Extra-Wide Screens */
@media (min-width: 1440px) {
  .inf {
    max-width: 1400px;
    gap: 2.5rem;
  }

  .social {
    flex-direction: column;
    position: fixed;
    top: 30%;
    left: 0;
    z-index: 10;
  }

  .inf-div {
    padding: 2rem 2.5rem;
  }

  .inf-desc p {
    font-size: 1rem;
  }
}