@import url('https://fonts.googleapis.com/css2?family=Knewave&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Share+Tech&display=swap');

:root{
    --color-primary: #1a2a44;
    --color-gold: #c5a059;
    --color-parchment: #fdf5e6;
    --bg-primary-text: #fff;
    --color-to-gradiant: #d4af37;
}

body{
    background-image: url('Gemini_Generated_Image_ewshrgewshrgewsh.png');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    margin: 0;
    padding: 0;
}

.menu-link, h1, h2, p{
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

h1, h2{
    font-family: "Knewave", system-ui; 
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
}

h1{
    color: #e62429; 
    text-shadow: 
        -2px -2px 0 #000,  
         2px -2px 0 #000,
        -2px  2px 0 #000,
         2px  2px 0 #000,
         4px  4px 10px rgba(0,0,0,0.8);
    font-family: "Knewave", system-ui;
    text-transform: uppercase;
}

header h1{
    color: #e62429 !important; 
    text-shadow: 
        -2px -2px 0 #000,  
         2px -2px 0 #000,
        -2px  2px 0 #000,
         2px  2px 0 #000,
         4px  4px 10px rgba(0,0,0,0.8) !important;
         
    font-size: clamp(2em, 8vh, 5em);
}

header p:not(.grand-line){
    color: #000 !important;
    text-shadow: 
        -1px -1px 0 #a83232,  
         1px -1px 0 #a83232,
        -1px  1px 0 #a83232,
         1px  1px 0 #a83232,
         2px 2px 6px rgba(0,0,0,0.5) !important;      
    font-size: clamp(1.1rem, 3vh, 1.5rem) !important;
    font-weight: 700;
}

.grand-line{
    color: #000 !important;
    text-shadow: 
        -0.8px -0.8px 0 #a83232,  
         0.8px -0.8px 0 #a83232,
        -0.8px  0.8px 0 #a83232,
         0.8px  0.8px 0 #a83232,
         1px 1px 4px rgba(0,0,0,0.4) !important;
    font-size: clamp(0.9rem, 2.5vh, 1.2rem) !important;
    font-weight: 600 !important;
}

.skill{
    font-size: 1.5em;
    font-family: "Knewave", system-ui;
    color: var(--color-primary);
}

*{
    margin: 0;
    padding: 0;
}

p{
    font-size: clamp(1rem, 2.5vh, 1.2rem);
    font-family: "Roboto", sans-serif;
    color: #ffffff;
    line-height: 1.8;
    text-shadow: 
        -1px -1px 0 #000,  
         1px -1px 0 #000,
        -1px  1px 0 #000,
         1px  1px 0 #000,
         2px 2px 5px rgba(0,0,0,0.8) !important;
    text-align: justify;
}

h2{
    font-size: clamp(1.8rem, 5vh, 3rem) !important;
    text-shadow: 1px 1px 0px #fff;
    font-family: "Knewave", system-ui;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.bg-primary{
    background-color: transparent !important;
    color: white;
}

button{
    background: linear-gradient(45deg, var(--color-primary), #2c3e50);
    border: 2px solid var(--color-gold);
    box-shadow: 0 4px 0px #8e6d13;
    transition: all 0.2s;
    cursor: pointer;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
}

button:active{
    transform: translateY(4px);
    box-shadow: none;
}

.grid{
    display: grid;
    grid-template-columns: 1fr;
    padding: 5dvh 10dvw;
    gap: 5dvw;
}

@media(min-width: 768px){
    .grid-1-1-1{
        grid-template-columns: 1fr 1fr 1fr;
        gap: 5dvw;
    }
    .grid-2-1{
        grid-template-columns: 2fr 1fr;
        gap: 5dvw;
    }
}

.v-padding{
    padding-top: 5vh;
    padding-bottom: 5vh;
}

.text-center{
    text-align: center;
}

nav{
    background-color: transparent;
    position: sticky;
    z-index: 1000;
    top: 0;
}

.menu-container, .hamburger-group{
    display: flex;
    min-height: 8dvh;
    justify-content: space-evenly;
    align-items: center;
    font-size: 2em;
}

.hamburger-group{
    display: none;
    justify-content: end;
    padding-right: 3dvw;
}

.label-toggle{
    color: #fff;
}

nav:has(#menu-toggle:checked) .menu-container{
    display: flex;
}

#menu-toggle{
    display: none;
}

@media (max-width: 768px){
    .menu-container {
        display: none;
        flex-direction: column;
        width: 100%; 
        background: rgba(0,0,0,0.8);
        gap: 20px;
        padding: 25px 0;
    }
    .hamburger-group {
        display: flex;
    }
}

section.grid{
    background-color: transparent;
    margin: 20px 5dvw;
    border-radius: 15px;
    padding: 30px;
}

.bg-dark{
    background-color: transparent !important;
    display: flex;
    flex-direction: column; 
    justify-content: flex-end;
    align-items: center;
    min-height: 15vh;
    padding-bottom: 10px;
}

.bg-dark p {
    color: #000000 !important;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8) !important;
    font-weight: 600;
    letter-spacing: 1px;
}

.shadow{
  filter: drop-shadow(0 5px 10px rgba(0,0,0,0.5));
}

.card{
    display: flex;
    background-color: #fff9ed;
    position: relative;
}

.card img{
    border-radius: 10px 10px 0 0;
    width: 100%;
    height: auto;
}

.card h3{
    font-size: clamp(1em, 4vh, 2em);
    padding: 0 2dvh;
}

.card p{
    font-size: 1em;
    padding: 2dvh;
}

.tag{
    background-color: var(--color-to-gradiant);
    color: #fff;
    padding: 5px 15px;
    border-radius: 15px;

}

.card:hover{
    background-color: var(--color-primary);
    color: #fff;
    filter: brightness(1.2);
}

.skill progress{
    border-radius: 2dvh;
    border: 0;
    width: 100%;
    height: 2dvh;
}

form{
    display: flex;
    flex-direction: column;
    gap: 1dvh;
}

label{
    font-size: 1em;
    font-family: "Roboto", sans-serif;
}

input, textarea{
    border-radius: 5px;
    border: 1px solid #3d62b3;
    padding: 2px 10px;
}

input{
    height: 3dvh;
}

textarea{
    height: 20dvh;
}

.profile-pic{
    width: 200px;
    height: 200px;
    border-radius: 50% !important;
    object-fit: cover;
    border: 2px solid #000 !important;
    box-shadow: 10px 10px 0px #e62429 !important;
    filter: none !important;
    margin-bottom: 20px;
}

.wanted-container p {
    background-color: #fdf5e6 !important;
    color: #3e2723 !important;
    padding: 20px !important;
    padding-top: 40px !important;
    border: 8px double #3e2723 !important;
    border-radius: 5px;
    box-shadow: 5px 5px 15px rgba(0,0,0,0.3);
    text-shadow: none !important;
    font-family: 'Knewave', cursive !important;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 250px;
    position: relative;
}

.wanted-container p::before{
    content: "WANTED";
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
    color: #e62429;
    letter-spacing: 3px;
}

.wanted-container p::after {
    display: block;
    margin-top: auto;
    padding-top: 15px;
    text-align: center;
    font-weight: bold;
    font-family: 'Share Tech', sans-serif;
    border-top: 1px dashed #3e2723;
}

#prime-1::after{
    content: "฿ 22,222,222";
}

#prime-2::after{
    content: "฿ 157,800,000";
}

