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


section h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.8em;
  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: 'Inter', sans-serif;
  color: #fff;
  line-height: 1.4;

  background-color: #000;
  background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('Photos/psychh.jpg');
  background-size: 100% auto;
  background-repeat: repeat-y;
  background-position: center top;
  overflow-x: hidden;
}

/*---------------------------------------- Top bar  ----------------------------------------*/
.top-panel {
  position: absolute; /* Allows it to float over the hero image */
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;

  display: flex;
  align-items: center;

  padding: 20px 40px;
  background: transparent; /* Removed the dark background */
  border-bottom: none;     /* Removed the border */
  box-shadow: none;        /* Removed the shadow */
}

/* 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;   
  }
}


/*---------------------------------------- HERO ----------------------------------------*/
.hero {
  min-height: 100vh; /* Makes the section take the full height of the screen */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px 20px;

  background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('Photos/studiolwebsite.jpg');
  background-size: cover;    /* Zooms image to fill the space without stretching */
  background-position: center; 
  background-repeat: no-repeat;
  
  animation: fadeUp 1.2s ease-out;
}

.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #fff;
  margin: 0;
}

.hero-sub {
  font-size: 1.4rem; 
  color: rgba(255,255,255,0.7);
  margin: 0;
}

@media (max-width: 768px) {
  .hero {
    min-height: 100vh; /* Keeps it full-screen on mobile too */
    padding: 20px 10px;
  }

  .hero-title {
    font-size: 2.2rem;
    letter-spacing: 0.03em;
  }

  .hero-sub {
    font-size: 0.95rem;
  }
}


/*---------------------------------------- Sections ----------------------------------------*/
section {
  padding: 45px 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: 1000px;
  margin: 0 auto;
}

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

.about-text p {
  margin-bottom: 10px; /* 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;
  }
}

.contact-inline {
  margin-top: 30px;
  font-weight: 600;
  font-size: 1.05rem;
}

.contact-inline a {
  color: rgb(64, 163, 255); /* sama sininen kuin h2 */
  text-decoration: none;
}

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

.contact-inline span {
  margin: 0 10px;
  color: rgba(255,255,255,0.4);
}

@media (max-width: 700px) {
  .contact-inline {
    display: flex;
    flex-direction: column; /* stack items vertically */
    gap: 10px;             /* space between email and phone */
    align-items: center;    /* center the links */
  }

  .contact-inline span {
    display: none; /* hide the • separator on mobile */
  }
}


/*---------------------------------------- Services ----------------------------------------*/
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1000px;      /* RAJOITTAA LEVEYTTÄ */
  margin: 0 auto;         /* keskittää koko ryhmän */
  align-items: stretch;
}

.service-box {
  background: rgba(17, 17, 17, 0.66); /* 80% opaque dark background */
  backdrop-filter: blur(8px);         /* Blurs the background behind the box */
  -webkit-backdrop-filter: blur(8px); /* Safari support */
  display: flex;
  flex-direction: column;
  padding: 30px;
  height: 100%;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15); /* Slightly softer border */
  text-align: center;
}

.service-box h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  margin-bottom: 8px;
}

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

.service-box .price {
  margin-top: auto;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
}

.service-box .desc {
  font-size: 0.95rem;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .services {
    grid-template-columns: 1fr;
  }
}

/*---------------------------------------- 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 a {
  display: inline-block;
  padding: 10px;
}

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

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

/* Fade-up on scroll */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-up.show {
  opacity: 1;
  transform: translateY(0);
}

