/* Overall styling for page */

:root {
  --bg: #1A1525;
  --surface: #251E35;
  --text: #EDE8F5;
  --text-muted: #9B91B8;
  --accent-coral: #E8735A;
  --accent-purple: #B49FD4;
  --border: #352C48;
  --font-display: 'Fraunces', serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
}

html {
  background-color: var(--bg);
  scroll-behavior: smooth;
}

/* Shared heading styles */
h1, h2 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--text);
}

/* Shared card heading styles */
.skills-card h3,
.project-info h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  color: var(--accent-coral);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

/* Header and nav styling */

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 1rem 2rem;
}

nav {
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav .logo {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--accent-coral);
  text-decoration: none;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

nav ul a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}

nav ul a:hover {
  color: var(--accent-coral);
  text-decoration: underline;
  font-weight: bold;
}

/* Hero styling */
#about {
  max-width: 900px;
  margin: 0 auto;
  padding: 6rem 2rem 4rem;
}

.tagline {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-purple);
  margin-bottom: 1.5rem;
}

h1 {
  font-size: 3.5rem;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

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

.bio {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 2.5rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

.btn-primary {
  background: var(--accent-coral);
  color: white;
  padding: 0.75rem 1.75rem;
  border-radius: 0.4rem;
  text-decoration: none;
  font-size: 0.95rem;
  transition: opacity 0.2s;
}

.btn-primary:hover {
  opacity: 0.85;
  color: white;
}

.btn-secondary {
  border: 2px solid var(--accent-purple);
  color: var(--accent-purple);
  padding: 0.75rem 1.75rem;
  border-radius: 0.4rem;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: var(--accent-purple);
  color: white;
}

/* Skills section */
#skills {
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 2rem;
  border-top: 1px solid var(--border);
}

#skills h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.skills-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.75rem;
}

.skills-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}

.skills-card ul li {
  color: var(--text-muted);
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.skills-card ul li:last-child {
  border-bottom: none;
}

/* Projects section */
#projects {
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 2rem;
  border-top: 1px solid var(--border);
}

#projects h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.project-card.coming-soon {
  opacity: 0.6;
}

.project-image img {
  width: 100%;
  height: 350px;
  object-fit: contain;
  display: block;
}

.project-image.placeholder {
  width: 100%;
  height: 350px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-image.placeholder p {
  color: var(--text-muted);
  font-style: italic;
  font-family: var(--font-display);
  font-size: 1.1rem;
  width: auto;
  margin: 0;
  padding: 0;
}

.project-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.project-info p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  width: 100%;
  margin: 0;
  padding: 0;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.project-tags span {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--accent-purple);
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 2rem;
  font-family: var(--font-body);
}

/* Contact section */
#contact {
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 2rem;
  border-top: 1px solid var(--border);
}

#contact h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.contact-intro {
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 480px;
}

#contact form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 560px;
}

#contact input,
#contact textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.4rem;
  padding: 0.75rem 1rem;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  width: 100%;
}

#contact input:focus,
#contact textarea:focus {
  outline: none;
  border-color: var(--accent-purple);
}

#contact button {
  background: var(--accent-coral);
  color: white;
  border: none;
  padding: 0.75rem 1.75rem;
  border-radius: 0.4rem;
  font-size: 0.95rem;
  cursor: pointer;
  font-family: var(--font-body);
  width: fit-content;
  transition: opacity 0.2s;
}

#contact button:hover {
  opacity: 0.85;
}

.error-msg {
  color: var(--accent-coral);
  font-size: 0.8rem;
  min-height: 0;
}

.contact-links {
  margin-top: 2rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.contact-links a {
  color: var(--accent-purple);
  text-decoration: none;
  margin: 0 0.25rem;
}

.contact-links a:hover {
  color: var(--accent-coral);
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

footer em {
  color: var(--accent-coral);
  font-family: var(--font-display);
  font-style: italic;
}

/* =========================
   MEDIA QUERIES
   ========================= */

/* Tablet */
@media screen and (max-width: 768px) {
  nav ul {
    gap: 1rem;
  }

  .project-image img {
    height: auto;
    max-height: 150px;
    object-fit: cover;
  }
}

/* Max 425px */
@media screen and (max-width: 425px) {
  .project-image img {
    max-height: 250px;
  }
.project-image.placeholder {
  height: 150px;
}

}
/* Mobile */
@media screen and (max-width: 425px) {
  .skills-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-image img {
  height: auto;
  max-height: 200px;
  object-fit: cover;
  }

  nav {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  nav ul {
    gap: 1rem;
  }

  #contact form {
    width: 100%;
    max-width: 100%;
  }

  #contact input,
  #contact textarea {
    text-align: left;
  }

}