/* Homepage Styles
   Styles specific to the homepage (index.html)
*/

/* Homepage allows vertical scrolling */
html, body {
  overflow-y: auto;
  overflow-x: hidden;
}

/* ===== STATUS LINE ===== */

.status-line {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-dim);
  opacity: 0;
  animation: fadeUp 0.8s ease-out 0.2s forwards;
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: pulse 1.8s ease-in-out infinite;
}

/* ===== HEADINGS ===== */

h1 {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(64px, 14vw, 220px);
  line-height: 0.88;
  letter-spacing: -0.04em;
  color: var(--ink);
  opacity: 0;
  animation: fadeUp 1s ease-out 0.4s forwards;
}

h1 em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
}

.tagline-container {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  width: 100%;
  max-width: 1000px;
  opacity: 0;
  animation: fadeUp 1s ease-out 0.6s forwards;
}

.tagline {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(18px, 2.2vw, 26px);
  line-height: 1.4;
  color: var(--ink-dim);
  max-width: 520px;
  flex: 0 1 auto;
}

.tagline strong {
  font-style: normal;
  font-weight: 400;
  color: var(--ink);
}

/* ===== CONTACT CTA ===== */

.contact-cta {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  background: rgba(216, 255, 90, 0.04);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all 0.4s cubic-bezier(0.7, 0, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.contact-btn::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s cubic-bezier(0.7, 0, 0.3, 1);
}

.contact-btn:hover {
  background: rgba(216, 255, 90, 0.08);
  border-color: var(--accent);
  padding-left: 32px;
  color: var(--accent);
}

.contact-btn:hover::before {
  transform: scaleY(1);
}

.contact-btn .arrow {
  font-size: 16px;
  transition: transform 0.3s ease;
}

.contact-btn:hover .arrow {
  transform: translateX(4px);
}

/* ===== SERVICES SECTION ===== */

.services-section {
  width: 100%;
  max-width: 1000px;
  margin-top: 48px;
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 1s ease-out 0.85s forwards;
}

.services-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.services-label {
  font-size: 10px;
  font-weight: normal;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-dim);
  white-space: nowrap;
}

.services-divider {
  height: 1px;
  flex: 1;
  background: var(--line-strong);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  display: block;
  padding: 32px 24px;
  background: rgba(235, 231, 221, 0.02);
  border: 1px solid var(--line-strong);
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.7, 0, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.7, 0, 0.3, 1);
}

.service-card:hover {
  background: rgba(235, 231, 221, 0.04);
  border-color: var(--accent);
  transform: translateY(-4px);
}

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

.service-number {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--ink-faint);
  margin-bottom: 16px;
}

.service-title {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 12px;
  transition: color 0.3s ease;
}

.service-card:hover .service-title {
  color: var(--accent);
}

.service-description {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-dim);
}

/* ===== KUBERNETES ECOSYSTEM SECTION ===== */

.ecosystem-section {
  width: 100%;
  max-width: 1000px;
  margin-top: 48px;
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 1s ease-out 0.9s forwards;
}

.ecosystem-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.ecosystem-label {
  font-size: 10px;
  font-weight: normal;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-dim);
  white-space: nowrap;
}

.ecosystem-divider {
  height: 1px;
  flex: 1;
  background: var(--line-strong);
}

.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.ecosystem-card {
  display: block;
  padding: 32px 24px;
  background: rgba(111, 214, 214, 0.02);
  border: 1px solid var(--line-strong);
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.7, 0, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.ecosystem-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: #6FD6D6;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.7, 0, 0.3, 1);
}

.ecosystem-card:hover {
  background: rgba(111, 214, 214, 0.04);
  border-color: #6FD6D6;
  transform: translateY(-4px);
}

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

/* Card header with logo */
.ecosystem-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.ecosystem-logo {
  width: 32px;
  height: 32px;
  color: #6FD6D6;
  flex-shrink: 0;
}

