@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&display=swap');
@import "tailwindcss";

@theme {
    --color-cyan-sc: #06B7E9;
    --color-bondi-sc: #0A7D9C;
    --color-gray-sc: #ECEFEF;
    --font-jakarta: "Plus Jakarta Sans", serif; 
}

* {
    scroll-behavior: smooth;
    @apply font-jakarta;
}

/* supaya tidak ada scrollbar horizontal */
html, body {
    overflow-x: hidden;
}


img {
    user-select: none;
}

/* Scrollbar utama */
::-webkit-scrollbar{
    display: none;
}

/* START PRELOADER */
/* transition-opacity visible duration-500 */
.container-preloader {
    overflow: hidden;
    position: fixed; 
	left: 0px; 
	top: 0px; 
	width: 100%; 
	height: 100%; 
	z-index: 9999; 
	@apply bg-gray-sc; 
    display: flex;
    justify-content: center;
    align-items: center;
}

.container-preloader:before{
	content:'';
	position:absolute;
	left:0;
	top:0;
	width:100%;
	height:100%;
	@apply bg-gray-sc;
	z-index:0; 
	-webkit-transform:translateY(0%);
	-ms-transform:translateY(0%);
	transform:translateY(0%);
	-webkit-transition: all 800ms ease;
	-moz-transition: all 800ms ease;
	-ms-transition: all 800ms ease;
	-o-transition: all 800ms ease;
	transition: all 800ms ease;
}

.page-loaded .container-preloader:before{
	-webkit-transform:translateY(-101%);
	-ms-transform:translateY(-101%);
	transform:translateY(-101%);
}

.container-preloader:after{
	content:'';
	position:absolute;
	left:0;
	top:0;
	width:100%;
	height:100%;
	@apply bg-bondi-sc;
	z-index:2; 
	-webkit-transform:translateY(101%);
	-ms-transform:translateY(101%);
	transform:translateY(101%);
	-webkit-transition: all 800ms ease;
	-moz-transition: all 800ms ease;
	-ms-transition: all 800ms ease;
	-o-transition: all 800ms ease;
	transition: all 800ms ease;
}

.page-loaded .container-preloader:after{
	-webkit-transform:translateY(-101%);
	-ms-transform:translateY(-101%);
	transform:translateY(-101%);
}

