/* RESET */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* BASE */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(270deg, #222220, #152c25, #0a0909, #0c161f, #102930, #292828, #1b0e0e);
  background-size: 1400% 1400%;
  animation: gradientFlow 25s ease infinite;
  color: #fff;
  overflow-x: hidden;
  min-height: 100vh;
  line-height: 1.6;
}

@keyframes gradientFlow {
  0%, 100% { background-position: 0% 50%; }
  50%       { background-position: 100% 50%; }
}

/* HEADER */
.header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background-color: rgb(185, 188, 206);
  box-shadow: 0 4px 12px rgba(0,0,0,0.7);
  border-bottom: 3px solid gray;
  gap: 15px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: bold;
  font-size: 1.2rem;
  color: #000;
  flex-shrink: 0;
}
.logo img {
  height: 40px;
  width: 40px;
  border-radius: 50%;
  object-fit: cover;
}
.nav-links {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-grow: 1;
  justify-content: center;
  flex-wrap: wrap;
  min-width: 150px;
}
.nav-link {
  color: #000;
  font-weight: 600;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 5px;
  transition: background-color 0.3s ease, color 0.3s ease;
  white-space: nowrap;
}
.nav-link:hover,
.nav-link:focus,
.nav-link.active {
  background-color: #ff9900;
  color: #fff;
  outline: none;
}

#searchBar {
  padding: 10px;
  max-width: 300px;
  width: 100%;
  border-radius: 5px;
  border: none;
  background: #2c2c2c;
  color: #fff;
  font-size: 1rem;
  flex-shrink: 1;
  min-width: 150px;
}
.profile {
  position: relative;
  flex-shrink: 0;
}
.profile img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.3s ease;
}
.profile:hover img {
  transform: scale(1.1);
}
.tooltip {
  position: absolute;
  top: 60px;
  right: 0;
  width: 220px;
  padding: 15px;
  background: rgba(32, 30, 30, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 20px rgba(0, 255, 255, 0.15);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 10;
  pointer-events: none;
}
.profile:hover .tooltip {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.tooltip h4 {
  color: #ff9900;
  margin-bottom: 5px;
}
.tooltip p {
  font-size: 0.9rem;
  color: #ccc;
}
.tooltip .social-links a {
  color: #888;
  margin-right: 10px;
  transition: color 0.3s ease;
}
.tooltip .social-links a:hover {
  color: #00ffe1;
}

/* LAYOUT */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}
.main-layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.content-area {
  flex: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* FOOTER */
.footer {
  background: #0f0f0f;
  padding: 20px;
  text-align: center;
  color: #aaa;
  font-size: 0.9rem;
  width: 100%;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .header {
    justify-content: center;
    gap: 10px;
  }
  .nav-links {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 15px;
  }
  #searchBar {
    order: 2;
    max-width: 100%;
    width: 90%;
  }
  .profile {
    order: 4;
  }
  .logo {
    order: 1;
    flex-basis: 100%;
    justify-content: center;
    margin-bottom: 10px;
  }
}

@media (max-width: 600px) {
  .header {
    flex-direction: column;
    align-items: center;
    padding: 15px 10px;
  }
  .logo {
    font-size: 1.4rem;
  }
  .nav-links {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 12px;
  }
}

/* ABOUT SECTION */
.about-section {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  margin: 3rem auto;
  border-radius: 12px;
  max-width: 900px;
  backdrop-filter: blur(8px);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: fadeIn 1s ease;
}

.about-section h1 {
  font-size: 2.2rem;
  color: #ffde59;
  margin-bottom: 1rem;
  text-align: center;
  border-bottom: 2px solid #ff9900;
  display: inline-block;
  padding-bottom: 5px;
}

.about-section p {
  font-size: 1.1rem;
  color: #f0f0f0;
  margin-bottom: 1.2rem;
  line-height: 1.8;
  text-align: justify;
}

/* Fade-in animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
