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

/* Base styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --dl-color-theme-neutral-dark: #333333;
  --dl-color-theme-neutral-light: #ffffff;
  --dl-space-space-unit: 16px;
  --dl-space-space-halfunit: 8px;
  --dl-space-space-oneandhalfunits: 24px;
  --dl-space-space-twounits: 32px;
  --dl-space-space-threeunits: 48px;
  --dl-space-space-fiveunits: 80px;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.5;
  color: var(--dl-color-theme-neutral-dark);
  background: var(--dl-color-theme-neutral-light);
  margin: 0;
}

/* Utility classes */
.section-padding {
  padding: var(--dl-space-space-threeunits) var(--dl-space-space-twounits);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--dl-space-space-unit);
}

/* Components */
.image-scroll {
  overflow: hidden;
  position: relative;
}

.image-scroll-track {
  display: flex;
  animation: scroll 40s linear infinite;
}

.image-scroll-track img {
  width: 300px;
  height: 300px;
  object-fit: cover;
  margin-right: var(--dl-space-space-unit);
}

.partners-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--dl-space-space-twounits);
  flex-wrap: wrap;
}

.partners-logos img {
  width: 200px;
  height: 200px;
  object-fit: contain;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

@media (max-width: 768px) {
  .partners-logos {
    flex-direction: column;
  }
}

/* Timeline styles */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 0;
    height: 100%;
    width: 2px;
    background: #333;
}

.timeline-item {
    position: relative;
    margin-bottom: 0.75rem;
    padding-left: 3rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: calc(1rem - 4px);
    top: 0.5rem;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #333;
    z-index: 1;
}

.timeline-item h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.timeline-item p {
    margin-bottom: 1rem;
}

.timeline-image {
    max-width: 400px;
    height: auto;
    margin-top: 0.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Achievement styles */
.achievements-list {
    max-width: 800px;
    margin: 0 auto;
}

.achievement-section {
    margin-bottom: 3rem;
}

.achievement-section:last-child {
    margin-bottom: 0;
}

/* Table styles */
table {
    border-collapse: collapse;
    width: 100%;
}

th, td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

th {
    background-color: #f8f9fa;
    font-weight: bold;
}

tr:nth-child(even) {
    background-color: #f2f2f2;
}

.overflow-x-auto {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
    .timeline-image {
        max-width: 100%;
    }
    
    .timeline::before {
        left: 0.75rem;
    }
    
    .timeline-item {
        padding-left: 2.5rem;
    }
    
    .timeline-item::before {
        left: calc(0.75rem - 4px);
    }
}
