*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #0f172a;
  color: #e2e8f0;
  min-height: 100vh;
  line-height: 1.6;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

header {
  text-align: center;
  margin-bottom: 3rem;
}

header h1 {
  font-size: 2.25rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.subtitle {
  color: #94a3b8;
  font-size: 1.1rem;
}

h2 {
  font-size: 0.875rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.projects {
  margin-bottom: 2.5rem;
}

.card-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Accordion card */
.card-accordion {
  background: #1e293b;
  border-radius: 0.75rem;
  overflow: hidden;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  width: 100%;
  background: none;
  border: none;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.15s;
}

.card-header:hover {
  background: #334155;
}

.card-icon {
  font-size: 1.75rem;
  flex-shrink: 0;
  width: 2.5rem;
  text-align: center;
}

.card-icon-img {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  object-fit: cover;
}

.card-body {
  flex: 1;
  min-width: 0;
}

.card-body h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.125rem;
}

.card-body p {
  font-size: 0.8125rem;
  color: #94a3b8;
}

.card-chevron {
  font-size: 1.25rem;
  color: #64748b;
  flex-shrink: 0;
  transition: transform 0.25s ease;
  line-height: 1;
}

.card-accordion.open .card-chevron {
  transform: rotate(90deg);
}

/* Expandable content */
.card-expand {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease;
}

.card-accordion.open .card-expand {
  max-height: 20rem;
}

.card-expand-inner {
  padding: 0 1.25rem 1.25rem 1.25rem;
  border-top: 1px solid #0f172a;
  padding-top: 1rem;
}

.card-expand-inner p {
  font-size: 0.875rem;
  color: #cbd5e1;
  line-height: 1.65;
  margin-bottom: 1rem;
}

.card-cta-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.125rem;
  background: #3b82f6;
  color: #ffffff;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s;
}

.card-cta-btn:hover {
  background: #2563eb;
}

.card-cta-btn-secondary {
  background: #334155;
  color: #e2e8f0;
  margin-left: 0.5rem;
}

.card-cta-btn-secondary:hover {
  background: #475569;
}

/* Projects two-column layout */
.projects-layout {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .projects-layout {
    flex-direction: row;
    align-items: flex-start;
  }
  .projects-layout .card-list {
    flex: 1;
    min-width: 0;
  }
  .projects-layout .carousel {
    flex: 0 0 260px;
  }
}

/* Carousel */
.carousel {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.carousel-viewport {
  width: 220px;
  overflow: hidden;
  border-radius: 1rem;
  background: #1e293b;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.carousel-track {
  display: flex;
  transition: transform 0.35s ease;
}

.carousel-slide {
  width: 220px;
  flex-shrink: 0;
  display: block;
}

.carousel-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.75rem;
}

.carousel-btn {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: none;
  background: #334155;
  color: #e2e8f0;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s;
}

.carousel-btn:hover {
  background: #475569;
}

.carousel-counter {
  font-size: 0.8125rem;
  color: #94a3b8;
  min-width: 3rem;
  text-align: center;
}

.carousel-dots {
  display: flex;
  gap: 0.375rem;
  margin-top: 0.5rem;
}

.carousel-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  border: none;
  background: #475569;
  cursor: pointer;
  padding: 0;
  transition: background-color 0.15s;
}

.carousel-dot.active {
  background: #3b82f6;
}

.links {
  margin-bottom: 3rem;
}

.link-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 640px;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  border-radius: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.15s;
}

.btn:hover {
  opacity: 0.9;
}

.btn-icon {
  width: 1.25rem;
  height: 1.25rem;
}

.btn-linkedin {
  background: #0a66c2;
  color: #ffffff;
}

.btn-coffee {
  background: #ffdd00;
  color: #1a1a1a;
}

footer {
  text-align: center;
  color: #475569;
  font-size: 0.8125rem;
}
