/* home.css */

/* ====== Base Reset ====== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  background-color: #f0f0f0; /* A light gray background */
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  transition: background-color 0.5s ease, color 0.5s ease;
}

/* ====== Full-Page Background (Optional Gradient) ====== */
.page-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e0e0e0, #f8f8f8);
  z-index: -1;
  transition: background 0.5s ease;
}

/* ====== Centered Content Wrapper ====== */
.content-wrapper {
  max-width: 800px;
  margin: 2rem auto 3rem;
  padding: 0 1rem;
}

/* ====== Shared Glassmorphism Style ====== */
.glass-box {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  padding: 2rem 1.5rem;
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease-out forwards;
  transition: background 0.5s ease, border 0.5s ease, box-shadow 0.5s ease;
}

/* Each subsequent glass box has incremental delay */
.about-box {
  animation-delay: 0.3s;
}
.social-box {
  animation-delay: 0.5s;
}
.discord-box {
  animation-delay: 0.7s;
}


/* ==== GIF Box Styles ==== */
.gif-box {
  /* glassmorphism + fadeInUp animation */
  background: rgba(255, 255, 255, 0.25);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);

  /* tightened padding so GIF has a little breathing room */
  padding: 1rem;

  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease-out forwards;
  animation-delay: 0.2s;

  overflow: hidden;  /* clip the zoomed‐in edges */
}

/* ==== Animated GIF Styles ==== */
.animated-gif {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0.5rem auto;        /* gives top/bottom breathing room */
  border-radius: 16px;        /* softer, more pronounced rounding */
  transform: none;            /* remove the forced zoom on small screens */
  transform-origin: center;

  /* disable selection & dragging */
  user-select: none;
  pointer-events: none;
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
}


/* ====== Hero Section (Solid + Subtle Glass Accent) ====== */
.hero-box {
  text-align: center;
  margin-bottom: 2rem;
  padding: 2rem 1rem;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease-out forwards 0.1s;
  transition: background 0.5s ease, box-shadow 0.5s ease;
}
.hero-icon {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #ffffff;
  margin: 0 auto 1rem;
  display: block;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.5s ease;
  user-select: none;        /* no highlighting */
  -webkit-user-drag: none;  /* Safari/Chrome disable drag */
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
}
.hero-title {
  font-size: 2.75rem;
  font-weight: 700;
  color: #222222;
  margin-bottom: 0.5rem;
  transition: color 0.5s ease;
}
.hero-dot {
  color: #888888;
  transition: color 0.5s ease;
}
.hero-subtitle {
  font-size: 1.125rem;
  color: #555555;
  transition: color 0.5s ease;
}

/* ====== Section Titles for Glass Boxes ====== */
.section-title {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
  color: #222222;
  transition: color 0.5s ease;
}
.section-title::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 48px;
  height: 2px;
  background-color: rgba(0, 0, 0, 0.7);
}

/* ====== About Text ====== */
.about-text {
  font-size: 1rem;
  line-height: 1.8;
  color: #333333;
  transition: color 0.5s ease;
}

/* ====== Social Buttons ====== */
.social-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.social-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 160px;
  padding: 1rem 0;
  background-color: rgba(255, 255, 255, 0.8);
  color: #222222;
  text-decoration: none;
  font-size: 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, background-color 0.3s ease, color 0.5s ease, border 0.5s ease, box-shadow 0.5s ease;
}
.social-btn .handle {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: #555555;
  transition: color 0.5s ease;
}
.social-btn:hover {
  background-color: rgba(255, 255, 255, 1);
  transform: translateY(-4px);
}

/* ====== Discord Widget Container ====== */
.discord-widget-container {
  margin-top: 1rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ====== Custom Discord-Widget Card (Override iframe) ====== */
.discord-widget-card {
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 1rem;
  text-align: center;
  max-width: 100%;
  margin: 1rem auto 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  animation: fadeInUp 0.8s ease-out forwards 0.9s;
  transition: background 0.5s ease, border 0.5s ease, box-shadow 0.5s ease;
}
.widget-name {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: #222222;
  transition: color 0.5s ease;
}
.widget-online {
  font-size: 0.9rem;
  color: #444444;
  margin-bottom: 0.75rem;
  transition: color 0.5s ease;
}
.widget-members {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}
.member-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.7);
  transition: border 0.5s ease;
}
.widget-join-btn {
  display: inline-block;
  background-color: rgba(0, 0, 0, 0.8);
  color: #ffffff;
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: background-color 0.3s ease, transform 0.3s ease, color 0.5s ease;
}
.widget-join-btn:hover {
  background-color: rgba(0, 0, 0, 1);
  transform: translateY(-2px);
}