#prime-3::after{
    content: "฿ 2,358,441,976";
}

.island-card{
    background-color: #fdf5e6 !important;
    border: 3px solid #3e2723 !important;
    flex-direction: column !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    overflow: hidden;
    padding: 0 !important;
}

.island-card:hover{
    transform: translateY(-10px) rotate(1deg);
    box-shadow: 0 15px 30px rgba(0,0,0,0.5) !important;
    filter: none !important;
}

.island-header{
    background-color: #3e2723;
    color: #fff;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.island-header h3{
    margin: 0;
    font-family: 'Knewave', cursive;
    font-size: 1.2rem;
}

.island-card img{
    border-bottom: 3px solid #3e2723;
    height: 200px;
    object-fit: cover;
}

.card-body{
    padding: 15px;
    color: #3e2723 !important;
}

.card-body p{
    color: #3e2723 !important;
    text-shadow: none !important;
    font-size: 0.9rem !important;
}

.btn-action{
    display: inline-block;
    margin-top: 10px;
    padding: 8px 15px;
    background-color: #e62429;
    color: white !important;
    text-decoration: none;
    border-radius: 5px;
    font-family: 'Knewave', cursive;
    text-transform: uppercase;
}

.journal-subtitle{
    font-size: 1rem !important;
    margin-top: 50px !important; 
    text-align: left;
    margin-left: 15%;
    font-style: italic;
    opacity: 0.8;
}

