/* css/style.css */
/* Global & Reset */
html, body {
  margin: 0;
  padding: 0;
  font-family: 'Lato', sans-serif;
  cursor: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Ccircle cx='8' cy='8' r='8' fill='black'/%3E%3C/svg%3E") 8 8, auto;
}

/* Logo */
.logo {
  position: absolute;
  top: 10px;
  left: 10px;
  /* Fluid width: min 100px, ideal 15vw, max 300px */
  width: clamp(100px, 15vw, 300px);
  height: auto;
   z-index: 9999; 
}

.fixed-logo {
  position: fixed;    /* Logo blijft staan, zelfs bij scrollen */
  bottom: 10px;       /* 10px vanaf onderkant */
  right: 10px;        /* 10px vanaf rechterkant */
  width: 60px;        /* pas aan naar wens */
  height: auto;       /* behoudt de verhoudingen */
  z-index: 9999;      /* altijd boven andere elementen */
}


/* Navbar */
nav {
  display: flex;
  justify-content: center;
  background-color: #333;
  padding: 10px;
  margin-top: 50px;
}
nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}
nav ul li {
  margin-right: 20px;
}
nav ul li a {
  color: #fff;
  text-decoration: none;
  padding: 8px 12px;
  font-family: 'Bungee', cursive;
  font-size: 1.5rem;
  transition: transform 0.2s ease;
  cursor: pointer;
}
nav ul li a:hover {
  transform: scale(1.2);
}

/* Hero Image */
.about-hero {
  text-align: center;
  margin-top: 20px;
  height: 350px;
  overflow: hidden;
}
.about-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}

/* Main Content */
main {
  padding: 1rem;
  font-size: 1.5rem;
}

/* Vergroot de "About MatteoDesigns" titel 3x */
main h1 {
  font-size: 4em;
  margin-bottom: 1rem;
}
/* Main content with image floated right */
.main-content-with-image {
  overflow: auto;
}
/* Increase main content image to twice its previous size */
.main-content-with-image img {
  float: right;
  width: clamp(320px, 48vw, 480px);
  height: auto;
  margin-left: 1rem;
}
/* Ensure each element in main content has ample vertical spacing */
.main-content-with-image h1,
.main-content-with-image p,
.main-content-with-image h2,
.main-content-with-image ul {
  clear: none;
  margin: 1.5rem 0;
}

.Who-am-i{
  font-size: 2.5rem;
  margin-left: 6rem;
}
/* Scroll Section */
.scroll-section {
  padding: 2rem 0;
  border: 2px solid #000;    /* zwarte rand van 2px */
  padding: 1rem;             /* wat ruimte tussen rand en inhoud */
  box-sizing: border-box;    /* zodat padding binnen je border valt */
  margin: 2rem auto;         /* optioneel: wat ruimte erboven/eronder en centreren */
  max-width: 90%;            /* optioneel: niet te breed maken */
}

.scroll-container {
  display: flex;
  overflow-x: scroll;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;

  /* Hide scrollbar */
  scrollbar-width: none;        /* Firefox */
  -ms-overflow-style: none;     /* IE 10+ */
}
.scroll-container::-webkit-scrollbar {
  display: none;                /* Chrome, Safari, Edge */
}

.scroll-item {
  flex: 0 0 100%;
  scroll-snap-align: start;
  min-width: 100%;
  padding: 1rem;
  background: #f0f0f0;
  margin-right: 1rem;
  text-align: center;
  font-family: 'Bungee', cursive;
  background-color: rgba(255,255,255,0.1);
}

.What-kind-of{
  margin: 0;           /* reset browser defaults */
  margin-bottom: 25mm;  /* 5 mm ruimte onder de heading */
}

.Still-learning{
  margin: 0;           /* geen extra ruimte erboven */
  margin-bottom: 20mm;
}

.skillsfoto{
  width: 35%;
  height: auto;
 display: block;
 margin: 0 auto;
}

.colourfoto{
  width: 60%;
  height: auto;
 display: block;
 margin: 0 auto;
}

.spotify-foto{
  width: 50%;
  height: auto;
  
}

/* Indicator Styles with centered connector lines */
.scrollbar-indicator {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  max-width: 800px;
  margin: 1rem auto;
  position: relative;
}


.indicator-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1;
}

.indicator-item:not(:last-child) .indicator-dot::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 20px;
  height: 2px;
  background: #333;
  transform: translateY(-50%);
  z-index: -1;
}

.indicator-item:not(:first-child) .indicator-dot::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;                       /* start at dot’s left edge */
  width: 20px;                   /* half of your 40px gap */
  height: 2px;
  background: #333;
  transform: translateY(-50%);
  z-index: -1;
}