.preloader-icons {
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-loaded .preloader-icons {
    opacity: 0;
    transition: opacity 200ms ease;
}

.preloader-logo {
    position: absolute;
    z-index: 999999;
    height: 135px;
    transform: translate(-50%, -50%);
    animation: fadeInOut 2.5s ease-in-out infinite;
}

@keyframes fadeInOut {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.5;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.preloader-icons div {
    position: absolute;
    /* width: 90px;
    height: 51px; */
    /* width: 160px;
    height: 92px; */
    width: 220px;
    height: 128px;
}

.preloader-icons div:nth-of-type(2) {
    transform: rotate(60deg)
}

.preloader-icons div:nth-of-type(3) {
    transform: rotate(-60deg)
}

.preloader-icons div div {
    width: 100%;
    height: 100%;
    position: relative
}

.preloader-icons div div span {
    position: absolute;
    width: 3px;
    height: 0%;
    background: #053146;
}

.h1 {
    left: 0;
    animation: load1 7.2s ease infinite;
}

.h2 {
    right: 0;
    animation: load2 7.2s ease .6s infinite;
}

.h3 {
    right: 0;
    animation: load3 7.2s ease 1.2s infinite;
}

.h4 {
    right: 0;
    animation: load4 7.2s ease 1.8s infinite;
    }

.h5 {
    left: 0;
    animation: load5 7.2s ease 2.4s infinite;
}

.h6 {
    left: 0;
    animation: load6 7.2s ease 3s infinite;
}

@keyframes load1 {
    0% {
        bottom: 0;
        height: 0
    }

    6.944444444% {
        bottom: 0;
        height: 100%
    }

    50% {
        top: 0;
        height: 100%
    }

    59.944444433% {
        top: 0;
        height: 0
    }
    /*   91.6666667%{top:0;height:0%;} */
}

@keyframes load2 {
    0% {
        top: 0;
        height: 0
    }

    6.944444444% {
        top: 0;
        height: 100%
    }

    50% {
        bottom: 0;
        height: 100%
    }

    59.944444433% {
        bottom: 0;
        height: 0
    }
    /*   91.6666667%{bottom:0;height:0%} */
}

@keyframes load3 {
    0% {
        top: 0;
        height: 0
    }

    6.944444444% {
        top: 0;
        height: 100%
    }

    50% {
        bottom: 0;
        height: 100%
    }

    59.94444443% {
        bottom: 0;
        height: 0
    }
    /*   91.6666667%{bottom:0;height:0%;} */
}

@keyframes load4 {
    0% {
        top: 0;
        height: 0
    }

    6.944444444% {
        top: 0;
        height: 100%
    }

    50% {
        bottom: 0;
        height: 100%
    }

    59.94444443% {
        bottom: 0;
        height: 0
    }
    /*   91.6666667%{bottom:0;height:0%;} */
}

@keyframes load5 {
    0% {
        bottom: 0;
        height: 0
    }

    6.944444444% {
        bottom: 0;
        height: 100%
    }

    50% {
        top: 0;
        height: 100%
    }

    59.94444443% {
        top: 0;
        height: 0
    }
    /*   91.6666667%{top:0;height:0%;} */
}

@keyframes load6 {
    0% {
        bottom: 0;
        height: 0
    }

    6.944444444% {
        bottom: 0;
        height: 100%
    }

    50% {
        top: 0;
        height: 100%
    }

    59.94444443% {
        top: 0;
        height: 0
    }
    /*   91.6666667%{top:0;height:0%;} */
}
/* END PRELOADER */

/* START NAVBAR */
.dropdown-appear {
    @apply bg-white/60;
    backdrop-filter: blur(7px);
    box-shadow: inset 0 -1px 0 0 rgba(10, 125, 156, 0.4);
}

.dropdown-hidden {
    @apply bg-transparent;
}

/* TRANSITION HAMBURGER ICON */
.nav-icon {
    position: relative;
    width: 42px;
    height: 25px;
    cursor: pointer;
}

.nav-icon span {
    position: absolute;
    width: 50%;
    height: 3px;
    @apply bg-bondi-sc;
    transition: all 0.3s ease-in-out;
    -webkit-transition: all 0.3s ease-in-out;
    -moz-transition: all 0.3s ease-in-out;
    -ms-transition: all 0.3s ease-in-out;
    -o-transition: all 0.3s ease-in-out;
}

.nav-icon span:nth-child(odd) {
    /*1,3,5*/left: 0;
    border-radius: 9px 0 0 9px;
    -webkit-border-radius: 9px 0 0 9px;
    -moz-border-radius: 9px 0 0 9px;
    -ms-border-radius: 9px 0 0 9px;
    -o-border-radius: 9px 0 0 9px;
}

.nav-icon span:nth-child(even){
    /*2,4,6*/left: 50%;
    border-radius: 0 9px 9px 0;
    -webkit-border-radius: 0 9px 9px 0;
    -moz-border-radius: 0 9px 9px 0;
    -ms-border-radius: 0 9px 9px 0;
    -o-border-radius: 0 9px 9px 0;
}

.nav-icon span:nth-child(1),
.nav-icon span:nth-child(2) {
    top: 0;
}

.nav-icon span:nth-child(3),
.nav-icon span:nth-child(4) {
    /* top: 13px; */
    top: 10px;
}

.nav-icon span:nth-child(5),
.nav-icon span:nth-child(6) {
    /* top: 26px; */
    top: 20px;
}

.nav-open .nav-icon span:nth-child(1),
.nav-open .nav-icon span:nth-child(6) {
    transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    -o-transform: rotate(45deg);
}

.nav-open .nav-icon span:nth-child(2),
.nav-open .nav-icon span:nth-child(5) {
    transform: rotate(-45deg);
    -webkit-transform: rotate(-45deg);
    -moz-transform: rotate(-45deg);
    -ms-transform: rotate(-45deg);
    -o-transform: rotate(-45deg);
}

.nav-open .nav-icon span:nth-child(1) {
    top: 8px;
    left: 5px;
}

.nav-open .nav-icon span:nth-child(2) {
    top: 8px;
    left: calc(50% - 5px);
}

.nav-open .nav-icon span:nth-child(3) {
    left: -100%;
    opacity: 0;
}

.nav-open .nav-icon span:nth-child(4) {
    left: 150%;
    opacity: 0;
}

.nav-open .nav-icon span:nth-child(5) {
    top: 19px;
    left: 5px;
}

.nav-open .nav-icon span:nth-child(6) {
    top: 19px;
    left: calc(50% - 5px);
}
/* END NAVBAR */

/* START LIVE STUDY CLUB */
.live-track {
    display: flex;
    width: calc((235px * 12) + (52px * 11));
    animation: ticker 15s linear infinite;
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@media (max-width: 768px){
    .preloader-icons div {
        width: 150px;
        height: 85px;
    }

    .preloader-logo {
        height: 85px;          /* dari 145px */
    }

    .live-track {
        display: flex;
        width: calc((235px * 12) + (12px * 11));
        animation: ticker 15s linear infinite;
    }
}
/* END LIVE STUDY CLUB */

/* START CLASS SECTION */
section#class div#card-join-us p {
    text-shadow: 1px 4px 8px rgba(0, 0, 0, 0.4);
    animation: scale 2s ease-in-out infinite;
}

@keyframes scale {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.12);
    }
}
/* END CLASS SECTION */

