/* =========================================================================
   Main Page CSS for Hub Converter
   Contains styles exclusive to the main page (index.html)
   ========================================================================= */

/* =========================================================================
   0. Global Variables
   ========================================================================= */
:root {
  --background-light: #f9f9fb;
  --primary-color: #ffd700;
  --text-color: #333;
  --text-secondary: #666;
  --card-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* =========================================================================
   1. Body and Background
   ========================================================================= */
body {
  margin: 0;
  padding: 0;
  font-family: 'Roboto', sans-serif;
  background: linear-gradient(135deg, #e6f0fa, #f0f4f8);
  min-height: 100vh;
}

header {
  text-align: center;
  padding: 50px 20px;
}

.main-title {
  font-family: 'Poppins', sans-serif;
  font-size: 3.5rem;
  font-weight: 600;
  color: #1e3c72;
  background: linear-gradient(90deg, #1e3c72, #ffd700);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: fadeIn 1.5s ease-in-out;
}

.sub-title {
  font-family: 'Roboto', sans-serif;
  font-size: 1.5rem;
  color: #555;
  margin-top: 10px;
  animation: slideUp 1s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* =========================================================================
   2. Converter Grid
   Styles for the grid of converter cards
   ========================================================================= */
.converter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* =========================================================================
   3. Converter Card
   Styles for individual converter cards
   ========================================================================= */
.converter-card {
  background: var(--background-light);
  border-radius: 15px;
  padding: 25px;
  text-align: center;
  text-decoration: none;
  color: var(--text-color);
  box-shadow: var(--card-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.converter-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.card-icon {
  font-size: 2.8em;
  color: var(--primary-color);
  margin-bottom: 15px;
  transition: transform 0.3s ease;
}

.converter-card:hover .card-icon {
  transform: rotate(15deg);
}

.card-title {
  font-size: 1.6em;
  font-weight: 600;
  margin: 10px 0;
  color: #1e3c72;
}

.card-description {
  font-size: 1.1em;
  color: var(--text-secondary);
  margin: 0;
}

/* =========================================================================
   4. Responsive Styles
   ========================================================================= */
@media (max-width: 768px) {
  .converter-grid {
    grid-template-columns: 1fr;
    padding: 20px;
  }
  .converter-card {
    padding: 20px;
  }
  .card-icon {
    font-size: 2.2em;
  }
  .card-title {
    font-size: 1.4em;
  }
  .main-title {
    font-size: 2.5rem;
  }
  .sub-title {
    font-size: 1.2rem;
  }
}
.intro {
  text-align: center;
  padding: 20px;
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1em;
  color: #555;
}