/* CSS Variables */
:root {
  --primary-color: #233564;
  --accent-color: #eb4c36;
  --demo-color: #059669;
  --background-color: #f8fafc;
  --surface-color: #ffffff;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --border-color: #e2e8f0;
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --border-radius: 8px;
  --transition: all 0.3s ease;
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  background-color: var(--background-color);
  color: var(--text-primary);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.header {
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--surface-color);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  margin-bottom: 40px;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 28px;
}

.company-info h1 {
  font-size: 28px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 5px;
}

.company-info p {
  color: var(--text-secondary);
  font-size: 16px;
}

/* Main Content */
.main-content {
  flex: 1;
}

.tools-section {
  margin-bottom: 50px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 30px;
  color: var(--text-primary);
}

.section-title i {
  color: var(--primary-color);
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 25px;
}

.tool-card {
  background: var(--surface-color);
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 30px;
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  display: block;
}

.tool-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.tool-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  transform: scaleX(0);
  transition: var(--transition);
}

.tool-card:hover::before {
  transform: scaleX(1);
}

/* Demo card specific styling */
.tool-card.demo::before {
  background: linear-gradient(90deg, var(--demo-color), var(--primary-color));
}

.tool-card.demo:hover {
  border-color: var(--demo-color);
}

.tool-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.tool-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
}

/* Demo icon specific styling */
.tool-card.demo .tool-icon {
  background: linear-gradient(135deg, var(--demo-color), var(--primary-color));
}

.tool-info h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.tool-info .tool-url {
  font-size: 14px;
  color: var(--text-secondary);
  font-family: "Courier New", monospace;
}

.tool-description {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
}

.external-indicator {
  position: absolute;
  top: 20px;
  right: 20px;
  color: var(--accent-color);
  font-size: 14px;
}

.demo-indicator {
  position: absolute;
  top: 20px;
  right: 20px;
  color: var(--demo-color);
  font-size: 14px;
}

/* Footer */
.footer {
  background: var(--surface-color);
  padding: 25px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  margin-top: 40px;
  text-align: center;
  color: var(--text-secondary);
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 15px;
  }

  .header {
    padding: 25px 20px;
  }

  .logo-section {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .company-info h1 {
    font-size: 24px;
  }

  .tools-grid {
    grid-template-columns: 1fr;
  }

  .tool-card {
    padding: 25px;
  }

  .section-title {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .header {
    padding: 20px 15px;
  }

  .company-info h1 {
    font-size: 20px;
  }

  .company-info p {
    font-size: 14px;
  }

  .tool-card {
    padding: 20px;
  }

  .tool-header {
    gap: 15px;
  }

  .tool-icon {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }

  .tool-info h3 {
    font-size: 18px;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tool-card {
  animation: fadeIn 0.6s ease-out;
}

.tool-card:nth-child(1) {
  animation-delay: 0.1s;
}
.tool-card:nth-child(2) {
  animation-delay: 0.2s;
}
.tool-card:nth-child(3) {
  animation-delay: 0.3s;
}
.tool-card:nth-child(4) {
  animation-delay: 0.4s;
}
.tool-card:nth-child(5) {
  animation-delay: 0.5s;
}