body.portfolio-bg{
    background-image: url('expédition.jpg') !important;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

body.portfolio-bg .menu-link {
    color: #9b59b6 !important;
    text-shadow: 0 0 6px rgba(100, 36, 125, 0.6);
}

body.portfolio-bg::before{
    content: "";
    position: fixed;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: -1;
}

body.portfolio-bg h1{
    color: #1a2a44 !important;
    text-shadow: 
        -2px -2px 0 #c5a059,  
         2px -2px 0 #c5a059,
        -1px  1px 0 #c5a059,
         1px  1px 0 #c5a059,
         4px 4px 8px rgba(0,0,0,0.6) !important;
}

body.portfolio-bg .journal-subtitle{
    font-size: 1.2rem !important;
    color: #fdf5e6 !important; 
    text-shadow: 2px 2px 4px rgba(0,0,0,0.9) !important;
    margin-top: 50px !important; 
    text-align: left;
    margin-left: 20%; 
    font-style: italic;
    opacity: 0.9;
}

body.portfolio-bg .island-header{
    background-color: #1a2a44 !important;
    border-bottom: 2px solid #c5a059;
}

body.portfolio-bg .island-header h3{
    color: #fdf5e6 !important;
}

body.portfolio-bg .btn-action{
    background-color: #c5a059 !important;
    color: #1a2a44 !important;
    font-weight: bold;
}

body.portfolio-bg .btn-action:hover{
    background-color: #1a2a44 !important;
    color: #c5a059 !important;
    border: 1px solid #c5a059;
}

body.skills-bg .menu-link{
    color: #ac0e0e !important;
    text-shadow: 0 0 10px rgba(155, 89, 182, 0.5);
}

body.skills-bg{
    background-image: url('font\ compétence.jpg') !important;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
}

body.skills-bg::before{
    content: "";
    position: fixed;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

.skills-container{
    max-width: 800px;
    margin: 50px auto;
    padding: 0 20px;
}

.skill-card{
    margin-bottom: 35px;
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #9b59b6;
}

.skill-info{
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-family: 'Knewave', cursive;
    letter-spacing: 1px;
}

.skill-name{
    color: #fdf5e6;
    font-size: 1.1rem;
}

.skill-percentage{
    color: #9b59b6;
}

.skill-bar-bg{
    width: 100%;
    height: 12px;
    background-color: #333;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #444;
}

.skill-bar-fill{
    height: 100%;
    background: linear-gradient(90deg, #8e44ad, #9b59b6);
    box-shadow: 0 0 15px rgba(155, 89, 182, 0.7);
    border-radius: 10px;
    animation: loadSkill 2s ease-out;
}

@keyframes loadSkill{
    from { width: 0%; }
}

.alliance-bar{
    background: linear-gradient(90deg, #e62429, #ffd700) !important;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6) !important;
}

body.skills-bg h1{
    color: #9b59b6 !important; 
    text-shadow: 
        0 0 10px rgba(155, 89, 182, 0.8),
        2px 2px 0px #000 !important;
}

body.skills-bg .journal-subtitle{
    color: #a0e9ff !important; 
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.8) !important;
}

body.skills-bg .skill-name{
    color: #ffffff !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

body.skills-bg .skill-bar-bg{
    background-color: rgba(0, 0, 0, 0.6) !important;
    border: 1px solid rgba(255, 215, 0, 0.3);
    box-shadow: inset 0 0 10px #000;
}

body.skills-bg .skill-bar-fill{
    background: linear-gradient(90deg, #1a2a44, #3498db) !important;
    box-shadow: 0 0 15px rgba(52, 152, 219, 0.7) !important;
}

body.skills-bg .alliance-bar{
    background: linear-gradient(90deg, #c5a059, #ffd700) !important;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.8) !important;
}

body.skills-bg .skill-percentage{
    color: #ffd700 !important;
    font-weight: bold;
}

body.skills-bg .skill-card{
    background: rgba(26, 42, 68, 0.8) !important;
    border-left: 5px solid #ffd700 !important;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
    backdrop-filter: blur(5px);
}

body.skills-bg .menu-link:hover {
    color: rgb(155, 89, 182) !important;
    text-shadow: 
        0 0 10px rgba(155, 89, 182, 0.8), 
        0 0 20px rgba(155, 89, 182, 0.4) !important;
    background-color: transparent !important;
    box-shadow: none !important;
    transition: all 0.3s ease;
}

body.skills-bg .menu-link::after {
    display: none !important;
}
.menu-item{
    display: inline-block;
    vertical-align: middle;
}

.menu-link{
    display: inline-block;
    position: relative;
    text-decoration: none;
    padding: 5px 10px;
}

.menu-link::after{
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    transition: width 0.3s ease;
}

body.skills-bg .menu-link::after{
    background: #00d4ff;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

body.home-bg .menu-link{
    color: #000000 !important;
    background-color: transparent !important;
    text-shadow: none !important;
}

body.home-bg .menu-link:hover{
    color: #000000 !important; 
    background-color: transparent !important;
    box-shadow: none !important;
}

body.home-bg .menu-link{
    color: #000000 !important;
    background-color: transparent !important;
    text-shadow: none !important;
    transition: all 0.3s ease;
}

body.home-bg .menu-link:hover{
    color: #e62429 !important;
    background-color: transparent !important;
    box-shadow: none !important;
    text-shadow: 
        0 0 5px #ffd700, 
        0 0 10px #ffd700, 
        0 0 20px #ffd700 !important;
}

body.portfolio-bg .menu-link:hover{
    color: #1a2a44 !important;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.8) !important;
    background-color: transparent !important;
    box-shadow: none !important;
    transition: 0.3s ease;
}

body.portfolio-bg .menu-link::after{
    display: none !important;
}

body.contact-bg{
    background-image: url('projet2.jpg') !important;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

body.contact-bg h1{
    color: #fdf5e6 !important;
    text-shadow: 
        0 0 10px rgba(0, 212, 255, 0.6),
        2px 2px 4px rgba(0, 0, 0, 0.9) !important;
}

body.contact-bg .journal-subtitle{
    color: #00d4ff !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8) !important;
    font-weight: bold;
    opacity: 1 !important;
}

body.contact-bg::before{
    content: "";
    position: fixed;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

body.contact-bg .menu-link{
    color: #00d4ff !important;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

body.contact-bg .menu-link:hover{
    color: #ffffff !important;
    text-shadow: 0 0 15px #00d4ff !important;
    background-color: transparent !important;
}

.contact-container{
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
}

.form-wrapper{
    background: rgba(253, 245, 230, 0.9);
    padding: 30px;
    border: 5px double #3e2723;
    border-radius: 10px;
    color: #3e2723;
}

.form-wrapper label{
    font-weight: bold;
    font-family: 'Share Tech', sans-serif;
    margin-top: 10px;
}

.btn-denden{
    margin-top: 20px;
    background: #00d4ff !important;
    border: 3px solid #00a8cc !important;
    font-family: 'Knewave', cursive;
    font-size: 1.2rem;
    color: white !important;
    transition: 0.3s;
}

.btn-denden:hover{
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.6);
}

.status{
    color: #00d4ff;
    font-weight: bold;
    animation: blink 1.5s infinite;
}

@keyframes blink{
    0% { opacity: 1; }
    50% { opacity: 0.3; }
    100% { opacity: 1; }
}

@media (max-width: 480px) {
    body.contact-bg {
        background-attachment: scroll;
    }
}