/* ======================================================
   GLOBAL RESET
====================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, sans-serif;
}

/* ======================================================
   BODY / BACKGROUND
====================================================== */
body {
  min-height: 100vh;
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  padding: 20px;
}

/* ======================================================
   HEADING
====================================================== */
h1 {
  text-align: center;
  color: #ffffff;
  margin-bottom: 30px;
  letter-spacing: 1px;
}

/* ======================================================
   PANEL CONTAINER
   Desktop: Left → Right
   Mobile: Up → Down
====================================================== */
.panel-container {
  max-width: 1100px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Desktop layout */
  gap: 20px; /* Proper spacing */
}

/* ======================================================
   PANEL / CARD DESIGN
====================================================== */
.panel {
  background: #ffffff;
  padding: 20px;
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Hover effect (Desktop) */
.panel:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

/* ======================================================
   PANEL TITLE
====================================================== */
.panel h3 {
  margin-bottom: 12px;
  color: #222;
  font-size: 18px;
}

/* ======================================================
   INPUT FIELDS
====================================================== */
.panel input {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 14px;
  border-radius: 10px;
  border: 1px solid #ccc;
  font-size: 15px;
  transition: border 0.3s ease, box-shadow 0.3s ease;
}

.panel input:focus {
  outline: none;
  border-color: #2c5364;
  box-shadow: 0 0 0 3px rgba(44, 83, 100, 0.2);
}

/* ======================================================
   BUTTON WITH HOVER + SHINE ANIMATION
====================================================== */
.panel button {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, #11998e, #38ef7d);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.35s ease, transform 0.2s ease;
}

.panel button:hover {
  background: linear-gradient(135deg, #245b5f, #2f6f73);
  transform: scale(1.04);
}

/* Shine animation line */
.panel button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.45),
    transparent
  );
  transform: skewX(-20deg);
}

.panel button:hover::before {
  animation: shine 0.8s ease-in-out;
}

@keyframes shine {
  from {
    left: -100%;
  }
  to {
    left: 120%;
  }
}

/* ======================================================
   MOBILE RESPONSIVE (Only Up → Down)
====================================================== */
@media (max-width: 768px) {
  .panel-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  body {
    padding: 15px;
  }

  h1 {
    font-size: 22px;
  }

  .panel {
    padding: 16px;
  }

  .panel h3 {
    font-size: 16px;
  }
}