.ecosystem-logo--farena {
  width: 24px;
  height: auto;
}

.ecosystem-badge {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6FD6D6;
  background: rgba(111, 214, 214, 0.12);
  padding: 3px 8px;
  border-radius: 2px;
  margin-left: 10px;
  vertical-align: middle;
  font-style: normal;
}

.ecosystem-title {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 1.3;
  color: var(--ink);
  transition: color 0.3s ease;
}

.ecosystem-card:hover .ecosystem-title {
  color: #6FD6D6;
}

.ecosystem-description {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-dim);
  margin-bottom: 16px;
}

.ecosystem-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-dim);
  transition: color 0.3s ease;
}

.ecosystem-card:hover .ecosystem-link {
  color: #6FD6D6;
}

.ecosystem-link .arrow {
  font-size: 14px;
  transition: transform 0.3s ease;
}

.ecosystem-card:hover .ecosystem-link .arrow {
  transform: translate(2px, -2px);
}

/* Farena card specific styling */
.ecosystem-card--farena {
  background: rgba(15, 28, 46, 0.15);
}

.ecosystem-card--farena:hover {
  background: rgba(15, 28, 46, 0.25);
}

/* ===== FEATURED BLOG SECTION ===== */

.featured-blog-section {
  width: 100%;
  max-width: 1000px;
  margin-top: 48px;
  opacity: 0;
  animation: fadeUp 1s ease-out 0.7s forwards;
}

.featured-blog-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.featured-blog-label {
  font-size: 10px;
  font-weight: normal;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-dim);
  white-space: nowrap;
}

.featured-blog-divider {
  height: 1px;
  flex: 1;
  background: var(--line-strong);
}

.featured-blog-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
}

/* Featured Article Card (Left, 60%) */

.featured-article-card {
  display: block;
  padding: 40px 32px;
  background: rgba(235, 231, 221, 0.02);
  border: 1px solid var(--line-strong);
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.7, 0, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.featured-article-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.7, 0, 0.3, 1);
}

.featured-article-card:hover {
  background: rgba(235, 231, 221, 0.04);
  border-color: var(--accent);
  transform: translateY(-4px);
}

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

.featured-article-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.featured-article-tag {
  color: var(--accent);
  background: rgba(216, 255, 90, 0.08);
  padding: 3px 10px;
  border-radius: 2px;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
}

.featured-article-date {
  color: var(--ink-faint);
  font-size: 10px;
  letter-spacing: 0.08em;
  font-family: 'JetBrains Mono', monospace;
}

.featured-article-title {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: 28px;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 16px;
  transition: color 0.3s ease;
}

.featured-article-card:hover .featured-article-title {
  color: var(--accent);
}

.featured-article-excerpt {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-dim);
  margin-bottom: 20px;
}

.featured-article-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-dim);
  transition: color 0.3s ease;
}

.featured-article-card:hover .featured-article-link {
  color: var(--accent);
}

.featured-article-link .arrow {
  font-size: 14px;
  transition: transform 0.3s ease;
}

.featured-article-card:hover .featured-article-link .arrow {
  transform: translateX(4px);
}

/* Recent Articles Sidebar (Right, 40%) */

.recent-articles {
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  background: rgba(235, 231, 221, 0.02);
  border: 1px solid var(--line);
}

.recent-articles-title {
  font-size: 10px;
  font-weight: normal;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 20px;
}

.recent-article-item {
  display: block;
  padding: 16px 0 16px 16px;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: all 0.3s cubic-bezier(0.7, 0, 0.3, 1);
  position: relative;
}

.recent-article-item:last-of-type {
  border-bottom: none;
}

.recent-article-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.3s cubic-bezier(0.7, 0, 0.3, 1);
}

.recent-article-item:hover {
  padding-left: 20px;
}

.recent-article-item:hover::before {
  transform: scaleY(1);
}

.recent-article-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}