/* START MENTOR SECTION */
:root {
  --mentor-option-size: 45px;
  --mentor-circle-size: 130px; /* Jarak yang lebih ideal */
}

@supports (appearance: base-select) {
  .social-select {
    z-index: 100;
    appearance: base-select;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .social-select::picker-icon {
    display: none;
  }

  .social-select::picker(select) {
    z-index: 100;
    appearance: base-select;
    top: anchor(center);
    left: anchor(center);
    transform: translate(-50%, -50%);
    overflow: visible;
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    /* Memungkinkan animasi saat elemen menghilang/display none */
    transition: display 0.5s allow-discrete, overlay 0.5s allow-discrete;
  }

  .social-select option {
    --half-circle: calc(var(--mentor-circle-size) / -2);
    --rotation-divide: calc(360deg / 3);
    --deg: 0deg;
    --negative: calc(var(--deg) / -1);

    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    left: 50%;
    width: var(--mentor-option-size);
    aspect-ratio: 1;
    margin: calc(var(--mentor-option-size) / -2);
    border-radius: 50%;
    
    /* State Default (Tertutup/Kembali ke tengah) */
    opacity: 0;
    transform: translate(0, 0); 
    
    /* Transition ini yang mengatur halus saat buka DAN tutup */
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
    cursor: pointer;
  }

  /* Animasi saat TERBUKA (Sama dengan file custom-select-3.html) */
  .social-select:open option {
    transform: rotate(var(--deg)) translate(var(--half-circle)) rotate(var(--negative));
    opacity: 1;
  }

  /* Memaksa animasi mulai dari tengah saat pertama klik */
  .social-select:open option {
    @starting-style {
      transform: translate(0, 0);
      opacity: 0;
    }
  }

  /* Pengaturan derajat agar menyebar di sisi kiri-atas kartu */
  .social-select option:nth-child(1) { --deg: 160deg; }
  .social-select option:nth-child(2) { --deg: 210deg; }
  .social-select option:nth-child(3) { --deg: 260deg; }
  .social-select option:nth-child(4) { --deg: 310deg; }

  /* Warna Ikon */
  .opt-linkedin { background-color: #0077b5; }
  .opt-instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
  .opt-twitter { background-color: #2563EB; }
  .opt-github { background-color: #000; }
  
  option::checkmark { display: none; }
}
/* END MENTOR SECTION */

/* Button BackToHIMTIKA */
.Btn {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition-duration: .3s;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.199);
    background-color: rgb(255, 255, 255);
}

/* plus sign */
.sign {
    width: 100%;
    transition-duration: .3s;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* text */
.text {
    /* position: absolute;
    right: 0%; */
    width: 0%;
    opacity: 0;
    color: rgba(255, 255, 255);
    background-color: rgb(10, 198, 194);
    transition-duration: .3s;
}
/* hover effect on button width */
.Btn:hover {
    width: 160px;
    border-radius: 40px;
    transition-duration: .3s;
    box-shadow: 0px 0px 15px 1px rgba(11, 223, 219);
}

.Btn:hover .sign {
    width: 35%;
    transition-duration: .3s;
    padding-left: 5px;
}
/* hover effect button's text */
.Btn:hover .text {
    opacity: 1;
    width: 65%;
    transition-duration: .3s;
    /* padding-right: 5px; */
}
/* button click effect*/
.Btn:active {
    transform: translate(2px ,2px);
}
/* Button BackToHIMTIKA */

/* START TIMELINE SECTION */
.box-shadow-timeline {
    box-shadow : 0px 4px 6px 0 rgba(0,0,0, 0.25);
}
/* END TIMELINE SECTION */

/*========= CONTACT SECTION =========*/
.popup-contact {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: none; 
    justify-content: center;
    align-items: center;
    z-index: 51;
    padding: 0 24px;
    @apply font-jakarta;
}
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.popup-contact .form-contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
    /* padding: 30px; */
    border-radius: 20px;
    position: relative;
    background: linear-gradient(180deg, #0A7D9C, #06556b, #02485c);
    animation: slideIn 0.5s ease-out;
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.form-contact.slide-out {
    animation: slideOut 0.5s ease-in forwards;
}

.close-btn-contact {
    position: absolute;
    top: -0.5rem;
    right: 0.5rem;
    font-size: 2rem;
    cursor: pointer;
    color: #FFFFFF;
}
.title-contact {
    justify-content: center;
    font-size: 2.3rem;
    font-weight: 600;
    letter-spacing: -1px;
    position: relative;
    display: flex;
    align-items: center;
    text-align: center;
    color: #ffffff;
    text-transform: uppercase;
}

.message-contact {
    margin-top: 10px;
    font-size: 0.9rem;
    font-weight: 300;
    color: #ffffff;
    text-align: center;
    font-style: italic;
}

.flex-contact {
    display: flex;
    width: 100%;
    gap: 10px;
}

.form-contact label {
    position: relative;
}

.form-contact label .input-contact {
    background-color: #ffffff;
    color: #000000;
    width: 100%;
    padding: 20px 05px 05px 10px;
    outline: 0;
    border: 1px solid rgba(105, 105, 105, 0.397);
    border-radius: 10px;
}
.form-contact label textarea.input-contact {
    resize: none;
}
.form-contact label .input-contact + span {
    color: rgba(0, 0, 0, 0.5);
    position: absolute;
    left: 10px;
    top: 0px;
    font-size: 0.9em;
    cursor: text;
    transition: 0.3s ease;
}

.form-contact label .input-contact:placeholder-shown + span {
    top: 12.5px;
    font-size: 0.9em;
}

.form-contact label .input-contact:focus + span,
.form-contact label .input-contact:valid + span {
    color: #0A7D9C;
    top: 0px;
    font-size: 0.7em;
    font-weight: 600;
}

.input-contact {
    font-size: medium;
}
.submit-contact {
    border: none;
    outline: none;
    padding: 10px 30px; /* Menyesuaikan ukuran tombol */
    border-radius: 10px;
    transition: 0.3s ease;
    background-color: #12a9d3; /* Warna latar tetap ada */
    color: #000000;
    cursor: pointer;
    text-align: center;
    position: relative;
    overflow: hidden;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.5s ease-in-out;
}

.submit-contact::before {
    content: "Submit"; 
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(90deg, #000000, #000000);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
}

.submit-contact:hover {
    background-color: white;
}

.submit-contact:active {
    box-shadow: inset 0 16px 2px -15px rgba(0, 0, 0, 0);
    border: 2px solid #FFFFFF;
    background: linear-gradient(to bottom, #0A7D9C, #06556b, #02485c);
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.3);
    transition: all 0.5s ease-in-out;
    color: white;
}
