/* ------------------------------
   Global
--------------------------------- */
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: #0f172a;
  color: #e2e8f0;
}

/* ------------------------------
   HERO
--------------------------------- */
.hero {
  position: relative;
  padding: 70px 20px 60px;
  text-align: center;
  background: linear-gradient(135deg, #0f172a, #1e3a8a);
}

/* Center Profile */
.center-profile {
  z-index: 2;
}

.photo-wrapper img {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  border: 3px solid #fff;
  object-fit: cover;
}

h1 {
  margin-top: 15px;
  font-size: 2rem;
}

.subtitle {
  opacity: 0.85;
  margin-top: 5px;
  font-size: 0.95rem;
}

/* ------------------------------
   Buttons (FIXED)
--------------------------------- */
.buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 18px;
}

.buttons a {
  padding: 10px 22px;
  border: 1px solid #3b82f6;
  border-radius: 25px;
  color: #3b82f6;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 14px;
}

.buttons a:hover {
  background: #3b82f6;
  color: white;
}

/* ------------------------------
   TOOL CARDS (SSL / NS)
--------------------------------- */
.tool-card {
  position: absolute;
  top: 40px;
  width: 260px;
  background: rgba(255, 255, 255, 0.06);
  padding: 15px;
  border-radius: 12px;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 15px rgba(0,0,0,0.2);
}

.tool-card h3 {
  margin-bottom: 10px;
  font-size: 1rem;
}

/* Left & Right positioning */
.left { left: 40px; }
.right { right: 40px; }

/* Inputs */
.tool-card input {
  width: 100%;
  padding: 7px;
  margin-bottom: 6px;
  border-radius: 6px;
  border: none;
  font-size: 13px;
}

/* Domain + Port row */
.tool-input {
  display: flex;
  gap: 6px;
}

.tool-input input:first-child {
  flex: 3;
}

.tool-input input:last-child {
  flex: 1;
  max-width: 65px;
  text-align: center;
}

/* Button */
.tool-card button {
  background: #3b82f6;
  border: none;
  padding: 7px 14px;
  color: white;
  border-radius: 20px;
  cursor: pointer;
  margin-top: 5px;
  font-size: 13px;
  transition: 0.3s;
}

.tool-card button:hover {
  background: #2563eb;
}

/* ------------------------------
   RESULT CARD (FIXED UI)
--------------------------------- */
.result-card {
  margin-top: 12px;
  padding: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-left: 3px solid #3b82f6;
  font-size: 13px;
  line-height: 1.6;
}

.result-card p {
  margin: 4px 0;
}

/* ------------------------------
   ABOUT & CONTACT
--------------------------------- */
.about,
.contact {
  background: #111827;
  margin: 40px auto;
  padding: 30px;
  max-width: 800px;
  border-radius: 12px;
  text-align: center;
}

.about h2,
.contact h2 {
  margin-bottom: 15px;
}

/* ------------------------------
   FORM
--------------------------------- */
.form-row {
  display: flex;
  gap: 10px;
}

input,
textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 6px;
  border: none;
  font-size: 14px;
}

textarea {
  height: 120px;
}

/* Submit button */
button {
  background: #3b82f6;
  border: none;
  padding: 10px 20px;
  color: white;
  border-radius: 25px;
  cursor: pointer;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ------------------------------
   FOOTER
--------------------------------- */
footer {
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
}

/* ------------------------------
   RESPONSIVE
--------------------------------- */
@media (max-width: 900px) {

  .tool-card {
    position: static;
    margin: 10px auto;
    width: 90%;
  }

  .form-row {
    flex-direction: column;
  }
}
