@import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@300;400;500;700;800&display=swap');

:root{
    --primary: #00ABE7;
    --secondary: #EABA6B;
    --blacktext: #414141;
    --whitetext: #FCFCFC;
}

/* GLOBAL STYLES */

html {
    scroll-behavior: smooth;
}

*{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-size: 16px;
}

*:focus{
    outline: 5px var(--primary) solid;
}

html{
    overflow-x: hidden;
}

body{
    background: rgb(22,169,160);
    background: linear-gradient(160deg, rgba(22,169,160,1) 0%, rgba(0,171,231,1) 100%);
    font-family: 'Unbounded', cursive;
    color: var(--whitetext);
    overflow-x: hidden;
}

.container{
    width: 65%;
    margin: auto;
}

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

a:hover{
    transform: scale(1.05);
    transition: all 0.2s ease;
}

a:visited{
    color: inherit;
}

h1{
    font-size: 2.25rem;
    font-weight: 700;
}

h2{
    font-size: 1.5rem;
    font-weight: 500;
}

h3{
    font-size: 1.25rem;
    font-weight: 300;
}

p{
    font-size: 1rem;
    font-weight: 300;
    color: var(--blacktext);
    letter-spacing: 1px;
}

.title-line{
    width: 70px;
    height: 7px;
    background-color: var(--secondary);
    border-radius: 50px;
    text-align: center;
    margin: auto;
    margin-top: 0.5rem;
}

.title-desc{
    color: var(--whitetext);
    text-align: left;
    width: 80%;
    margin: auto;
    margin-top: 1rem;
    margin-bottom: 0;
}

/* GLOBAL STYLES END */

/* HEADER */
.header{
    background: var(--secondary);
    z-index: 4;
}

.header-container{
    width: 75%;
    margin: auto;
    display: flex;
    justify-content: space-between;
}

/* to be changed*/
nav{
    margin: auto 0; 
}

nav .nav-link{
    color: var(--whitetext);
    font-size: 0.85rem;
    margin-left: 0.75rem;
}

nav a:hover {
    color: var(--primary);
    transition: 0.3s ease;
}
/* HEADER END */

.landing{
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: rgb(20,189,249);
    background: linear-gradient(160deg, rgba(20,189,249,1) 0%, rgba(134,205,236,1) 100%);
}

.landing::after{
    content: "";
    display: block;
    width: 100%;
    height: 10vh;
    background: url(../img/waves.svg);
    background-size:cover;
    background-position: center/center; 
    z-index: 1;
}

/* HERO */

.hero{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.hero::after{
    content: "";
    display: block;
    position: absolute;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: -1;
}

.hero h1{
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    z-index: 2;
}

.hero h2{
    font-size: 1.5rem;
    font-weight: 700;
    margin: 1rem;
    text-align: center;
    z-index: 2;
}

.hero .cta{
    text-align: center;
    margin: 2rem;
    font-size: 1rem; /* orjinali 1.5rem */
    font-weight: 500;
    background-color: var(--secondary);
    padding: 1.5rem 2rem;
    border-radius: 50px;
    position:relative;
    z-index: 1;
}

.hero .cta::before{
    content:"";
    position:absolute;
    left:10px;
    right:-10px;
    top:10px;
    bottom:-10px;
    border: 6px solid white;
    border-radius: 50px;
    z-index: 0;
}

.hero .cta:hover{
    transform: scale(1.05);
    transition: all 0.2s ease;
    background-color: var(--primary);
    border: none;
}

.hero #earth{
    position: absolute;
    z-index: -1;
    height: 65%;
}

#ship{
    width: 20%;
    position: absolute;
    right: 0;
    bottom: 2vh;
    z-index: -1;
    animation-name: shipAnimation;
    animation-duration: 4s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
}

@keyframes shipAnimation {
    0%   {transform: rotate(0deg); right:0px; bottom:2vh;}
    25%  {transform: rotate(2deg); right:0px; bottom:2vh;}
    50%  {transform: rotate(-2deg); right:0px; bottom:0vh;}
    75%  {transform: rotate(2deg); right:0px; bottom:2vh;}
    100% {transform: rotate(0deg); right:0px; bottom:2vh;}
}

