/* style.css */
html {
    color-scheme: light;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

@font-face {
    font-family: 'Poppins';
    src: url('fonts/Poppins/Poppins-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'Poppins';
    src: url('fonts/Poppins/Poppins-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}
@font-face {
    font-family: 'Poppins';
    src: url('fonts/Poppins/Poppins-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

html {
    font-family: 'Poppins', sans-serif;
    font-size: 62.5%;
    scroll-behavior: smooth;
}

/* When dark theme is active */
html[data-theme="dark"] {
    color-scheme: dark;
}

.centered-image {
    padding: 15px;
    max-height: 100vh;
    max-width: 100vw;
    display: block;
    margin: auto;
    text-align: center;
}

#moomoo-page {
    display: flex;
    flex-direction: column; /* Stacks items vertically */
    justify-content: center;
    align-items: center;
}

#moomoo-page h1{
    padding: 10px;
    margin: auto;
    width: 75%;
    text-align: center;
}

body {
    transition: background-color 0.3s,
    color 0.3s;
}

#theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    font-size: 1.5rem;
    position: absolute;
}

.theme-toggle-wrapper {
    position: fixed;
    right: 10px;
    bottom: 30px;
    transform: rotate(90deg);
    z-index: 1002;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.theme-toggle-wrapper:hover {
    opacity: 1;
}

.theme-switch {
    position: relative;
    display: inline-block;
    width: 72px; /* Reduced width */
    height: 24px; /* Reduced height proportionally */
}

.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #f1c40f;
    transition: .4s;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2.6px;
}

.switch-icon {
    font-size: 18px;
    line-height: 1;
    z-index: 1;
    transform: rotate(-90deg);
    visibility: visible;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 6px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    z-index: 2;
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #2c3e50;
}

input:checked + .slider:before {
    transform: translateX(42px);
}

.fixed-bg {
    display: none;
}

section {
    padding: clamp(2rem, 2vh, 6rem);
}

.zero-padding {
    padding: 0px;
    box-shadow: none;
}

h1 {
    font-size: clamp(2.8rem, 4vw, 6rem);
}

p {
    font-size: clamp(1.4rem, 2.1vw, 2.4rem);
}

/* Header */
#header {
    width: 100%;
    height: 75vh;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url("docs/assets/images/Ji_Headshot Horizontal\ \(small\).jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
    z-index: 2;
   /* clip-path: polygon(0% 0%, 100% 0%, 100% 75%, 50% 100%, 0% 75%); */
}

.container {
    padding: 2vh 10%;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    padding: clamp(0.5rem, 2vw, 1rem);
    transition: all 0.6s;
    flex-wrap: wrap;
    z-index: 1001;
}
.navbar-scrolled-visible{
    background: rgba(8,8,8,0.7);
}
.navbar-scrolled-visible:hover{
    background: rgba(8,8,8,0.95);
}

.logo {
    margin: clamp(1vh, 2vw, 1.5vh) 1vw 0;    
    width: auto;
    max-width: 30%;
    padding: clamp(0.5rem, 1vw, 1rem);
    z-index: 1001;
}

.logo img {
    display: block;
    max-width: 100%;
    height: auto;
}
.nav-links {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: nowrap;
    width: auto;
    padding: clamp(0.5rem, 1vw, 1rem);
}

.navbar-off {
    z-index: -1;
}

.navbar-off .logo img, 
.navbar-off .nav-links {
    opacity: 0;
    transition: all 0.7s ease;
    pointer-events: none;
}

.menu-icon {
    opacity: 0;
    visibility: hidden;
}

.hidden {
    opacity: 0;
    pointer-events: none;
}

nav ul li {
    display: inline-block;
    list-style: none;
    margin: 1vh 2.5vw;
    transition: all 0.5s ease;
}

nav ul li a {
    text-decoration: none;
    font-size: clamp(1.8rem, 3vw, 3.6rem);
    position: relative;
    transition: 0.4s ease opacity;
}

nav ul li a::after {
    content: '';
    width: 0;
    height: 3px;
    position: absolute;
    left: 0;
    bottom: -6px;
    transition: 0.5s;
}

nav ul li a:hover::after {
    width: 100%
}

nav:has(a:hover) a:not(:hover){
    opacity: 0.3;
}

#header-text {
    padding: 16vh 0;   
    font-size: clamp(3rem, 2vw, 6rem);
    position: relative;
    max-width: 65%;
    box-sizing: border-box;
    margin-top: clamp(2rem, 5vw, 6rem);
    z-index: 0;
}

#header-text h1 {
    font-size: clamp(3rem, 6.5vh-1rem, 5vw);
    z-index: 0;
}

/* About */
#about {
    padding: 4vh 0;
    position: relative;
    z-index: 0;
}

