@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap");
:root {
  --primary: #6c757d;
  --text-light: #e0e0e0;
  --bg-card: rgba(255, 255, 255, 0.05);
  --border-card: rgba(255, 255, 255, 0.2);
}
@property --gradient-size {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 40%;
}

::selection {
  background: var(--primary);
  color: #fff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}
body {
  font-family: "Poppins", sans-serif;
  background: radial-gradient(
    circle at center,
    #212529,
    #343a40 var(--gradient-size),
    #000 100%
  );
  animation: pulseGradient 8s ease-in-out infinite;
  color: var(--text-light);
  line-height: 1.7;
}
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #121212;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #212529, #343a40);
  border-radius: 4px;
}
a {
  text-decoration: none;
}
.button-container {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  background: rgba(14, 14, 18, 0.7);
  width: 90%;
  max-width: 320px;
  height: 55px;
  align-items: center;
  justify-content: space-around;
  border-radius: 27.5px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.37);
  z-index: 1000;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.button {
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: transform 0.3s, background-color 0.2s;
  cursor: pointer;
}
.button:hover {
  transform: translateY(-3px);
  background-color: rgba(255, 255, 255, 0.1);
}
.button i {
  font-size: 18px;
}
.chat-box {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 90%;
  max-width: 320px;
  max-height: 450px;
  display: flex;
  flex-direction: column;
  background-color: #1a1a1a;
  border-radius: 15px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.37);
  overflow: hidden;
  z-index: 999;
  visibility: hidden;
  opacity: 0;
  transition: all 0.4s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.chat-header {
  padding: 12px 15px;
  background-color: #111;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
  font-weight: 600;
}
.chat-button {
  background: transparent;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
}
.chat-body {
  padding: 16px;
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.chat-footer {
  display: flex;
  border-top: 1px solid #333;
  padding: 10px;
  gap: 8px;
}
.chat-footer input {
  flex: 1;
  padding: 10px 15px;
  border-radius: 20px;
  border: 1px solid #444;
  outline: none;
  background-color: #333;
  color: #fff;
}
.chat-footer button {
  padding: 10px 18px;
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: 20px;
  cursor: pointer;
}
.bot {
  background-color: #333;
  padding: 10px 15px;
  max-width: 85%;
  border-radius: 15px 15px 15px 0;
  align-self: flex-start;
}
.user {
  background-color: var(--primary);
  padding: 10px 15px;
  max-width: 85%;
  border-radius: 15px 15px 0 15px;
  align-self: flex-end;
}
.section {
  padding: clamp(60px, 10vh, 100px) 5%;
}
.section-title {
  text-align: center;
  margin-bottom: 3rem;
}
.section-title h2 {
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  margin-bottom: 1rem;
  color: #ffffff;
  border-bottom: 3px solid var(--primary);
  padding-bottom: 0.75rem;
  display: inline-block;
}
.section-title p {
  color: #b2bec3;
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  max-width: 600px;
  margin: 0 auto;
}
#hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 100vh;
  padding: 0 20px;
}
#hero img {
  width: clamp(150px, 30vw, 250px);
  height: auto;
  margin-bottom: 20px;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.5));
}
.hero-text {
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 700;
  color: #fff;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  letter-spacing: 1px;
}
.hero-text span {
  display: inline-block;
}
#dosen-grid {
  padding-top: 0;
}
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}
.dosen-card {
  min-height: 700px;
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 25px;
  transform-style: preserve-3d;
}
.dosen-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to top,
    rgba(20, 20, 20, 0.95) 20%,
    transparent 80%
  );
  z-index: 1;
}
.dosen-card-content {
  position: relative;
  z-index: 2;
  text-align: left;
}
.dosen-card h3 {
  font-size: 1.8em;
  margin-bottom: 5px;
  color: #fff;
  font-weight: 700;
}
.dosen-card .keahlian {
  font-size: 1em;
  color: #e0e0e0;
  font-weight: 400;
}
.site-footer {
  background: #0e0e12;
  padding: 40px 5%;
  color: #b2bec3;
}
.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 30px;
  border-bottom: 1px solid #333;
}
.footer-logo img {
  width: 100px;
  margin-bottom: 10px;
}
.footer-content h4 {
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 15px;
}
.footer-links ul {
  list-style: none;
}
.footer-links li {
  margin-bottom: 10px;
}
.footer-links a {
  color: #b2bec3;
  transition: color 0.3s;
}
.footer-links a:hover {
  color: var(--primary);
}
.footer-kontak p {
  margin-bottom: 10px;
}
.footer-kontak i {
  margin-right: 10px;
  color: var(--primary);
}
.footer-bottom {
  text-align: center;
  padding-top: 20px;
  font-size: 0.9rem;
}
@keyframes pulseGradient {
  0%,
  100% {
    --gradient-size: 40%;
  }
  50% {
    --gradient-size: 60%;
  }
}
