/* Base & Reset */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: #0f172a; /* Slate 900 */
  color: #cbd5e1; /* Slate 300 */
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

/* Typography & Headers */
.header {
  margin-bottom: 4rem;
}

.header h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  background: linear-gradient(to right, #38bdf8, #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  letter-spacing: -0.025em;
}

.subtitle {
  color: #94a3b8; /* Slate 400 */
  font-size: 1.125rem;
  font-weight: 400;
}

section {
  margin-top: 5rem;
}

h2 {
  font-size: 1.75rem;
  font-weight: 600;
  color: #f8fafc; /* Slate 50 */
  border-bottom: 1px solid #1e293b;
  padding-bottom: 0.75rem;
  margin-bottom: 2rem;
}

h3 {
  font-size: 1.25rem;
  color: #e2e8f0;
  margin-bottom: 0.75rem;
  margin-top: 0;
  font-weight: 600;
}

/* Skills Section */
.skills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.skills > div {
  background: #1e293b;
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid #334155;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.skills > div:hover {
  transform: translateY(-2px);
  border-color: #475569;
}

ul {
  padding-left: 1.2rem;
  margin: 0;
  color: #cbd5e1;
}

ul li {
  margin-bottom: 0.5rem;
}

/* Projects Section */
.projects {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2rem;
  background: #1e293b; 
  border: 1px solid #334155;
  border-radius: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  border-color: #38bdf8;
}

.project-info h3 {
  font-size: 1.35rem;
  color: #f8fafc;
}

.project-info p {
  margin-bottom: 1rem;
}

/* Overriding the inline styles in your HTML so text is visible on dark mode */
.project-info p[style] {
  color: #94a3b8 !important; 
  font-style: normal !important;
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Project Images Grid Layout */
.project-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  align-items: start;
  color: #94a3b8; /* For the raw text in the Whisper project */
  font-family: monospace; /* Gives the raw text a nice data-like feel */
  font-size: 0.9rem;
  line-height: 1.5;
}

.project-images figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-images img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid #334155;
  object-fit: cover;
}

.project-images figcaption {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: #94a3b8;
  text-align: center;
  font-family: 'Inter', sans-serif;
}

/* Buttons / Links */
.project-card > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.25rem;
  background: #0f172a;
  border-radius: 8px;
  text-decoration: none;
  color: #38bdf8;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid #334155;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  align-self: flex-start;
  margin-right: 0.5rem; /* Space between multiple buttons */
}

.project-card > a:hover {
  background: #38bdf8;
  color: #0f172a;
  border-color: #38bdf8;
}

/* Footer */
.footer {
  margin-top: 6rem;
  padding-top: 2rem;
  border-top: 1px solid #1e293b;
  text-align: center;
  color: #64748b;
  font-size: 0.9rem;
}

/* Responsive Mobile Adjustments */
@media (max-width: 640px) {
  .container {
    padding: 2.5rem 1.25rem;
  }
  
  .header h1 {
    font-size: 2.25rem;
  }

  .project-card {
    padding: 1.5rem;
  }
  
  .project-images {
    grid-template-columns: 1fr;
  }
  
  .project-card > a {
    width: 100%;
    margin-right: 0;
    margin-bottom: 0.5rem;
  }
}