.row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: top;
}

.about-col-1 {
    flex-basis: 35%;
}

.about-col-1 img {
    width: 100%;
    border-radius: 15px;
}

.about-col-2 {
    flex-basis: 60%;
    font-size: clamp(1.4rem, 2vw, 2.4rem)
}

.sub-title {
    font-size: clamp(3rem, 5vw, 4.8rem);
    font-weight: 600;
}

.tab-titles {
    display: flex;
    margin: 20px 0 40px;
    gap: 15%;
}

.tab-links {
    font-size: clamp(2rem, 3vw, 4rem);
    font-weight: 500;
    cursor: pointer;
    position: relative;
    text-decoration: none;
}

.tab-links::after {
    content: '';
    width: 0;
    height: 3px;
    position: absolute;
    left: 0;
    bottom: -8px;
    transition: 0.5s;
}

.tab-links.active-link::after {
    width: 50%;
}

.tab-contents ul li {
    list-style: none;
    font-size: clamp(1.2rem, 2vw, 2rem);
    margin: 10px 0;
}

.tab-contents ul li span {
    font-size: clamp(1.4rem, 2vw, 2.4rem);
}

.tab-contents {
    display: none;
}

.tab-contents.active-tab {
    display: block;
}

.surprise-link {
    cursor: pointer;
}

/* Music */
#music {
    min-height: 65vh;
}

.videos-list {
    columns: 3;             
    column-gap: 2vw;        
    margin-top: 3vh;        
    margin-bottom: 5vh;    
}

.videos-list > div {
    break-inside: avoid;  
    margin-bottom: 2vw;   
    width: 100%;
}

iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 10px;
    min-width: calc(33%-2vw);
}

.videos-list iframe {
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.videos-list iframe:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.2);
}

.videos-list p{
    text-align: center;
}

.btn {
    display: block;
    margin: 20px auto;
    width: fit-content;
    padding: 14px 50px;
    border-radius: 6px;
    font-size: clamp(1.6rem, 2vw, 3.6rem);
    text-decoration: none;
    transition: background 0.5s;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn:hover{
    transform: translateY(-4px);
    text-shadow: 0.1rem 0.1rem 0.4rem rgba(0,0,0,0.13); 
    }

/* Other */
#other img {
    max-width: 40%;
    height: auto;
    margin: 20px 0;
    border-radius: 15px;
}

/* Contact */
input, textarea, button {
    font-family: inherit;
}

.contact-left {
    flex-basis: 35%;
}

.contact-right {
    flex-basis: 60%;
}

.contact-left p {
    margin-top: clamp(10px, 2vh, 30px);
}

.btn.btn2 {
    display: inline-block;
}

.contact-right form {
    width: 100%
}

form input, form textarea {
    width: 100%;
    padding: 15px;
    margin: 15px 0;
    border-radius: 6px;
    font-size: clamp(1.8rem, 2vw, 3.2rem);
}

form .btn.btn2 {
    padding: 14px 60px;
    font-size: clamp(1.8rem, 2vw, 3.2rem);
    margin-top: 2vh;
    cursor: pointer;
    position: relative;
}

.btn.btn2--loading {
    color: transparent;
    pointer-events: none;
}

.btn.btn2--loading::after {
    content: "";
    position: absolute;
    width: 24px;
    height: 24px;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    border: 4px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: button-loading-spinner 1s ease infinite;
}

