/* ========== Global Styles ========== */
body {
  font-family: "Poppins", "Segoe UI", sans-serif;
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, #f8fafc, #e2e8f0);
  color: #1e293b;
  overflow-x: hidden;
  min-height: 100vh;
  transition: background 0.3s ease-in-out;
}

/* Smooth Scroll */
html {
  scroll-behavior: smooth;
}

/* Centering Utility */
main, header, section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ========== Hero Section ========== */
.hero-section {
  background: linear-gradient(135deg, #ff8c00, #ffb84d);
  color: white;
  text-align: center;
  padding: 80px 20px;
  border-bottom: 4px solid rgba(255,255,255,0.3);
  box-shadow: 0 4px 30px rgba(0,0,0,0.1);
}

.hero-content h1 {
  font-size: 2.6rem;
  margin-bottom: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.hero-content .subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 700px;
}

/* ========== Tool Section ========== */
.tool-section {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 20px;
}

.tool-card {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  padding: 40px 30px;
  max-width: 500px;
  width: 100%;
  text-align: center;
  animation: fadeIn 1s ease-out;
}

.tool-header h2 {
  font-size: 1.8rem;
  margin-bottom: 8px;
  color: #0f172a;
}

.tool-header p {
  color: #475569;
  margin-bottom: 30px;
}

/* ========== Color Picker Area ========== */
.color-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
}

.color-input {
  width: 120px;
  height: 120px;
  border: none;
  border-radius: 15px;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0,0,0,0.15);
  transition: transform 0.2s ease;
}

.color-input:hover {
  transform: scale(1.05);
}

.color-code {
  font-size: 1.2rem;
  font-weight: 600;
  text-align: center;
  border: 2px solid #cbd5e1;
  padding: 10px 15px;
  border-radius: 10px;
  width: 180px;
  background: #f1f5f9;
  color: #0f172a;
}

/* ========== Buttons ========== */
.btn {
  display: inline-block;
  font-size: 1rem;
  padding: 10px 20px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}

.btn-copy {
  background: linear-gradient(135deg, #ff8c00, #ffb84d);
  color: white;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(255,140,0,0.4);
}

.btn-copy:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(255,140,0,0.6);
}

/* ========== Color Preview Box ========== */
.color-preview {
  margin-top: 30px;
  width: 120px;
  height: 120px;
  border-radius: 15px;
  border: 3px solid #e2e8f0;
  background: #ffffff;
  transition: background 0.3s ease;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.1);
}



/* ========== Animations ========== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(25px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========== Responsive ========== */
@media (max-width: 600px) {
  .hero-content h1 {
    font-size: 1.8rem;
  }
  .tool-card {
    padding: 30px 20px;
  }
  .color-input {
    width: 90px;
    height: 90px;
  }
}
#t  a {
  color: blue;
}