.indicator-dot {
  width: 16px;
  height: 16px;
  border: 2px solid #333;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s ease, background 0.2s ease;
  margin: 0;
  position: relative;
}
.indicator-label {
  margin-top: 4px;
  font-size: 0.75rem;
  color: #333;
  opacity: 0;
  transition: opacity 0.2s ease;
}

/* Active state */
.indicator-item.active .indicator-dot {
  transform: scale(1.5);
  background: #333;
}
.indicator-item.active .indicator-label {
  opacity: 1;
}

#overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.5);
  z-index: 50;
}

/*portfolio*/

.work-item {
  position: relative;
  left: 50%;                /* shift to the right 50% of its container */
  right: 50%;               /* shift to the left 50% of its container */
  margin-left: -50vw;       /* pull it back by half the viewport width */
  margin-right: -50vw;      /* same on the right */
  z-index: 10;
  transition: z-index 0.2s;
  
  width: 100vw;             /* now spans the entire viewport */
  display: flex;            /* layout image + text side by side */
  align-items: center;      /* vertically center contents */
  padding: 2rem 1rem;       /* inside spacing */
  box-sizing: border-box;
  background: #f5f5f5;      /* or whatever bg you like */
  margin-bottom: 2rem;      /* space between stripes */
}

/* Image styling */
.work-item img {
  flex: 0 0 40%;            /* 40% of the stripe width on desktop */
  max-width: 400px;          /* optional cap */
  height: auto;
  border-radius: 8px;
  margin-right: 2rem;
  object-fit: cover;
}

/* Text block next to image */
.work-text {
  flex: 1;                  /* take the rest of the space */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-bottom: 1rem;
}

.work-text h2 {
  margin-top: 0;
  font-size: 2rem;
}

.work-text p {
  font-size: 1rem;
  line-height: 1.4;
  transition: transform 0.2s ease, font-size 0.2s ease;
}

/* 3. When highlighted, bump it above the overlay */
.work-item.highlight {
  z-index: 100;
}
.work-item:hover .work-text h2 {
  transform: scale(1.05);
}
.work-item:hover .work-text p {
  transform: scale(1.02);
}

/* Standaard: verberg alleen image + description, niet de titel */
.work-item img,
.work-item .work-text p {
  display: none;
}

/* Bij actief (klik): toon image + description */
.work-item.active img,
.work-item.active .work-text p {
  display: block;
}

/* Alleen Work #2 */
.work-item.work-2 .work-gallery {
  display: flex;
  flex-wrap: nowrap;       /* alles op 1 lijn */
  justify-content: flex-end; /* naar rechts */
  gap: 0.75rem;
  overflow-x: auto;        /* voorkomt afbreken op small screens */
  padding-bottom: 2px;     /* mini ruimte voor eventuele scrollbar */
  flex-direction: row;
}

.work-item.work-2 .work-gallery img {
  flex: 0 0 auto;          /* geen krimp */
  width: 120px;            /* vaste thumbbreedte */
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 6px;
}

/* Mobile-specific styles */
@media screen and (max-width: 768px) {
  /* Pas navbar links wat kleiner en zet ze onder elkaar */
  nav ul {
    flex-direction: column;
    align-items: center;
  }
  nav ul li {
    margin: 8px 0;
  }
  nav ul li a {
    font-size: 1.2rem;
    padding: 6px 10px;
  }

  /* Hero image korter maken op mobiel */
  .about-hero {
    height: 200px;
  }

  /* Pas object-position iets anders voor kleine schermen */
  .about-photo {
    object-position: center 30%;
  }

  /* Scroll-items smaller padding */
  .scroll-item {
    padding: 0.5rem;
    margin-right: 0.5rem;
  }

  /* Indicator spacing wat compacter */
  .scrollbar-indicator {
    gap: 12px;
  }
  .What-kind-of{
    margin-bottom: 3rem;
  }
  .Still-learning{
    margin-bottom: 2rem;
  }
  .skillsfoto{
    width: 70%;
    max-width: 270px;
  }
  .colourfoto{
    width: 100%;
    max-width: 500px;
    margin-top: 1rem;
  }
   .work-item {
    display: block;
    padding: 1rem;
  }
  .work-item img {
    width: 100%;
    margin-bottom: 1rem;
  }
}
/* Tablet (iPad) specific styles */
@media screen and (min-width: 768px) and (max-width: 1024px) {
  /* Pas navbar links iets kleiner op tablet */
  nav ul li a {
    font-size: 1.4rem;
    padding: 7px 11px;
  }

  /* Hero image hoogte voor tablet */
  .about-hero {
    height: 300px;
  }

  /* Object-position verfijning voor tablet */
  .about-photo {
    object-position: center 28%;
  }

  /* Scroll-items aangepaste padding voor tablet */
  .scroll-item {
    padding: 0.75rem;
    margin-right: 0.75rem;
  }

  /* Indicator spacing voor tablet */
  .scrollbar-indicator {
    gap: 18px;
  }
}


