/*
 * Core stylesheet for the Jin Cho Music website.
 *
 * This file defines the colour palette, typography and layout for the
 * entire site. The design draws inspiration from professional college
 * consulting websites, focusing on clarity and ease of navigation. It
 * makes heavy use of flexbox for layout and includes responsiveness so
 * that the site looks great on both desktop and mobile devices.
 */

/* Colour palette */
:root {
  --color-primary: #0f172a;      /* deep navy blue used for backgrounds */
  --color-secondary: #fbbf24;    /* warm golden accent for buttons */
  --color-light: #f8fafc;        /* very light shade for backgrounds */
  --color-text: #1f2937;         /* dark grey for body copy */
  --color-text-light: #e5e7eb;   /* light grey for contrast on dark backgrounds */
}

/* Global resets */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--color-light);
  color: var(--color-text);
  line-height: 1.6;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

header {
  background-color: var(--color-primary);
  color: var(--color-text-light);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

nav .logo a {
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--color-secondary);
}

nav .nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

nav .nav-links li a {
  color: var(--color-light);
  font-weight: 500;
  transition: color 0.3s ease;
}

nav .nav-links li a:hover {
  color: var(--color-secondary);
}

/* Hero section */
.hero {
  background-image: url('https://images.pexels.com/photos/1808343/pexels-photo-1808343.jpeg?auto=compress&cs=tinysrgb&w=1600');
  background-size: cover;
  background-position: center;
  min-height: 70vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-light);
}

.hero::before {
  /* Overlay to improve text contrast */
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* A slightly lighter overlay allows the guitar image beneath to remain visible
     while still providing sufficient contrast for the hero text. */
  background: rgba(15, 23, 42, 0.4);
  z-index: 0;
}

.hero-overlay {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 2rem;
}

.hero-overlay h1 {
  font-size: 2.75rem;
  margin-bottom: 1rem;
  font-weight: 600;
  line-height: 1.2;
}

.hero-overlay p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: var(--color-text-light);
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--color-secondary);
  color: var(--color-primary);
  border-radius: 0.375rem;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.1s ease;
}

.btn:hover {
  background-color: #f1c40f;
  transform: translateY(-2px);
}

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

/* Sections */
section {
  padding: 4rem 0;
}

section h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  font-weight: 600;
  color: var(--color-primary);
}

/* Services summary on home page */
.services-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.service-card {
  background-color: var(--color-light);
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  padding: 2rem;
  text-align: center;
  flex: 1 1 280px;
  max-width: 360px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.service-card i {
  font-size: 2.5rem;
  color: var(--color-secondary);
  margin-bottom: 1rem;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.service-card p {
  font-size: 1rem;
  color: var(--color-text);
}

/* Process timeline */
.timeline {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  margin-top: 2rem;
}

.timeline-step {
  position: relative;
  flex: 1 1 280px;
  padding: 2rem;
  margin: 1rem;
  background-color: var(--color-light);
  border-radius: 0.5rem;
  border-left: 4px solid var(--color-secondary);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.timeline-step h4 {
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
  color: var(--color-primary);
  font-weight: 600;
}

.timeline-step p {
  font-size: 1rem;
}

/* Testimonials */
.testimonials {
  background-color: var(--color-primary);
  color: var(--color-light);
  padding: 4rem 1rem;
}

.testimonial-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  padding: 2rem;
  margin: 1rem;
  flex: 1 1 300px;
  max-width: 400px;
  backdrop-filter: blur(4px);
}

.testimonial-card p {
  font-style: italic;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.testimonial-card h5 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-secondary);
}

/* About page */
.about-section {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
}

.about-content {
  flex: 1 1 400px;
}

.about-image {
  flex: 1 1 300px;
  text-align: center;
}

.about-image img {
  max-width: 100%;
  border-radius: 0.5rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Contact form */
.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.contact-info {
  flex: 1 1 300px;
}

.contact-form {
  flex: 1 1 400px;
  background-color: var(--color-light);
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.contact-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.375rem;
  font-size: 1rem;
  font-family: inherit;
}

.contact-form button {
  padding: 0.75rem 1.5rem;
  background-color: var(--color-secondary);
  color: var(--color-primary);
  border: none;
  border-radius: 0.375rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background-color: #f1c40f;
}

/* Footer */
footer {
  background-color: var(--color-primary);
  color: var(--color-light);
  text-align: center;
  padding: 1.5rem 1rem;
  margin-top: 2rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  nav .nav-links {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0;
  }
  .about-section {
    flex-direction: column;
  }
  .timeline {
    flex-direction: column;
  }
  .services-grid {
    flex-direction: column;
    align-items: center;
  }
  .contact-container {
    flex-direction: column;
  }
  .hero-overlay h1 {
    font-size: 2rem;
  }
  .hero-overlay p {
    font-size: 1.1rem;
  }
}