#bottle{
    width: 7%;
    position: absolute;
    left: 7vw;
    bottom: 0;
    z-index: -1;
    animation-name: bottleAnimation;
    animation-duration: 4s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
}

@keyframes bottleAnimation {
    0%   {transform: rotate(0deg); right:0px; bottom:0vh;}
    25%  {transform: rotate(2deg); right:0px; bottom:0vh;}
    50%  {transform: rotate(-2deg); right:0px; bottom:-2vh;}
    75%  {transform: rotate(2deg); right:0px; bottom:0vh;}
    100% {transform: rotate(0deg); right:0px; bottom:0vh;}
}
/* HERO END */

/* INFO BOXES */

.card {
    width: 80%;
    height: 300px;
    perspective: 500px;
    position: relative;
}
  
.content {
    position: absolute;
    width: 100%;
    height: 100%;
    transition: transform 1s;
    transform-style: preserve-3d;
}

.turn {
    transform: rotateY( 180deg ) ;
    transition: transform 0.5s;
}

.front,
.back {
    position: absolute;
    height: 100%;
    width: 100%;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;

    background: white;
    color: #03446A;
    text-align: center;
    border-radius: 20px;
    backface-visibility: hidden;
}

.front h2{
    margin: 0 1rem;
}

.back {
    background: #03446A;
    transform: rotateY( 180deg );
}

.back p{
    color: var(--whitetext);
    margin: 0 0.8rem;
    line-height: 1.5rem;
    font-size: 0.9rem;
}

.front .flipbtn{
    width: 50%;
    transition: transform 0.2s ease;
}

.front .flipbtn:hover{
    transform: scale(1.45);
    cursor: pointer;
}

.front img, .back img{
    max-width: 128px;
    height: auto;
}

.front .icon{
    max-width: 32px;
}

.info-boxes{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    row-gap: 1rem; 
    justify-items: center;
    margin: 18vh auto 0 auto;
}

.box-row{
    justify-content: space-between;
    display: flex;
    margin-top: 2rem;
}

#scuba{
    position: absolute;
    z-index: -1;
    left: -5%;
    top: 50rem;
}

/* INFO BOXES END*/

/* VIDEO */
.video{
    position: relative;
    margin: 20vh auto 0 auto;
}

.video h1{
    text-align: center;
}

.video-grid{
    margin-top: 4rem;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    grid-template-areas: "a a b"
    "a a c";
    gap: 1.5rem;
}

.music-grid{
    margin-top: 4rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 1.5rem;
}

#vid1{
    grid-area: a;
}

#vid2{
    grid-area: b;
}
#vid3{
    grid-area: c;
}

iframe{
    border: none;
    border-radius: 10px;
    min-height: 250px;
}

#ahtapot{
    position: absolute;
    z-index: -1;
    right: 10%;
    max-height: 200px;
    transform: rotateZ(26deg);
    filter:opacity(0.4);
}

#mermaid{
    position: absolute;
    z-index: -1;
    right: -27%;
    top: 38rem;
    max-height: 500px;
    overflow: hidden;
}
/* VIDEO END */

/* QUIZ (GAME) */


.quiz{
    margin: 20vh auto 0 auto;
    position: relative;
}

.quiz h1{
    text-align: center;
}

.digeroyun{
    text-align: center;
    margin: auto;
    margin-top: 4rem;
}

#balon-oyun{
    width: 100%;
    height: 100%;
    background: #0A0A0A;
    padding: 13rem 5rem;
    border-radius: 40px;
}

#balon-baslat{
    background: url(../img/play-btn.svg) center/contain no-repeat;
	width: 20vw;
    min-height: 15vh;
	border: none;
	transition: all 0.25s ease;
    margin-top: 3rem;
}

#balon-baslat:hover{
	transform: scale(1.15);
	cursor: pointer;
}

#fish{
    position: absolute;
    left: -25%;
    z-index: -1;
    top: 2rem;
    max-height: 700px;
}

/* QUIZ END */

/* Photo gallery */
#slideshoww{
    position: relative;
    margin-top: 4rem;
    height: 70vh;

}

.slideshow {
    list-style-type: none;

}

/** SLIDESHOW **/
.slideshow,
.slideshow:after { 
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0px;
    z-index: 0; 
    background-color: #03446A;
    border-radius: 10px 40px 10px 40px;
}