/* ====== Footer Box ====== */
.footer-box {
  text-align: center;
  margin-top: 2rem;
  padding: 1.5rem 0;
  font-size: 0.875rem;
  color: #555555;
  transition: color 0.5s ease;
}

/* ====== Fade-In-Up Animation ====== */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ====== Responsive Adjustments ====== */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.25rem;
  }
  .hero-subtitle {
    font-size: 1rem;
  }
  .section-title {
    font-size: 1.5rem;
  }
  .social-btn {
    width: 140px;
    font-size: 0.95rem;
  }
  .discord-widget-container {
    max-width: 90%;
  }
}
@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
  .hero-subtitle {
    font-size: 0.9rem;
  }
  .social-buttons {
    gap: 0.75rem;
  }
  .social-btn {
    width: 120px;
    padding: 0.75rem 0;
    font-size: 0.875rem;
  }
}

/* -------------------------------------------------------------------------------------------------- */
/* Always hide the native OS cursor so that only our custom cursor is visible */
html,
body,
*,
a,
a:hover {
  cursor: none !important;
}

/* ====== Custom SmoothCursor Styles (must come after hiding native cursor) ====== */
#smooth-cursor,
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 50px;   /* matches SVG width */
  height: 54px;  /* matches SVG height */
  transform: translate(-25px, -27px) scale(1); /* center the SVG */
  pointer-events: none;
  z-index: 9999;
  will-change: transform;
  opacity: 0;  /* becomes visible after first movement */
  transition: opacity 0.3s ease;
}

/* Hide custom cursor on touch devices */
@media (hover: none) and (pointer: coarse) {
  #smooth-cursor,
  .cursor {
    display: none;
  }
}

/* ====== Dark Mode Styles ====== */
body.dark-mode {
  background-color: #121212;
}
body.dark-mode .page-bg {
  background: linear-gradient(135deg, #1e1e1e, #2a2a2a);
}
body.dark-mode .hero-box {
  background: rgba(40, 40, 40, 0.85);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}
body.dark-mode .hero-title,
body.dark-mode .section-title,
body.dark-mode .widget-name {
  color: #ffffff;
}
body.dark-mode .hero-dot {
  color: #bbbbbb;
}
body.dark-mode .hero-subtitle,
body.dark-mode .about-text,
body.dark-mode .footer-text,
body.dark-mode .widget-online,
body.dark-mode .social-btn .handle,
body.dark-mode .social-btn,
body.dark-mode .widget-join-btn {
  color: #dddddd;
}
body.dark-mode .glass-box {
  background: rgba(30, 30, 30, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}
body.dark-mode .social-btn {
  background-color: rgba(40, 40, 40, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
body.dark-mode .social-btn:hover {
  background-color: rgba(50, 50, 50, 1);
}
body.dark-mode .discord-widget-card {
  background-color: rgba(40, 40, 40, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}
body.dark-mode .widget-join-btn {
  background-color: rgba(200, 200, 200, 0.1);
  color: #ffffff;
}
body.dark-mode .widget-join-btn:hover {
  background-color: rgba(200, 200, 200, 0.2);
}
body.dark-mode .member-avatar {
  border: 1px solid rgba(255, 255, 255, 0.3);
}
body.dark-mode .footer-text {
  color: #cccccc;
}


/* ==== Responsive tweaks for GIF ==== */
@media (max-width: 768px) {
  .gif-box {
    padding: 1rem;         /* a little tighter on tablets */
    margin-bottom: 1.5rem; /* reduce gap */
  }
  .animated-gif {
    width: 95%;            /* slight inset on tablet */
    margin: 0.75rem auto;
    border-radius: 14px;
  }
}

@media (max-width: 480px) {
  .gif-box {
    padding: 0.5rem;       /* extra-tight on phones */
    margin-bottom: 1rem;
  }
  .animated-gif {
    width: 100%;           /* full width on phone */
    margin: 0.5rem auto;
    border-radius: 12px;   /* keep corners rounded but not too large */
  }
}
