@tailwind base;
@tailwind components;
@tailwind utilities;

@layer base {
  html {
    font-family: 'Poppins', sans-serif;
  }
}

body {
  background: radial-gradient(circle at top, #0f172a 0%, #000 100%);
  color: #e2e8f0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column; /* Stack children vertically */
  align-items: center;   /* Center children horizontally */
  padding: 2rem;
}

.hero-gradient {
  background: linear-gradient(90deg, #7C3AED, #10B981, #FBBF24);
  -webkit-background-clip: text;
  color: transparent;
}

.link-accent {
  color: #C7B3FF;
  font-weight: 600;
  text-decoration: none;
}

.link-accent:hover {
  text-shadow: 0 0 8px rgba(199, 179, 255, 0.6);
}

.tool-container {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 2rem;
  max-width: 600px;
  width: 100%;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.tool-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #cbd5e1;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid #475569;
  background-color: #1e293b;
  color: #f8fafc;
  font-size: 1rem;
  transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.form-control:focus {
  border-color: #a78bfa;
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.5);
  outline: none;
}

/* Custom Checkbox Styling */
.form-group input[type="checkbox"] {
  /* Hide default checkbox */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 1.25rem; /* Size of custom checkbox */
  height: 1.25rem;
  border: 2px solid #475569; /* Border color */
  border-radius: 0.25rem; /* Slightly rounded corners */
  background-color: #1e293b; /* Background color */
  cursor: pointer;
  position: relative;
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.5rem;
  transition: all 0.2s ease-in-out;
}

.form-group input[type="checkbox"]:checked {
  background-color: #10B981; /* Green background when checked */
  border-color: #10B981; /* Green border when checked */
}

.form-group input[type="checkbox"]:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.5); /* Focus ring */
}

.form-group input[type="checkbox"]::before {
  content: '\f00c'; /* Font Awesome check icon */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: #fff;
  font-size: 0.75rem;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
}

.form-group input[type="checkbox"]:checked::before {
  opacity: 1;
}

.form-group label[for] {
  cursor: pointer;
  color: #cbd5e1;
  vertical-align: middle;
}

.btn {
  display: inline-block;
  width: 100%;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  background: linear-gradient(90deg, #7C3AED, #10B981);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
}

.btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.display {
  font-size: 3rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #10B981; /* A vibrant color for the display */
  font-family: 'monospace'; /* Monospace font for time display */
}

.results {
  margin-top: 2rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.results p {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  color: #e2e8f0;
}

.results p span {
  font-weight: 700;
  color: #10B981;
}

footer {
  margin-top: auto;
}

.container {
  max-width: 1200px; /* Or a suitable max-width for your design */
  margin-left: auto;
  margin-right: auto;
  padding: 0 1rem; /* Add some horizontal padding for smaller screens */
}

/* Specific styles for index.html */
.social-btn img { 
  width: 34px; 
  height: 34px; 
  transition: transform .3s ease, filter .3s ease;
  filter: grayscale(100%);
}
.social-btn:hover img { 
  transform: scale(1.2) rotate(10deg);
  filter: grayscale(0%);
}

.float-btn {
  position: fixed; right: 20px; z-index: 50;
  width: 60px; height: 60px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: transform .3s ease, box-shadow .3s ease;
  box-shadow: 0 0 25px rgba(0,0,0,0.4);
}
.float-btn:hover { transform: translateY(-4px); }

.float-call {
  bottom: 110px; background: linear-gradient(135deg, #22c55e, #065f46);
}
.float-whatsapp {
  bottom: 30px; background: linear-gradient(135deg, #25D366, #128C7E);
}

.scroll-cue {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  opacity: 0.7; animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0) translateX(-50%); }
  50% { transform: translateY(8px) translateX(-50%); }
}

.brand-track {
  display: flex;
  gap: 2rem;
  align-items: center;
  animation: scroll 40s linear infinite;
}
.brand-track:hover { animation-play-state: paused; }
.brand {
  width: 100px; 
  height: 100px; 
  background: #fff; 
  border-radius: 50%;
  display: flex; 
  align-items: center; 
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  overflow: hidden;
  transition: transform .3s ease;
}
.brand:hover {
  transform: scale(1.15);
}
.brand img { 
  width: 70%; 
  object-fit: contain;
}
@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

#hero-img {
  transition: transform .4s ease-in-out;
}
#hero-img:hover {
  transform: scale(1.1) rotateZ(5deg);
}
#hero-title {
  transition: transform .4s ease-in-out;
  display: inline-block;
}
#hero-title:hover {
  transform: skew(-10deg);
}

/* Styles for tools.html */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  transition: all .3s ease;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  position: relative;
  overflow: hidden;
  padding: 1.5rem;
  text-align: center;
  text-decoration: none;
  color: inherit;
}
.card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(124,58,237,0.5);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
.card .icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
  background: -webkit-linear-gradient(45deg, #7C3AED, #10B981);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: transform .3s ease;
}
.card:hover .icon {
  transform: scale(1.2);
}

.section {
  padding: 3rem 2rem; /* More vertical padding for sections */
  margin-bottom: 2rem; /* Space between sections */
  background: rgba(255, 255, 255, 0.03); /* Subtle background for sections */
  border-radius: 12px; /* Slightly rounded corners */
  border: 1px solid rgba(255, 255, 255, 0.08); /* Subtle border */
  max-width: 1200px; /* Limit width for readability */
  margin-left: auto;
  margin-right: auto;
}

.section h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 1.5rem;
  text-align: center; /* Center section headings */
}

.section h2 .fas {
  margin-right: 0.75rem;
  color: #10B981; /* Icon color */
}

.section p {
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.faq-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-item p strong {
  color: #f8fafc;
  font-weight: 600;
}