.slideshow img { 
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: contain;
    top: 0px;
    left: 0px;
    border-radius: 10px 40px 10px 40px;
}

#denizanasi{
    position: absolute;
    z-index: -1;
    right: -20%;
    top: 38rem;
    max-height: 200px;
    transform: rotateZ(-45deg);
    filter:opacity(0.4);
    overflow: hidden;
}

/* Photo gallery end */

/* INFO GAME (no longer exist, project section)*/
.info-game{
    margin: 20vh auto 20vh auto; /* En alta da 20vh margin */
    position: relative;
}

.info-game h1{
    text-align: center;
}

/* INFO GAME END */

/* PROJECTS SECTION */

.projects{
    display: flex;
    flex-direction: column;
}

.tabs{
    display: flex;
    justify-content: space-around;
    text-align: center;
    width: 100%;
    margin-top: 4rem;

    border-radius: 40px 40px 0 0 ;
    background: var(--whitetext);
    color: var(--blacktext);
    border-bottom: 3px var(--primary) solid;
}

.tab{
    width: 100%;
    height: 100%;
    border-radius: 40px 40px 0 0 ;
    padding: 1rem;
    font-weight: 500;
    transition: all 0.15s linear;
}

.tab:hover{
    background: var(--primary);
    color: var(--whitetext);
    cursor: pointer;
}

.tab:active{
    transform: scale(0.95);
}

.active{
    background: var(--secondary);
    color: var(--whitetext);
}

.project-details{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5rem 3rem;
    background: var(--whitetext);
    border-radius: 0 0 40px 40px;    
}

#project-img{
    min-width: 300px;
    min-height: 300px;
    border-radius: 40px 5px 40px 5px;
    border: 2px var(--primary) solid;
    flex-shrink: 0;
    background: url(../img/su-kardesligi.webp) center/contain;
}

#project-text{
    color: #0A0A0A;
    padding-right: 1rem;
    flex-grow: 0;
    display: flex;
    flex-direction: column;
}

#project-text h2{
    font-size: 1.75rem;
    margin-bottom: 2rem;
    font-weight: 400;
}

#project-btn{
    background: var(--primary);
    color: var(--whitetext);
    padding: 1rem 1.5rem;
    border-radius: 30px;
    margin-top: 2rem;
    font-size: 0.8rem;
    text-align: center;
    width: 40%;
}

#project-text p{
    line-height: 1.5rem;
}

/* PROJECT SECTION END */

/* FOOTER */
#algae{
    position: absolute;
    bottom: -19vh;
    left: -25%;
    max-width: 200px;
    height: auto;
    z-index: -1;
}

#plastic{
    position: absolute;
    bottom: -24vh;
    right: -26.5%;
    max-width: 300px;
    height: auto;
    z-index: -1;
    overflow: hidden;
}

footer{
    background-color: #232323;
    border-top-right-radius: 50px;
    border-top-left-radius: 50px;
}

footer .flex{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem;
}

footer .footer-text{
    color: var(--whitetext);
    font-size: 0.65rem;
    font-weight: 400;
}

footer img{
    width: 32px;
}

footer .flex-right{
    text-align: right;
}

footer a p{
    color: var(--whitetext);
    font-size: 0.65rem;
    margin-top: 0.4rem;
    margin-bottom: 0.4rem;
    
}

/* FOOTER END */

/* Light youtube vids */
.youtube-player {
    position: relative;
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    min-height: 250px;
    width: 100%;
    height: 100%;
    background: var(--primary);
}

.youtube-player iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    background: transparent;
}

.youtube-player img {
    object-fit: cover;
    display: block;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    position: absolute;
    right: 0;
    top: 0;

    cursor: pointer;
    -webkit-transition: 0.4s all;
    -moz-transition: 0.4s all;
    transition: 0.4s all;
}

.youtube-player img:hover {
    -webkit-filter: brightness(75%);
    filter: brightness(75%);
}

.youtube-player .play {
    height: 48px;
    width: 68px;
    left: 50%;
    top: 50%;
    margin-left: -34px;
    margin-top: -24px;
    position: absolute;
    background: url('../img/yt.png') no-repeat;
    cursor: pointer;
}