@keyframes button-loading-spinner {
    from { transform: rotate(0turn); }
    to { transform: rotate(1turn); }
}

#msg {
    display: block;
    margin: 115px 150px 0 0;
    font-size: clamp(1.8rem, 2vw, 3.2rem);
}

.copyright {
    width: 100%;
    text-align: center;
    padding: 25px 0;
    font-weight: 300;
    margin-top: 20px;
}

/* Media query adjustments for mobile phones vertical */
@media only screen and (max-width: 600px) {
    .theme-toggle-wrapper {
        right: -10px;
        bottom: 25px;        
    }

    .theme-toggle-wrapper:active {
        opacity: 1; /* Full opacity when touched on mobile */
    }

    .theme-switch {
        width: 50px;
        height: 18px;
    }
  
    .slider:before {
        height: 14px;
        width: 14px;
        left: 2px;
        bottom: 2px;
    }

    .switch-icon {
        font-size: 10px;
    }

    input:checked + .slider:before {
        transform: translateX(31px);
    }
    
    .navbar {
        padding-left: clamp(0.5rem, 2vw, 1rem); /* Reset padding */
    }
    
/*swivel for menu*/
    @keyframes swivel-in {
        from {
            transform: rotateY(0deg);
            opacity: 0;
        }
        to {
            transform: rotateY(360deg); /* This will do 4 full spins (360 × 4) */
            opacity: 1;
        }
    }

    @keyframes swivel-out {
        from {
            transform: rotateY(0deg);
            opacity: 1;
        }
        to {
            transform: rotateY(-360deg);
            opacity: 0;
        }
    }

    .menu-icon, .close-icon {
        font-size: 3.2rem;
        cursor: pointer;
        opacity: 1;
        visibility: visible;
        display: block;
        position: absolute;
        top: 1rem;
        right: 5vw;
        z-index: 1001;
        transition: none;
        transform-origin: center;
    }
    
    .menu-icon:not(.hidden), .close-icon:not(.hidden) {
        animation: swivel-in 0.6s ease-in forwards;
    }

    .menu-icon.hidden, .close-icon.hidden {
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.2s ease, visibility 0.2s ease;
        animation: swivel-out 0.6s ease-in forwards;
    }

    .fixed-bg {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        min-height: 80vh;
        background: url("docs/assets/images/Mobile_background.jpg") no-repeat center center;
        background-position: 75% 80%;
        filter: brightness(80%);
        background-size: cover;
        z-index: -1;
        /* clip-path: polygon(0% 0%, 100% 0%, 100% 75%, 50% 87.5%, 0% 100%); */
    }   

    #header {
        position: relative;
        background: none;
        z-index: 1;
    }

    .navbar {
        flex-direction: row;
        align-items: center;
        padding: 0 0 0 5vw;
        z-index: 1001;
        transition: all 0.5s ease;
    }
    
    .navbar-scrolled-visible, .navbar-scrolled-visible:hover {
            background: rgba(8,8,8,0.85);
        }
    .menu-icon, .close-icon,
    .navbar-scrolled-visible .menu-icon,
    .navbar-scrolled-visible .close-icon {
        color: rgba(255,255,255, 0.85);
    }

    nav ul.show {
        background: rgba(8,8,8,0.85);
    }

    .logo {
        display: block;
        text-align: center;
        width: 100%;
    }

    .logo img {
        max-width: 40vw;
    }

    nav ul {
        opacity: 0;
        visibility: hidden;
        flex-direction: column;
        position: fixed;
        top: 80px;
        right: 0;
        width: 100%; 
        padding: 5px 0;
        text-align: center;
        transition: all 0.5s ease;
        pointer-events: none;
    }

    nav ul li {
        display: block;
        width: 100%;
        text-align: center;
        margin: 1.5vh 0;
        transition: opacity 0.5s ease;
    }

    nav ul.show {
        padding: 5px 0;
        display: block;
        visibility: visible;
        opacity: 1;
        transition: all 0.5s ease;
        pointer-events: auto;
        transform: translateY(10px);
    }

    #header-text {
        margin-top: 5vh;
        padding: 5vh 5vh 0 5vh;
        max-width: 100%;
    }
   
    #about {
        width: 100%;
        margin-top: 20 px;
        padding: 40px 0;
    }

    #about img {
        max-width: 100%;
        height: auto;
    }

    .about-col-1, .about-col-2 {
        flex-basis: 100%;
    }

    .about-col-1 {
        margin-top: 20px;
        margin-bottom: 10px;
    }

    .about-col-2 {
        margin-top: 0;
        font-size: 14px;
    }

    #music .sub-title{
        margin-bottom: -10px;
    }

    .videos-list {
        columns: 1;
        column-gap: 0;
        margin-bottom: 40px;
        margin-top: 30px;
    }

    .videos-list > div{
        margin-bottom: 30px;
    }
    
    .btn {
        padding: 12px 15px;
    }

    #other img {
        max-width: 100%;
        width: 100%;
        height: auto;
        margin: 10px 0;
    }

    #contact h1 {
        margin-top: 0;
    }

    .contact-left, .contact-right {
        flex-basis: 100%;
    }

    .contact-left{
        padding: 10px;
    }

    .contact-left p{
        margin-top: 10px;
    }

    form textarea, form input {
        padding: 10px;
        margin: 10px 0;
        border-radius: 4px;
    }

    form .btn.btn2 {
        padding: 8px 24px;
        margin-top: 12px;
    }
 
    #msg {
        width: 100%;
        margin-top: 20px;
    }

    svg.lucide {
        width: 18px;
        height: 18px;        
    }
}

