@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@600;700&display=swap');

section h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgb(64, 163, 255);
  margin-bottom: 25px; /* keeps spacing below section title */
}

/* Reset / basic */
* { margin:0; padding:0; box-sizing:border-box; }

body {
  font-family: Arial, sans-serif;
  color: #fff;
  line-height: 1.5;

  background-color: #000;
  background-image: url('Photos/psychbackground.jpg');
  background-size: 100% auto;     /* fill width */
  background-repeat: repeat-y;   /* repeat vertically if needed */
  background-position: center 0;
  overflow-x: hidden;
  position: relative; /* required for overlay */
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7); /* darken texture */
  pointer-events: none;
  z-index: 0;
}
body > * {
  position: relative;
  z-index: 1;
}

/* Top bar  */
.top-panel {
  position: sticky;
  top: 0;
  z-index: 1000;

  display: flex;
  align-items: center;

  padding: 20px 40px;
  background: #111;
  border-bottom: 1px solid #333;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);

  position: sticky;
}
.top-panel {
  isolation: isolate;
}

/* Left side: language links */
.top-panel .left {
  display: flex;
  gap: 15px;
}
.top-panel .left a {
  color: white;
  font-weight: bold;
  font-size: 0.9em;
  margin-right: 15px;
  text-decoration: none;
}

/* Center: site title (true center) */
.top-panel h1 {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);

  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;

  color: #fff;
  font-size: 2.5em;
  margin: 0;
}

/* Right side: section links */
.top-panel .right {
  margin-left: auto;
  display: flex;
  gap: 20px;
}
.top-panel .right a {
  color: white;
  font-weight: bold;
  margin-left: 15px;
  text-decoration: none;
}

/* Mobile adjustments */
@media (max-width: 700px) {
  .top-panel {
    flex-direction: column;
    align-items: center;
    gap: 15px;           /* bigger gap between elements */
    position: relative;   /* remove sticky on mobile */
    padding: 30px 20px;   /* extra vertical space so it doesn't overlap content */
  }

  .top-panel h1 {
    order: 1;
    font-size: 1.8em;     /* smaller title on mobile */
    position: static;      /* <-- change from absolute */
    transform: none;       /* <-- reset transform */
  }

  .top-panel .left {
    order: 2;
    justify-content: center;
    gap: 15px;
  }

  .top-panel .right {
    order: 3;
    display: none;        /* hide section links */
  }
  .top-panel .left a {
    font-size: 0.85em;   
  }
}

/* Sections */
section {
  padding: 30px 10px; /* more space for section titles */
  text-align: center;
}

.about-me {
  display: flex;
  justify-content: center;
  align-items: center; /* vertical centering */
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
}

.about-text {
  max-width: 450px;
  text-align: center;
}

.about-text p {
  margin-bottom: 5px; /* space below this paragraph only */
}

.about-me img {
  width: 240px;
  height: 360px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

@media (max-width: 700px) {
  .about-me {
    flex-direction: column-reverse; /* image on top */
    text-align: center;
  }

  .about-text {
    text-align: center;
  }
}

/* Services */
.services {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.service-box {
  background: #111;
  padding: 30px;
  width: 280px; /* bigger box */
  border-radius: 10px;
  border: 1px solid #333;
  text-align: center;
}

.service-box h3 {
  margin-bottom: 15px;
}

.service-box p {
  margin-bottom: 10px;
}

/* References */
.youtube-refs {
  display: grid;
  grid-template-columns: repeat(3, 300px); /* fixed width videos */
  justify-content: center;                  /* center the whole grid */
  column-gap: 40px;                         /* horizontal spacing */
  row-gap: 30px;                            /* vertical spacing */
}

/* Responsive: stack videos on smaller screens */
@media (max-width: 900px) {
  .youtube-refs {
    grid-template-columns: repeat(2, 300px);
  }
}

@media (max-width: 600px) {
  .youtube-refs {
    grid-template-columns: 1fr; /* full width for mobile */
  }
}

.video-block p {
  margin-bottom: 10px;
  font-style: italic;
}

.youtube-refs iframe, .spotify-embed iframe {
  border-radius: 10px;
}

.spotify-embed {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

/* Footer */
footer {
  padding: 20px;
  text-align: center;
}

footer .icon {
  width: 40px;
  height: 40px;
}

/* Button styling (optional for services/buttons) */
a.button {
  background: #1E90FF;
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
}
