
:root {
    --yellow: #f6d365;
    --black: #333333;
    --white: #ffffff;
}


* { 
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

.container {
    max-width: 1320px;
    margin: 0 auto;
}

.hamburger {
    color :#241d1d;
    font-size: 1.5rem;
    cursor: pointer;
    position: absolute;
    right: 0;
}

/* header section */
.home header {
    height: 1000px;
    background: url(../img/ads.gif);
    background-repeat: no-repeat;
    background-size:cover;
    background-attachment:fixed ;
    background-position: center;
    align-items: center;
}

header {
    height: 1000px;
    background: none;
    align-items: center;
}
nav {
    margin: 0 2rem;
}
.nav-wrapper {
    position: relative;
    height: 200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {

}

.menu {
    display: flex;
    list-style: none;
}

.menu a {
    margin-left: 50px;
    color: var(--black);
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}
body.home .menu a:hover {
    color: #ffd9d2;
    transform: scale(1.1);
}

body.Educational-Level .menu a:hover {
    color: #6a5acd;
    transform: scale(1.1);
}

body.Talent .menu a:hover {
    color: #ff2222; 
    transform: scale(1.1);
}

body.About .menu a:hover {
    color: #1e90ff; 
    transform: scale(1.1);
}

body.Contact .menu a:hover {
    color: var(--yellow); 
    transform: scale(1.1);
}
@media screen and (min-width: 768px) {
    .hamburger {
        display: none;
    }
}

@media screen and (max-width: 768px) {
    header {
        height: auto;
        padding: 3rem 0;
    }

    nav .nav-wrapper {
        flex-direction: column;
        align-items: start;
        margin: 3rem 0;
        height: auto;
    }

    .menu.show {
        display: flex;
    }

    .menu {
        display: none;
        flex-direction: column;
    }

    .menu li {
        margin-left: 0;
        margin-top: 2rem;
    }
}

.Introduce-title .Introduce-title-wrapper {
    color:rgb(76, 76, 64);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.Introduce-title-box {
    width: 55rem;
    margin: 0.625rem;
}

.Introduce-title-box h1 {
    color:rgb(76, 76, 64);
    font-size: clamp(2rem, 10vw, 6rem);
    text-transform: uppercase ;
    animation: fadeSlideUp 1.5s ease-out forwards;
}
@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.Introduce-title-box p {
    color:rgb(76, 76, 64);
    font-size: clamp(1rem, 10vw, 2rem);
    animation: fadeSlideUp 1.5s ease-out forwards;
}
@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.Introduce-btn {
    background-color: #d2c7a6;
    color: var(--black);
    max-width: 320px; 
    width: 100%;
    height: 65px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-transform: uppercase ;
    text-decoration: none ;
    font-weight: bold;
    border-radius: 5px;
    margin-top: 60px;
    animation: fadeSlideUp 1.5s ease-out forwards;
}
@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Educational-Level section*/
.Educational-Level header {
    height: 1000px;
    background: url(../img/Illustration104\ -\ Copy.gif);
    background-repeat: no-repeat;
    background-size:cover;
    background-attachment:fixed ;
    background-position: center;
    align-items: center;
}

header {
    height: 1000px;
    background: none;
    align-items: center;
}

.Educational-Level-title {
    
    margin: 3rem 0;
    text-align: center;
     text-transform: uppercase ;
     -webkit-text-stroke:1px #ad35c8;
     font-size: clamp(1.685rem, 10vw, 2rem);
     animation: colorShift 2s linear infinite alternate;
}
@keyframes colorShift {
    from {
        color: purple;
    }
    to {
        color: yellow;
    }
}
.Educational-Level-title h1 {
    font-size: clamp(3rem, 10vw, 3.875rem);
}

.Educational-Level-title p {
    font-size: clamp(1rem, 10vw, 1.625rem);
    text-transform: uppercase ;
}

.Educational-Level-grid {
    display:  grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem ;
}
.Educational-Level-items {
    text-align: center;
    -webkit-text-stroke: 1px #c8b735;
    
    img {
        width: 75%;
        border-radius: 50px;
    }
    h3 {
        font-size: clamp(1.685rem, 10vw, 2rem);
        margin: 1rem 0;
        animation: colorShift 2s linear infinite alternate;
    }
    p {
        font-size: clamp(1.47rem, 10vw, 1.25rem);
        animation: colorShift 2s linear infinite alternate;
    }
}
@media screen and (max-width: 768px) {
    .Educational-Level header {
        height: auto;
        padding: 3rem 0;
    }
}

/* Talent section*/
.Talent header {
    height: 1000px;
    background: url(../img/Illustration116.gif);
    background-repeat: no-repeat;
    background-size:cover;
    background-attachment:fixed ;
    background-position: center;
    align-items: center;
}
.Talent menu {
    margin: 0 2rem;
    -webkit-text-stroke: 1px #ff0000;
}
.Talent-wrapper {
    display: flex;
    align-items: center;
    height: 800px;
}
.Talent-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    }
    .Talent-img {
            width: 100%;
            border-radius: 50px;
            position: relative;
            animation: glitch 1s infinite;
}
@keyframes glitch {
    0% {
        clip: rect(42px, 9999px, 44px, 0);
        transform: translate(-5px, -5px);
    }
    10% {
        clip: rect(85px, 9999px, 90px, 0);
        transform: translate(5px, 0);
    }
    20% {
        clip: rect(10px, 9999px, 80px, 0);
        transform: translate(-5px, 5px);
    }
    30% {
        clip: rect(40px, 9999px, 100px, 0);
        transform: translate(5px, -5px);
    }
    40%, 100% {
        clip: rect(0, 9999px, 150px, 0);
        transform: translate(0, 0);
    }
}
    .Talent-info {
        max-width: 580px;
        width: 100%;
        color: ver(#2c1313);
        padding: 1rem;

        h2 {
            font-size: clamp(2rem, 10vw, 3.75rem);
            text-transform: uppercase;
            color: transparent;
            -webkit-text-stroke: 1px #cd7c7c;
        }
        
        }

        p {
            font-size: clamp(2rem, 10vw, 1.8rem);
            margin-top : 2rem;
            -webkit-text-stroke: 1px #cd7c7c;
        }

        .Talent-btn {
            animation: vibrate 0.5s linear infinite;
            background-color: #902929;
            -webkit-text-stroke: none;
    color: var(--black);
    max-width: 320px; 
    width: 100%;
    height: 65px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-transform: uppercase ;
    text-decoration: none ;
    font-weight: bold;
    border-radius: 5px;
    margin-top: 60px;
        }
@keyframes vibrate {
    0% { transform: translate(0); }
    25% { transform: translate(1px, -1px); }
    50% { transform: translate(-1px, 1px); }
    75% { transform: translate(1px, 1px); }
    100% { transform: translate(0); }
}

/* About section*/
.About {
    height: 1000px;
    background: url(../img/วันเกิดแซล.jpg);
    background-repeat: no-repeat;
    background-size:cover;
    background-attachment:fixed ;
    background-position: center;
    align-items: center;
}
.About-title h2{
    margin: 3rem 0;
    text-align: center;
     text-transform: uppercase ;
     -webkit-text-stroke:0.5px #004658;
     color:rgb(100, 151, 175);
     font-size: clamp(1.685rem, 10vw, 3.5rem);
     
}
.About-title p{
    margin: 2rem 0;
    text-align: center;
     text-transform: uppercase ;
     -webkit-text-stroke:0.5px #043440;
     color:rgb(136, 209, 243);
     font-size: clamp(0.625rem, 10vw, 1.4rem);
}
.About-grid {
    display:  grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem ;
}
.About-grid-items {
    text-align: center;
    -webkit-text-stroke:0.3px #7fa7b1;
     color:rgb(43, 81, 99);
    img {
        width: 500px;
        height: 350px;
        border-radius: 50px;
        background-attachment: fixed;
    }
    video {
        width: 500px;
        height: 350px;
        border-radius: 50px;
    }
    h3 {
        font-size: clamp(1.685rem, 10vw, 2rem);
        margin: 1rem 0;
        
    }

}
.About-grid-items p {
    font-size: clamp(1.47rem, 10vw, 1.25rem);
    -webkit-text-stroke:0.3px #7fa7b1;
}
@media screen and (max-width: 768px) {
    .About header {
        height: auto;
        padding: 3rem 0;
    }
}

/* contact section */
.Contact header {
    height: 1000px;
    background: url(../img/แหแหแหแ.jpg);
    background-repeat: no-repeat;
    background-size:cover;
    background-attachment:fixed ;
    background-position: center;
    align-items: center;
}
.contact-wrapper {
    display: flex;
    align-items: center;
    height: 800px;
}
.contact-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;

    img {
        width: 50%;
        border-radius: 50px;
    transform: translateX(30px); 
    transition: transform 0.5s ease;
    }
}
.contact-box img:hover {
    transform: translateX(100px);
}
.contact-info {
    max-width: 580px;
    width: 100%;
    padding: 1rem;

     h1 {
            font-size: clamp(2rem, 10vw, 3.75rem);
            text-transform: uppercase;
            color: var(--black);
        }
        }
    .contact-info p  {
            font-size: clamp(2rem, 10vw, 1.8rem);
            margin-bottom: 20px;
            margin-top : 2rem;
            color: var(--black);
            -webkit-text-stroke: 0.5px #7e7971;
}
.social-icon a i {
    font-size: 3rem; 
    color: var(--black); 
    margin-right: 1.5rem; 
    transition: transform 0.3s ease;
}

.social-icon a i:hover {
    transform: scale(1.2); 
    color: var(--yellow); 
}
.music-player {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.record {
    position: relative;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle at center, #000 30%, #333 70%);
    border: 6px solid #444;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    animation: spin 3s linear infinite;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

.record.paused {
    animation-play-state: paused;
}

.record i {
    font-size: 40px;
    color: var(--yellow);
    pointer-events: none;
}

#volumeControl {
    margin-left: 15px;
    width: 120px;
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.transition {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

.transition-row {
    display: flex;
    width: 100%;
    height: 50%; /* ครึ่งหน้าจอ */
    overflow: hidden;
}

.block {
    flex: 1;
    background-color: inherit; /* ใช้สีจาก JS */
    transform: scaleY(0);
    transform-origin: top;
}
.row-2 .block {
    transform-origin: bottom;
}
.gallery-box {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.37);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 15px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 10px;
  max-width: 700px;
  width: 90%;
  aspect-ratio: 16 / 9; /* ✅ ทำให้ box เป็น 16:9 พอดี */
}

.gallery-box video {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  object-fit: cover; /* ✅ ทำให้วิดีโอเต็มพื้นที่ box */
  cursor: pointer;
  transition: transform 0.3s ease;
}

.gallery-box video:hover {
  transform: scale(1.05);
}