@media only screen and (min-width: 601px) and (max-width: 1439px) {
    h1 {
        margin-top: 10px;
    }

    .menu-icon, .close-icon {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

    #header {
        width: 100%;
        min-height: 60vh;
    }

    .navbar {
        flex-direction: column;
        align-items: center;
    }

    .logo {
        padding-bottom: 0;
        text-align: center;
    }

    .nav-links {
        width: 100%;
        justify-content: center;
        padding-top: 0;
        flex-wrap: wrap;
    }

    #header-text {
        max-width: 80%;
    }

    #about {
        width: 100%;
        margin-top: 60 px;
        padding: 60px 0;
    }

    .tab-titles {
        flex-direction: column;
        gap: 10px;
        margin: 20px 0 30px;
    }

    .tab-links {
        margin-right: 0;
        margin-bottom: 10px;
    }

    #music {
        padding: 40px 0;
    }

    #other {
        padding: 30px 0;
    }

    #other img {
        margin: 15px 0;
    }

    #contact {
        padding: 30px 0;
    }

    .contact-right{
        margin-top: 10px;
    }

    form input, form textarea {
        padding: 12px;
        margin: 12px 0;
        border-radius: 5px;
    }

    form .btn.btn2 {
        padding: 10px 32px;
        margin-top: 14px;
    }

    #msg {
        display: block;
        margin: 80px;
        width: 100%;
    }
}

@media (orientation: landscape) and (max-width: 1439px) {
    #header {
        min-height: 100vh;
        width: 100%;
    }

    .navbar {
        padding: clamp(1rem, 2vh, 2rem);
    }

    .logo {
        margin: 0;
        padding: 0;
    }

    .nav-links {
        padding: 0;
        margin-top: clamp(-3rem, -3vh, -2rem);
    }

    nav ul li {
        margin: 0 3vw 0;
    }

    .menu-icon, .close-icon {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

    #header-text {
        padding: 20vh 15vw 0 8vw;   
        position: relative;
        max-width: 85%;
        box-sizing: border-box;
    }

    #header-text h1 {
        font-size: clamp(3rem, 7.5vh, 5.5rem);
    }

    #music .sub-title{
        margin-bottom: -3vh;
    }

    .videos-list {
        margin-bottom: 5vh;
        margin-top: 5vh;
    }

    .videos-list > div{
        margin-bottom: 4vh;
    }
    
    .btn {
        padding: 12px 15px;
    }
}