/* Inherit general style from index.css, then add hub layout */

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: radial-gradient(circle at top, #0d0d2b, #000010);
  color: #f5f5f5;
  overflow-x: hidden;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 3rem;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(6px);
  z-index: 1000;
}

header h1 {
  font-size: 1.8rem;
  font-weight: 700;
  background: linear-gradient(90deg, #4fd1c5, #805ad5, #f6e05e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Desktop nav */
.nav-links {
  display: flex;
  gap: 2rem;
}

/* Mobile nav */
.nav-links a {
  color: #f5f5f5;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
}

.nav-links a:hover {
  color: #4fd1c5;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #fff;
  border-radius: 3px;
  transition: 0.3s;
}

.hamburger.toggle span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.toggle span:nth-child(2) {
  opacity: 0;
}

.hamburger.toggle span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Welcome Section */
.welcome {
  padding-top: 120px;
  text-align: center;
  max-width: 700px;
  margin: auto;
}

.welcome h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, #4fd1c5, #805ad5, #f6e05e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.welcome p {
  color: #cbd5e0;
  font-size: 1.1rem;
  margin-bottom: 3rem;
}

/* Hub Cards */
.hub {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  padding: 2rem;
  max-width: 1100px;
  margin: auto;
}

.hub-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 0 20px rgba(0,0,0,0.4);
  transition: transform 0.3s ease;
}

.hub-card:hover {
  transform: translateY(-8px);
}

.hub-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #4fd1c5;
}

.hub-card p {
  font-size: 1rem;
  color: #cbd5e0;
  margin-bottom: 1.5rem;
}

/* Standard buttons */
.btn {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  background: linear-gradient(90deg, #4fd1c5, #805ad5);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.3s ease;
}

.btn:hover {
  transform: scale(1.05);
}

/* PayPal / Hub buttons */
.hub-btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  background: linear-gradient(90deg, #4fd1c5, #805ad5);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hub-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(79, 209, 197, 0.6);
}

/* Hidden PayPal container */
.paypal-hidden {
  display: none;
  margin-top: 15px;
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem;
  background: #000010;
  color: #a0aec0;
  font-size: 0.9rem;
  margin-top: 3rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    right: 20px;
    background: rgba(0, 0, 0, 0.9);
    flex-direction: column;
    padding: 1rem;
    border-radius: 10px;
    gap: 1rem;
    z-index: 1000;
  }

  .nav-links.nav-active {
    display: flex;
  }

  .nav-links a {
    margin: 1rem 0;
  }

  .hamburger {
    display: flex;
  }
}
/* Hub Buttons inside hub cards */
.hub-card .hub-btn {
  display: inline-block;        /* fits the button to the text width */
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  background: linear-gradient(90deg, #4fd1c5, #805ad5);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-top: 1rem;             /* spacing from the text above */
  text-decoration: none;        /* removes underline if using <a> */
}

.hub-card .hub-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 20px rgba(79, 209, 197, 0.5);
}
/* Responsive adjustments for hub buttons */
@media (max-width: 768px) {
  .hub-card .hub-btn {
    width: 80%;              /* button fills most of the card width */
    max-width: 250px;        /* but not too wide */
    font-size: 1rem;         /* slightly smaller text for smaller screens */
    padding: 0.6rem 1rem;    /* adjust padding for mobile */
    margin-top: 1.5rem;      /* keep spacing consistent */
  }

  .feature-card .hub-btn {
    width: 80%;
    max-width: 250px;
    font-size: 1rem;
    padding: 0.6rem 1rem;
    margin-top: 1.5rem;
  }
}
@media (max-width: 768px) {
  .hub-card .hub-btn,
  .feature-card .hub-btn {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  /* On touch devices, simulate hover with active/focus states */
  .hub-card .hub-btn:active,
  .hub-card .hub-btn:focus,
  .feature-card .hub-btn:active,
  .feature-card .hub-btn:focus {
    transform: scale(1.03);
    box-shadow: 0 3px 15px rgba(79, 209, 197, 0.4);
  }
}
