/* =========================
   Global Styles
   ========================= */
body {
  font-family: "Poppins", Arial, sans-serif;
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: linear-gradient(135deg, #0f0f0f, #1a1a1a, #000000);
  overflow-x: hidden;
  color: #fff;
}

/* =========================
   Header
   ========================= */
header {
  background: url("images/main-page.JPG") no-repeat center center / cover;
  height: 30vh;
  min-height: 200px;
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  text-align: center;
}

header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(3px);
  border-radius: 10px;
}

header div {
  position: relative;
  z-index: 2;
}

header h2 {
  font-family: Georgia, serif;
  font-size: 42px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fdf471;
  text-shadow: 0 0 12px #000;
  margin: 0;
}

header h5 {
  font-family: Verdana, sans-serif;
  font-size: 18px;
  font-weight: 400;
  margin-top: 10px;
  color: #fff;
  text-shadow: 0 0 8px #000;
}

/* =========================
   Navigation Bar
   ========================= */
.horizontal-nav {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  padding: 12px 0;
  display: flex;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  overflow-x: auto;
  scrollbar-width: none;
}

.horizontal-nav::-webkit-scrollbar { display: none; }

.nav-list {
  list-style: none;
  display: flex;
  gap: 15px;
  padding: 0;
  margin: 0;
}

.nav-list li { display: flex; }

.nav-list a {
  display: flex;
  align-items: center;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 15px;
  transition: all 0.3s ease-in-out;
  color: #f0f0f0;
}

.nav-list a:hover {
  -webkit-text-fill-color: transparent;
  background: linear-gradient(60deg, #be2edd, #00a8ff, #F79F1F);
  background-clip: text;
  box-shadow: 0 0 10px rgba(50, 242, 248, 0.3);
}

.nav-list img {
  margin-right: 8px;
  width: 22px;
  height: 22px;
  filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.4));
}

.nav-list a i {
  margin-right: 8px;
  font-size: 20px;
  color: #f0f0f0;
  transition: color 0.3s ease;
}

.nav-list a:hover i {
  color: #32f2f8; /* optional gradient effect handled via text above */
}


/* About Me Section */
#about-me {
  padding: 25px;
  margin: 120px auto 40px auto;
  width: 90%;
  max-width: 1000px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  text-align: center;
  animation: fadeIn 1s ease-in-out;
}

#about-me h2 {
  font-size: 32px;
  color: #c2a2fc;
  margin-bottom: 20px;
  text-shadow: 0 0 12px rgba(194, 162, 252, 0.7);
}

#about-me p {
  font-size: 18px;
  color: #eaeaea;
  line-height: 1.8;
  text-align: center;
}

#about-me p::before {
  content: "✧ ";
  color: #c2a2fc;
  font-size: 22px;
}

#about-me p::after {
  content: " ✧";
  color: #4fd6ee;
  font-size: 22px;
}

/* About Me Image */
#about-me img {
  width: 100%;
  max-width: 300px;
  border-radius: 15px;
  margin-bottom: 15px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#about-me img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(79, 214, 238, 0.6);
}

/* Buttons */
button {
  padding: 12px 24px;
  font-size: 16px;
  background: linear-gradient(135deg, #32f2f8, #6e18f8);
  color: white;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

button:hover {
  background: linear-gradient(135deg, #20f1e0, #8e3bff);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.6);
}

/* Fade In Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  header h2 {
    font-size: 28px;
  }
  header h5 {
    font-size: 14px;
  }
  .nav-list {
    gap: 8px;
  }
  .nav-list a {
    font-size: 13px;
    padding: 8px 12px;
  }
  #about-me {
    padding: 15px;
  }
}

/* =========================
   Sleek Glassy Footer (Refined)
   ========================= */
footer {
  background: rgba(20, 20, 20, 0.164); /* glassy */
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  color: #eaeaea;
  font-weight: 500;
  text-align: center;
  padding: 8px 10px; /* smaller padding */
  position: fixed;
  bottom: -80px; /* small default hidden offset */
  left: 0;
  right: 0;
  width: 100%;
  max-height: 115px; /* prevents large expansion */
  box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: bottom 0.5s ease-in-out, background 0.4s ease;
  z-index: 9999;
  border-radius: 12px 12px 0 0; /* rounded top */
}

footer:hover {
  bottom: 0;
  background: rgba(30, 30, 30, 0.7);
}

/* Footer Container */
.footer-container {
  width: 100%;
  max-width: 550px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0 auto;
  position: relative;
}

/* Footer Text */
.footer-container p {
  font-size: 12px;
  margin: 0;
  color: #cfcfcf;
  opacity: 0.85;
}

/* Search Bar */
.footer-search {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transform: translateY(10px);
  opacity: 0;
  transition: transform 0.4s ease-in-out, opacity 0.4s ease-in-out;
}

footer:hover .footer-search {
  transform: translateY(0);
  opacity: 1;
}

#search-bar {
  width: 0;
  padding: 6px 12px;
  font-size: 13px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  outline: none;
  max-width: 220px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transition: width 0.4s ease, opacity 0.3s ease, border-color 0.3s ease;
  opacity: 0;
}

#search-bar.active,
#search-bar:focus {
  width: 220px;
  opacity: 1;
  border-color: #20f1e0;
  background: rgba(0, 0, 0, 0.3);
}

#search-button {
  width: 38px;           /* smaller size */
  height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0); /* subtle glass look */
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  backdrop-filter: blur(12px) saturate(160%);
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;       /* smaller font to fit */
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.25);

  /* Soft inner & outer glow */
  box-shadow: 
    0 3px 8px rgba(0, 0, 0, 0.2), 
    0 0 6px rgba(255, 255, 255, 0.3);
}

#search-button:hover {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.25), 
    0 0 10px rgba(255, 255, 255, 0.4);
}






/* Social Links */
.socials {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
  padding-bottom: env(safe-area-inset-bottom);
}

.social-link {
  font-size: 22px;
  color: #f5f5f5;
  opacity: 0.85;
  text-decoration: none;
  transition: transform 0.3s ease, color 0.3s ease, opacity 0.3s ease;
}

.social-link:hover {
  transform: scale(1.2);
  opacity: 1;
}

/* Social Hover Colors */
.social-link:nth-child(1):hover { color: #C13584; }  /* Instagram */
.social-link:nth-child(2):hover { color: #9146FF; }  /* Twitch */
.social-link:nth-child(3):hover { color: #FF0000; }  /* YouTube */
.social-link:nth-child(4):hover { color: #1DA1F2; }  /* Bluesky */
.social-link:nth-child(5):hover { color: #000; }     /* X/Twitter */
.social-link:nth-child(6):hover { color: #171515; }  /* GitHub */

/* Responsive Adjustments */
@media screen and (max-width: 600px) {
  footer {
    bottom: -100px;
    padding: 8px calc(10px + env(safe-area-inset-bottom));
  }
  .footer-container p { font-size: 10px; }
  #search-bar { max-width: 100%; }
  .social-link { font-size: 18px; }
}

@media screen and (max-width: 812px) and (orientation: landscape) {
  footer { bottom: -80px; padding: 10px calc(12px + env(safe-area-inset-bottom)); }
  .footer-container p { font-size: 11px; }
  .social-link { font-size: 16px; }
}

@media screen and (min-width: 1025px) {
  footer { height: auto; bottom: -90px; }
}
