/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #fff;
  background-color: #0f0f10; /* dark dark grey */
}

/* Navigation */
nav {
  background-color: #2f2f2f; /* header grey */
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  z-index: 100;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

nav a {
  color: #ffffff;
  text-decoration: none;
  font-size: 1.1rem;
  transition: color 0.3s;
}

nav a:hover {
  color: #c8a2ff; /* pastel purple */
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

/* Hero Section (Home) */
.hero {
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 10px;
  margin-bottom: 2rem;
}

.home-hero {
  background:
    linear-gradient(rgba(15, 15, 16, 0.55), rgba(15, 15, 16, 0.55)),
    url("../media/images/nyc2.jpg") center/cover no-repeat;
  padding: 2rem 2rem;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
}

.cta-button {
  display: inline-block;
  background-color: white;
  color: #667eea;
  padding: 0.8rem 2rem;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: transform 0.3s;
}

.cta-button:hover {
  transform: scale(1.05);
}

/* Page Titles */
h1 {
  margin-bottom: 2rem;
  color: #c8a2ff; /* pastel purple */
  border-bottom: 3px solid rgba(200,162,255,0.12);
  padding-bottom: 0.5rem;
}

h2 {
  color: #c8a2ff; /* pastel purple */
  margin-bottom: 1rem;
}

/* Grid for Projects and Music */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

/* Projects page: use landscape (image) aspect ratio instead of square */
.projects-page .grid {
  grid-template-columns: repeat(auto-fill, minmax(315px, 1fr));
}

.projects-page .card-media {
  aspect-ratio: 315 / 250; /* project's requested ratio */
}

.card {
  background: transparent;
  border-radius: 8px;
  overflow: visible;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
  display: block;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

/* Media area enforces a square aspect and contains overlay */
.card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: #111;
  border-radius: 8px;
  overflow: hidden;
  display: block;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background-color: #111;
}

.card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  text-align: center;
  gap: 0.4rem;
  background: rgba(0,0,0,0.6);
  color: #fff;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.card:hover .card-overlay {
  opacity: 1;
  transform: translateY(0);
}

.overlay-title {
  font-weight: 700;
  font-size: 1.05rem;
}

.overlay-release {
  font-size: 0.9rem;
  opacity: 0.95;
}

.overlay-description {
  font-size: 0.85rem;
  opacity: 0.95;
  max-width: 90%;
}

/* no extra content area — cards are just the image (overlay on hover) */

.card-title {
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.card-description {
  color: #e6e6e6;
  font-size: 0.9rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Detail Page */
.detail-header {
  margin-bottom: -22rem;
  position: relative;
  z-index: 1;
  text-align: center;
}

.detail-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  opacity: 0.15;
  display: block;
}

/* Music page - text starts sooner */
.music-page .detail-header {
  margin-bottom: -36rem;
}

.back-link {
  display: inline-block;
  color: #667eea;
  text-decoration: none;
  margin-bottom: 1rem;
  font-weight: bold;
}

.back-link:hover {
  text-decoration: underline;
}

/* Markdown Content */
.markdown-content {
  background: rgba(18, 18, 18, 0.75); /* semi-transparent dark grey */
  padding: 2rem;
  border-radius: 8px;
  line-height: 1.8;
  position: relative;
  z-index: 2;
}

.markdown-content h2 {
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.markdown-content h3 {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.markdown-content p {
  margin-bottom: 1rem;
}

.markdown-content ul,
.markdown-content ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.markdown-content li {
  margin-bottom: 0.5rem;
}

.markdown-content code {
  background-color: #f4f4f4;
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-family: 'Courier New', monospace;
}

.markdown-content pre {
  background-color: #2c3e50;
  color: #ecf0f1;
  padding: 1rem;
  border-radius: 5px;
  overflow-x: auto;
  margin-bottom: 1rem;
}

.markdown-content pre code {
  background-color: transparent;
  padding: 0;
  color: #ecf0f1;
}

/* About Me Section */
.about-content {
  background: #121212; /* dark grey content background */
  padding: 2rem;
  border-radius: 8px;
  max-width: 800px;
}

.about-content p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

/* Featured Project Section */
.featured-project {
  margin-bottom: 1rem;
}

.featured-card {
  display: grid;
  grid-template-columns: minmax(280px, 400px) 1fr;
  gap: 2rem;
  background: #121212;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.featured-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

.featured-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 315 / 250;
}

.featured-image-placeholder {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  aspect-ratio: 315 / 250;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: bold;
  text-align: center;
  padding: 1rem;
  color: white;
}

.featured-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.featured-content h3 {
  color: #c8a2ff;
  margin: 0;
  font-size: 1.5rem;
}

.featured-date {
  color: #999;
  font-size: 0.9rem;
  margin: 0;
}

.featured-description {
  color: #e6e6e6;
  line-height: 1.6;
  margin: 0;
  flex-grow: 1;
}

.featured-link {
  color: #c8a2ff;
  font-weight: 600;
  align-self: flex-start;
}

.featured-card:hover .featured-link {
  text-decoration: underline;
}

/* Resume Section */
.resume-section {
  margin-top: 3rem;
}

.resume-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 2rem;
  align-items: start;
}

.resume-content {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.resume-block {
  background: #121212;
  padding: 2rem;
  border-radius: 8px;
}

.resume-block h2 {
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(200,162,255,0.2);
}

.resume-item {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.resume-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.resume-item h3 {
  color: #fff;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.resume-item .company {
  color: #c8a2ff;
  margin: 0.25rem 0;
  font-weight: 500;
}

.resume-item .date {
  color: #999;
  font-size: 0.9rem;
  margin: 0.25rem 0;
}

.resume-item .location {
  color: #aaa;
  font-size: 0.9rem;
  margin: 0.25rem 0 0.75rem 0;
}

.resume-item ul {
  margin: 0.75rem 0 0 1.25rem;
  padding: 0;
}

.resume-item li {
  margin-bottom: 0.5rem;
  color: #e6e6e6;
  line-height: 1.6;
}

.resume-item p {
  color: #e6e6e6;
  line-height: 1.6;
  margin: 0.5rem 0;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.skill-category h4 {
  color: #c8a2ff;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.skill-category p {
  color: #e6e6e6;
  line-height: 1.6;
  margin: 0;
}

.resume-sidebar {
  position: sticky;
  top: 100px;
}

.resume-photo {
  width: 100%;
  border-radius: 8px;
  display: block;
  object-fit: cover;
}

.sidebar-contact {
  background: #121212;
  padding: 1.5rem;
  border-radius: 8px;
  margin-top: 1.5rem;
}

.sidebar-contact h3 {
  color: #c8a2ff;
  margin: 0 0 1rem 0;
  font-size: 1.2rem;
}

.sidebar-contact p {
  color: #e6e6e6;
  line-height: 1.8;
  margin: 0;
}

.sidebar-contact a {
  color: #c8a2ff;
  text-decoration: none;
}

.sidebar-contact a:hover {
  text-decoration: underline;
}

.about-contact h2,
.about-contact h3 {
  color: #c8a2ff;
  margin: 0;
}

.about-contact p {
  color: #e6e6e6;
  line-height: 1.8;
  margin: 0;
}

.about-contact a {
  color: #c8a2ff;
  text-decoration: none;
}

.about-contact a:hover {
  text-decoration: underline;
}


.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
  gap: 2rem;
  align-items: start;
}

.about-main {
  max-width: none;
}

.about-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.about-photo {
  width: 100%;
  border-radius: 8px;
  display: block;
  object-fit: cover;
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem;
  color: #cfcfcf;
  border-top: 1px solid rgba(255,255,255,0.04);
  margin-top: 3rem;
}

/* Responsive */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    gap: 1rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .about-layout {
    grid-template-columns: 1fr;
  }

  .featured-card {
    grid-template-columns: 1fr;
  }

  .featured-content {
    padding: 1.5rem;
  }

  .resume-layout {
    grid-template-columns: 1fr;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .resume-sidebar {
    position: static;
  }
}
