/* Custom styles for Roberto Di Maria Portfolio */

/* Dark theme background and text colors */
body {
  background-color: #1a1a1a;
  color: #e0e0e0;
}

/* Center main content */
.page__content,
.article__content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  background-color: #1a1a1a;
}

/* Section spacing for cleaner look */
.page__content > h2,
.page__content > h3,
.article__content > h2,
.article__content > h3 {
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  color: #e0e0e0;
}

.page__content > p,
.page__content > ul,
.article__content > p,
.article__content > ul {
  margin-bottom: 1.5rem;
  color: #e0e0e0;
}

/* Fix all link colors to be white/gray instead of red */
a {
  color: #e0e0e0;
  text-decoration: none;
}

a:hover {
  color: #ffffff;
  text-decoration: underline;
  text-decoration-color: #ffffff;
}

/* Project cards grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
  padding: 0;
}

.project-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #3a3a3a;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: #2a2a2a;
  text-decoration: none;
  color: #e0e0e0;
  height: 100%;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(255, 255, 255, 0.15);
  text-decoration: none;
  color: #ffffff;
}

.project-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e0e0e0;
  font-size: 1.2rem;
  font-weight: bold;
  text-align: center;
  padding: 1rem;
}

.project-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-card-title {
  font-size: 1.3rem;
  font-weight: bold;
  margin: 0 0 0.75rem 0;
  color: #e0e0e0;
}

.project-card-description {
  font-size: 0.95rem;
  color: #b0b0b0;
  line-height: 1.5;
  margin: 0;
  flex: 1;
}

/* Contact section styling */
.contact-section {
  background: #2a2a2a;
  color: #e0e0e0;
  padding: 3rem 2rem;
  border-radius: 12px;
  margin: 3rem 0;
  text-align: center;
  border: 1px solid #3a3a3a;
}

.contact-section h2 {
  margin-top: 0;
  color: #ffffff;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.contact-section p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: #b0b0b0;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  color: #e0e0e0;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s ease, transform 0.2s ease;
}

.contact-link:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  text-decoration: none;
  color: #ffffff;
}

/* View All Projects button */
.view-all-button {
  display: inline-block;
  background: #3a3a3a;
  color: #e0e0e0;
  padding: 1rem 2rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: transform 0.2s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.view-all-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
  text-decoration: none;
  color: #ffffff;
  background: #4a4a4a;
}

/* Landing page hero adjustments */
.hero__content {
  max-width: 1200px;
  margin: 0 auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .page__content,
  .article__content {
    padding: 0 1rem;
  }
  
  .contact-section {
    padding: 2rem 1rem;
  }
  
  .contact-links {
    flex-direction: column;
    align-items: center;
  }
}

/* Additional dark theme overrides for Jekyll Text Theme */
.hero__content h1,
.hero__content h2,
.hero__content p {
  color: #e0e0e0 !important;
}

.page,
.article {
  background-color: #1a1a1a;
}

/* Navigation header dark theme */
.header {
  background-color: #1a1a1a !important;
}

.header .navigation a {
  color: #e0e0e0 !important;
}

.header .navigation a:hover {
  color: #ffffff !important;
}

/* Footer dark theme */
.footer {
  background-color: #1a1a1a !important;
  color: #e0e0e0 !important;
}

.footer a {
  color: #e0e0e0 !important;
}

.footer a:hover {
  color: #ffffff !important;
}

/* Hero actions buttons */
.hero__actions .button {
  background-color: #3a3a3a !important;
  color: #e0e0e0 !important;
  border: 1px solid #4a4a4a !important;
}

.hero__actions .button:hover {
  background-color: #4a4a4a !important;
  color: #ffffff !important;
}