.recent-article-tag {
  color: var(--accent);
  background: rgba(216, 255, 90, 0.08);
  padding: 2px 8px;
  border-radius: 2px;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
}

.recent-article-date {
  color: var(--ink-faint);
  font-size: 9px;
  letter-spacing: 0.08em;
  font-family: 'JetBrains Mono', monospace;
}

.recent-article-title {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.4;
  color: var(--ink);
  transition: color 0.3s ease;
}

.recent-article-item:hover .recent-article-title {
  color: var(--accent);
}

.view-all-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-dim);
  text-decoration: none;
  transition: color 0.3s ease;
}

.view-all-link:hover {
  color: var(--accent);
}

.view-all-link .arrow {
  font-size: 13px;
  transition: transform 0.3s ease;
}

.view-all-link:hover .arrow {
  transform: translateX(4px);
}

/* ===== BLOG PREVIEW SECTION ===== */

.blog-section {
  width: 100%;
  max-width: 720px;
  opacity: 0;
  animation: fadeUp 1s ease-out 0.9s forwards;
  margin-top: 48px;
}

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

.blog-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  font-weight: normal;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-dim);
  white-space: nowrap;
}

.blog-icon {
  width: 16px;
  height: 16px;
  stroke: var(--ink-dim);
  stroke-width: 1.5;
  fill: none;
}

.blog-divider {
  height: 1px;
  flex: 1;
  background: var(--line-strong);
}

.blog-list {
  display: grid;
  gap: 12px;
}

.blog-item {
  display: block;
  padding: 16px 20px;
  background: rgba(235, 231, 221, 0.02);
  border: 1px solid var(--line);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.7, 0, 0.3, 1);
  position: relative;
}

.blog-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.3s cubic-bezier(0.7, 0, 0.3, 1);
}

.blog-item:hover {
  background: rgba(235, 231, 221, 0.04);
  border-color: var(--line-strong);
  padding-left: 24px;
}

.blog-item:hover::before {
  transform: scaleY(1);
}

.blog-item-header {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 8px;
}

.blog-tag {
  color: var(--accent);
  background: rgba(216, 255, 90, 0.08);
  padding: 2px 8px;
  border-radius: 2px;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
}

.blog-date {
  color: var(--ink-faint);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.blog-item-title {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.4;
  color: var(--ink);
  transition: color 0.3s ease;
}

.blog-item:hover .blog-item-title {
  color: var(--accent);
}

.blog-item-arrow {
  display: inline-block;
  margin-left: 6px;
  color: var(--ink-dim);
  font-size: 14px;
  transition: transform 0.3s ease, color 0.3s ease;
}

.blog-item:hover .blog-item-arrow {
  transform: translateX(4px);
  color: var(--accent);
}

/* ===== RESPONSIVE ===== */

@media (max-width: 960px) {
  .tagline-container {
    flex-direction: column;
    gap: 24px;
  }
}

@media (max-width: 720px) {
  html, body {
    overflow-y: auto;
    overflow-x: hidden;
  }

  .tagline-container {
    flex-direction: column;
    gap: 20px;
  }

  .contact-btn {
    font-size: 12px;
    padding: 14px 24px;
  }

  .contact-btn:hover {
    padding-left: 28px;
  }

  .featured-blog-section {
    margin-top: 32px;
  }

  .featured-blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .featured-article-card {
    padding: 28px 24px;
  }

  .featured-article-title {
    font-size: 22px;
  }

  .featured-article-excerpt {
    font-size: 14px;
  }

  .recent-articles {
    padding: 24px 20px;
  }

  .services-section {
    margin-top: 32px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .service-card {
    padding: 24px 20px;
  }

  .ecosystem-section {
    margin-top: 32px;
  }

  .ecosystem-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .ecosystem-card {
    padding: 24px 20px;
  }

  .blog-item {
    padding: 14px 16px;
  }

  .blog-item:hover {
    padding-left: 20px;
  }

  .blog-item-title {
    font-size: 15px;
  }
}
