/* Define the custom font */
@font-face {
    font-family: 'ASITP';
    src: url('../fonts/AShellinthePit-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

/* Italic */
@font-face {
    font-family: 'ASITP';
    src: url('../fonts/AShellinthePit-Italic.otf') format('opentype');
    font-weight: normal;
    font-style: italic;
}

/* Bold */
@font-face {
    font-family: 'ASITP';
    src: url('../fonts/AShellinthePit-Bold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}

/* Reset some default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: sans-serif;
    background-color: #00c3af;
    margin: 0;
    min-height: 100vh;
    font-family: 'ASITP', sans-serif;
}

body {
    overflow-y: hidden;
}

.header {
    background-color: #a8f0fe;
    width: 100%;
    height: 300px;
    padding: 20px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    margin-bottom: 2vh;
}

.headerContent {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.headerLineArt {
    position: absolute;
}

.lineart1, .lineart2, .lineart3, .lineart4 {
    position: relative;
    height: auto;
}

.lineart1 {
  position: relative;
  width: 250px;
  right: -450px; /* Offset from the right edge of .headerLineArt */
  top: 20px; /* Distance from the top edge */
  height: auto; /* Maintain aspect ratio */
}

.lineart2 {
  position: relative; /* Needed for precise positioning */
  width: 250px;
  left: -420px; /* Offset from the left edge of .headerLineArt */
  top: -100px; /* Distance from the top edge */
  height: auto; /* Maintain aspect ratio */
}

.lineart3 {
  position: relative; /* Needed for precise positioning */
  width: 150px;
  left: 720px; /* Offset from the left edge of .headerLineArt */
  top: -90px; /* Distance from the top edge */
  height: auto; /* Maintain aspect ratio */
}

.lineart4 {
  position: relative; /* Needed for precise positioning */
  width: 150px;
  right: 620px; /* Offset from the left edge of .headerLineArt */
  top: -250px; /* Distance from the top edge */
  height: auto; /* Maintain aspect ratio */
  transform: rotate(25deg);
}

.header h1 {
    margin: 0;
    font-size: 100px;
    color: black;
    font-family: 'ASITP', sans-serif;
}

.header nav {
    margin-top: 0px;
    padding: 0 15px;
    width: 100%;
}

.header nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: nowrap; /* CRITICAL: Allows links to drop to the next line */
    justify-content: center; /* Centers the links on all screen sizes */
    gap: 1.5em clamp(10px, 4vw, 57px); /* Adds vertical (1.5em) and horizontal (1em) space between items */
    width: 100%; /* Ensure the flex container uses all available space */
}

.header nav ul li {
    margin: 0; /* Minimal vertical margin. Horizontal spacing is now handled by the 'gap' property above. */
    text-align: center;
}

.header nav ul li a {
    color: black;
    text-decoration: none;
	font-size: clamp(25px, 2.8vw, 40px); /* The new fluid font size */
    padding: 5px 0; /* Add a little vertical padding for click space */
}

.projectsRowContainer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap; /* Optional, for responsiveness */
  gap: 30px 20px;
  margin: 30px 0;
  position: relative;
  padding-bottom: 0px;
  
}

/* 1. First Header Container - (1st child in HTML) - Needs to be FIRST on mobile. */
 .projectsRowContainer > .projectsHeaderContainer:nth-child(1) {
  order: 1; 
} 

/* 2. Second Header Container - (3rd child in HTML) - Needs to be SECOND on mobile. */
/* We target the 3rd child of the parent container. */
 .projectsRowContainer > .projectsHeaderContainer:nth-child(2) {
  order: 2; 
} 

/* 3. Project Text Container - (2nd child in HTML) - Needs to be LAST on mobile. */
.projectsRowContainer > .projectTextContainer {
  order: 3; 
} 

@media only screen and (min-width: 760px) {
  .projectsRowContainer {
    display: flex;
    flex-direction: row; /* Overrides the mobile column stacking */
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: nowrap; /* Overrides the mobile flex-wrap */
    margin: 0px 0;
    position: relative;
    padding-bottom: 0;
  }
  
  /* Crucial Step: Disable the mobile reordering on desktop.
     When screen width is >= 760px, these rules are applied, resetting 
     all items back to their default visual order (source order).
     
     Note: Since all flex items default to order: 0, you could simply 
     apply order: 0 to all three children in this block, but explicitly 
     setting the defaults for clarity is good practice.
  */
  /* 1. First Header Container - (1st child in HTML) - Needs to be FIRST on mobile. */
 .projectsRowContainer > .projectsHeaderContainer:nth-child(2) {
  order: 2; 
} 

/* 2. Second Header Container - (3rd child in HTML) - Needs to be SECOND on mobile. */
/* We target the 3rd child of the parent container. */
 .projectsRowContainer > .projectsHeaderContainer:nth-child(3) {
  order: 3; 
} 

/* 3. Project Text Container - (2nd child in HTML) - Needs to be LAST on mobile. */
.projectsRowContainer > .projectTextContainer {
  order: 1; 
} 
}

.music-section {
    width: 100%;
    padding: 0px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    font-size: 30px;
    text-align: center;
    justify-content: center;
    position: relative;
    padding-bottom:20vw;
}

h1, h2 {
    color: black;
}

p {
    color: black;
}

.image-grid {
    display: flex;            /* Switch from Grid to Flex */
    flex-wrap: wrap;          /* Allow items to wrap to the next line */
    justify-content: center;  /* Center the items */
    gap: 10px;                /* Space between bubbles */
    padding: 0;
    width: 100%;              /* Changed from 30% to 100% so it fills the screen */
    max-width: 1200px;        /* Limits how wide the grid can get on giant screens */
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

@media only screen and (min-width: 760px) {
.image-grid {
    display: flex;
    flex-wrap: wrap;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 50px;
    padding: 0px;
    max-width: 90%;
    margin: 0 auto;
    justify-content: center;
    justify-items: center;
    position: relative;
    z-index: 1;
}
}

.image-grid img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    aspect-ratio: 1 / 1;
    padding: 10px;
}

.containerMusicBubbles {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px;
    width: 90%;
    position: relative;
    margin-top: 25%
}

@media only screen and (min-width: 760px){
.containerMusicBubbles {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px;
    width: 80%;
    position: relative;
    margin-top: -40%
}
}

/* Mobile: Force 3 columns */
.image-item {
    position: relative;
    z-index: 1;
    width: 30%;               /* 30% + 30% + 30% = 90% (fits 3 per row) */
    will-change: transform;
    transform-origin: center center;
    transition: none !important;
}

/* Tablet/Desktop: Let them expand */
@media only screen and (min-width: 760px) {
    .image-item {
        width: 100%;
        max-width: 180px;     /* On big screens, they stay at a nice size */
    }
}

.image-item a {
    display: block;
    width: 100%;
    height: 100%;
}

.swap-image:hover {
    aspect-ratio: 1 / 1; 
    width: 100%;
}

/* Individual servicecontrol */
.bubble1 {
  width: 100px;
  margin-left: 0px;
  transform: translateY(-10px);
}

@media only screen and (min-width: 760px) {
  .bubble1 {
  width: 200px;
  margin-left: -50%;
  transform: translateY(-10px);
}
}

.bubble2 {
  width: 150px;
  margin-right: 0px;
  transform: translateY(0px);
}

@media only screen and (min-width: 760px) {
  .bubble2 {
  width: 300px;
  margin-right: -50%;
  transform: translateY(0px);
}
}

.bubble3 {
  width: 100px;
  margin-left: 0px;
  transform: translateY(15px);
}

@media only screen and (min-width: 760px) {
  .bubble3 {
  width: 250px;
  margin-left: -13%;
  transform: translateY(15px);
}
}

.bubble4 {
  width: 100px;
  margin-left: 0px;
  transform: translateY(-5px);
}

@media only screen and (min-width: 760px) {
  .bubble4 {
  width: 250px;
  margin-left: 83%;
  transform: translateY(-5px);
}
}

.projectsHeaderContainer {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 50px;
    padding-left: 0px;
    padding-right: 0px;
    margin-bottom: 20px;
    margin-top: 30px;
    position: relative;
    z-index: 2;
    min-width: 20%;
    
}

@media only screen and (min-width: 760px) {
.projectsHeaderContainer {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 0px;
    padding-left: 436px;
    padding-right: 436px;
    margin-bottom: 0px;
    margin-top: 0px;
    position: relative;
    z-index: 2;
}


}



.Servicebubble {
    width: 150px;
    height: auto;
    cursor: pointer;
    z-index: 2;
    pointer-events: auto;
    position: relative;
    will-change: transform;
    transform-origin: center center;
}

.Servicebubble.active {
    transform: scale(1.2);
    z-index: 3;
    opacity: 1 !important;
}

.Servicebubble:not(.active) {
    opacity: 0.5;
    z-index: 2;
}

@media only screen and (min-width:760px){
.Servicebubble {
    width: 250px;
    height: auto;
    cursor: pointer;
    z-index: 2;
    pointer-events: auto;
    position: relative;
    will-change: transform;
    transform-origin: center center;
}
}

@media only screen and (min-width:760px){
.Servicebubble.active {
    transform: scale(1.2);
    z-index: 3;
    opacity: 1 !important;
}
}

@media only screen and (min-width:760px){
.Servicebubble:not(.active) {
    opacity: 0.5;
    z-index: 2;
}
}

.projectText {
    display: none;
}

@media only screen and (min-width:760px){
.projectText {
    display: none;
}
}

.projectText.active {
    display: block;
    text-align: center;
    font-size: 20px;
    margin-bottom: 0px;
    padding-left: 30%;
    padding-right: 30%;
}

@media only screen and (min-width:760px){
  .projectText.active {
      display: block;
      text-align: center;
      font-size: 35px;
      margin-bottom: 0px;
      padding-left: 30%;
      padding-right: 30%;
  }
}

.box-row {
    display: flex;
    justify-content: center;
    gap: 80px;
}

.box-row img {
    width: 275px;
    height: 275px;
    padding: 30px;
    object-fit: contain;
}

.boxContent {
    padding: 0px;
    text-align: left;
    flex: 1;
    max-width: 330px;
    font-size: 20px;
    line-height: 25px;
    margin-left: -60px;
}

/* Animation overrides */
.image-item, .Servicebubble {
    transition: none !important;
    animation: none !important;
}

.seaLife {
    position: absolute;
    z-index: 1;
    width: 100%;
    height: 150%;
    bottom: -20px;
    left: 0;
    opacity: 0.7;
    overflow-x: hidden;
}

.seaLife .sea-1 {
  position: absolute;
  bottom: 24%;
  left: -4%;
  width: 15%;
}
@media only screen and (min-width: 760px) {
  .seaLife .sea-1 {
    bottom: 26%;
    left: 9%;
    width: 7%;
  }
}
.seaLife .sea-2 {
  position: absolute;
  bottom: 14%;
  left: -4%;
  width: 15%;
}
@media only screen and (min-width: 760px) {
  .seaLife .sea-2 {
    bottom: 37%;
    left: 4%;
    width: 6%;
  }
}
.seaLife .sea-3 {
  position: absolute;
  bottom: 12%;
  left: 14%;
  width: 20%;
}
@media only screen and (min-width: 760px) {
  .seaLife .sea-3 {
    bottom: 18%;
    left: 15%;
    width: 10%;
  }
}
.seaLife .sea-4 {
  position: absolute;
  bottom: 11%;
  right: 12%;
  width: 18%;
}
@media only screen and (min-width: 760px) {
  .seaLife .sea-4 {
    bottom: 17%;
    right: 23%;
    width: 8%;
  }
}
.seaLife .sea-5 {
  position: absolute;
  bottom: 6%;
  left: 31%;
  width: 27%;
}
@media only screen and (min-width: 760px) {
  .seaLife .sea-5 {
    bottom: 16%;
    left: 42%;
    width: 13%;
  }
}
.seaLife .sea-6 {
  position: absolute;
  bottom: -1%;
  right: 25%;
  width: 30%;
}
@media only screen and (min-width: 760px) {
  .seaLife .sea-6 {
    bottom: 7%;
    right: 31%;
    width: 14%;
  }
}
.seaLife .sea-7 {
  position: absolute;
  bottom: 2%;
  right: -4%;
  width: 25%;
}
@media only screen and (min-width: 760px) {
  .seaLife .sea-7 {
    bottom: 6%;
    right: 14%;
    width: 10%;
  }
}
.seaLife .sea-8 {
  position: absolute;
  bottom: 17%;
  right: -14%;
  width: 28%;
}
@media only screen and (min-width: 760px) {
  .seaLife .sea-8 {
    bottom: 34%;
    right: 2%;
    width: 13%;
  }
}
.seaLife .sea-9 {
  position: absolute;
  bottom: 1%;
  left: -3%;
  width: 28%;
}
@media only screen and (min-width: 760px) {
  .seaLife .sea-9 {
    bottom: 6%;
    left: 24%;
    width: 14%;
  }
}

.underwaterDecorationsTop {
  display: none;
  position: absolute;
  z-index: 9999999999;
  width: 100%;
  height: 100%;
  top: 0%;
  left: 0;
  opacity: 0.9;
  overflow-x: hidden;
}

@media only screen and (min-width: 760px) {
.underwaterDecorationsTop {
  display: block;
  position: absolute;
  z-index: 9999999999;
  width: 100%;
  height: 100%;
  top: 0%;
  left: 0;
  opacity: 0.9;
  overflow-x: hidden;
}
}

.underwaterDecorationsTop .screen4-1 {
  position: absolute;
  top: 32%;
  left: -9%;
  width: 20%;
}
@media only screen and (min-width: 760px) {
  .underwaterDecorationsTop .screen4-1 {
    top: 72%;
    left: 5%;
    width: 10%;
  }
}
.underwaterDecorationsTop .screen4-2 {
  position: absolute;
  top: 18%;
  right: -10%;
  width: 20%;
}
@media only screen and (min-width: 760px) {
  .underwaterDecorationsTop .screen4-2 {
    top: 70%;
    right: 5%;
    width: 11%;
  }
}
.underwaterDecorationsTop .screen4-3 {
  position: absolute;
  top: 39%;
  right: -10%;
  width: 20%;
}
@media only screen and (min-width: 760px) {
  .underwaterDecorationsTop .screen4-3 {
    top: 64%;
    right: 4%;
    width: 11%;
  }
}
.underwaterDecorationsTop .screen4-4 {
  position: absolute;
  top: 39%;
  right: -10%;
  width: 20%;
}
@media only screen and (min-width: 760px) {
  .underwaterDecorationsTop .screen4-4 {
    top: 50%;
    right: 3%;
    width: 11%;
  }
}
.underwaterDecorationsTop .screen4-5 {
  position: absolute;
  top: 8%;
  left: 3%;
  width: 20%;
  transform: scaleX(-1);
}
@media only screen and (min-width: 760px) {
  .underwaterDecorationsTop .screen4-5 {
    top: 50%;
    left: 3%;
    width: 11%;
    transform: scaleX(-1);
  }
}
.underwaterDecorationsTop .screen4-6 {
  position: absolute;
  top: 39%;
  right: -10%;
  width: 20%;
}
@media only screen and (min-width: 760px) {
  .underwaterDecorationsTop .screen4-6 {
    top: 38%;
    right: 4%;
    width: 11%;
  }
}
.underwaterDecorationsTop .screen4-7 {
  position: absolute;
  top: 39%;
  right: -10%;
  width: 20%;
}
@media only screen and (min-width: 760px) {
  .underwaterDecorationsTop .screen4-7 {
    top: 38%;
    right: 4%;
    width: 11%;
  }
}

.newWavesMusic {
  width:100%;
  height:100%;
  margin-top: -3%;
  margin-bottom: -323px;
  background-color: #a8f0fe;
  pointer-events: all;
}

@media only screen and (min-width: 760px) {
.newWavesMusic {
  width:100%;
  height:100%;
  margin-top: -10%;
  margin-bottom: -323px;
  background-color: #a8f0fe;
  pointer-events: all;
}
}

.content {
    background: linear-gradient(to bottom, #a8f0fe 60%, #00c3af 10%);
    min-height: 100vh;
    z-index: 1;
    position: relative;

}

@media only screen and (min-width: 760px) {
    .content {
    background: linear-gradient(to bottom, #a8f0fe 60%, #00c3af 10%);
    min-height: 100vh;
    z-index: 1;
    position: relative;

}
}