/* Global Style Rules */

.m-plus-rounded-1c-regular {
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.placeholder {
    font-size: 0.8em;
    color: #888;
    text-align: left;
    margin-top: 1em;
    padding-left: 20px;
    margin-bottom: -5em;
}

body{
    margin: 0 auto;
    padding: 0;
    max-width: 2560px;
    width: 100%;
    font-size: 22px;
    font-family: "M PLUS Rounded 1c", sans-serif;
    overflow-y: scroll;
    overflow-x: hidden;
    box-sizing: border-box;
}

section{
    padding: 3em 6em;
}

.flex-container{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.image{
    margin-top: -2em;
    display: flex;
    align-items: stretch; /* make children match height */
    justify-content: center;
    gap: 2rem;
    padding-bottom: 2em;
    border-bottom: 3px dotted #232323;
}


h2{
    font-family: 'Anton', Tahoma, sans-serif;
    text-align: center;
    font-size: 3em;
    font-weight: bold;
    margin-top: 1em;
}

h3{
    text-align: center;
    font-size: 2em;
    font-weight: bold;
    margin-top: 1em;
}

a{
    color: #ffffff;
    display: inline-block;
    transition: transform 0.25s ease-in-out, color 0.25s ease-in-out;
}

a:hover{
    transform: scale(1.08);
    color: #bdbdbd;
}
.btn{
    background-color: red;
    color: #ffffff;
    border: 3px solid black;
    text-decoration: none;
    display: inline-block;
    font-size: 1em;
    padding: 1em;
    border-radius: 25px;
}

.btn:hover{
    background-color: darkred;
}

header{
    display: flex;
    flex-direction: row;
    justify-content:baseline;
    background-color: #232323;
    padding: .5em;
}

header img{
    width: 120px;
    color: #ffffff;
    transition: transform 0.25s ease-in-out, box-shadow 0.25s ease-in-out;
}

header img:hover {
    transform: rotate(-20deg) scale(1.1);
}

nav li{
    display: inline;
    text-align: right;
    padding: .5em;
}

nav li a{
    text-decoration: none;
    font-weight: bold;
    color: #FFFFFF;
    font-size: 1.5em;
}

.aboutme{
    display: flex;
    justify-content: space-around;
}

/* .aboutme h1{
    text-align: center;
} */

/* .aboutme h2{
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
} */

/* PCITUERSSSS */

.picture{
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.picture img{
    width: auto;
    max-height: 500px;
} 

.top_flexbox{
    align-content: flex-start;
}

.flex{
    display: flex;
    flex-direction: row;
}

/* Top Section */

.image{
        margin-top: -2em;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6rem;
        padding-bottom: 2em;
        border-bottom: 3px dotted #232323;
}

/* h1{
    display: flex; 
    place-items: center;
    justify-content: center;
} */

.image img{
    max-height: 550px;
    max-width: auto;
    height: auto;
    width: auto ;
    flex: 0 0 auto;
    transition: ease-in-out 0.3s;
}

.image img:hover{
    transform: scale(1.02);
}

.side-box{
    flex: 1 1 0;
    min-height: 500px;
    min-width: 160px; 
    display: flex;
    flex-direction: column;
    gap: .5rem;
    padding: 1rem;
    background: linear-gradient(180deg, rgba(18,18,20,0.95) 0%, rgba(36,36,40,0.92) 100%);
    border-radius: 25px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    justify-content: flex-start;
    transition: transform 260ms ease, box-shadow 260ms ease, outline 260ms ease;
    position: relative;
    overflow: visible;
}

.side-box h3 {
    color: #ffffff;
}

.right-box{ margin-right: 5em}
.left-box{ margin-left: 5em}
.side-box h3{ margin: 0; font-size: 1.2em; }
.side-box p{ margin: 0; font-size: 0.95em; }

/* hover lift for glass card */

.side-box:hover{
    transform: translateY(-6px);
    transform: scale(1.015);
    box-shadow: 0 18px 40px #6e00008c;
    background: linear-gradient(180deg, rgba(36,36,40,0.98) 0%, rgba(56,56,60,0.94) 100%);
}

/* typewriter */

.typewriter{
    display: inline-block;
    white-space: wrap;
    overflow: hidden;
    border-right: 2px solid rgba(255,255,255,0.95);
    padding-right: 6px;
    min-height: 1.2em;
    font-weight: 600;
    line-height: 1.25;
}

.typewriter.glass{
    color: #f5fbff;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    text-shadow: 0 4px 8px rgba(0,0,0,0.55), 0 1px 0 rgba(255,255,255,0.03);
    font-weight: 700;
    padding: 0.15rem 0.4rem;
    border-radius: 6px;
    background-color: rgba(0,0,0,0.10);
    backdrop-filter: blur(10px) saturate(120%);
}

.particle{
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    pointer-events: none;
    mix-blend-mode: screen;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    will-change: transform, opacity;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.95), rgba(255,255,255,0.6));
    animation: particleMove 420ms cubic-bezier(.2,.8,.2,1) forwards;
}

@keyframes particleMove{
    0%{ opacity: 1; transform: translate(-50%, -50%) scale(1); }
    100%{ opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(0.2); }
}

.side-box{ position: relative; overflow: hidden; }
.side-box > * { position: relative; z-index: 3; }

.side-box::before{
    content: '';
    position: absolute;
    inset: 0;
    padding: 2px; /* outline */
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(180deg,
        rgba(255,255,255,0.06) 0%,
        rgba(255,255,255,0.02) 6%,
        rgba(18,18,20,0.36) 45%,
        rgba(12,12,14,0.6) 100%);
    border: 1px solid rgba(255,255,255,0.03);
    box-shadow: 0 10px 24px rgba(0,0,0,0.6), inset 0 2px 6px rgba(255,255,255,0.02);
    filter: blur(4px);
    mix-blend-mode: overlay;
    -webkit-mask: linear-gradient(#fff,#fff) content-box, linear-gradient(#fff,#fff);
    -webkit-mask-composite: xor;
    mask:
        linear-gradient(#fff,#fff) content-box,
        linear-gradient(#fff,#fff);
    mask-composite: exclude;
    animation: shimmer 8s linear infinite;
    animation-delay: var(--shimmer-delay, 0s);
    z-index: 1;
}

.side-box::after{
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(0,0,0,0.22) 0%, rgba(255,255,255,0.02) 30%, transparent 55%);
    mix-blend-mode: overlay;
    opacity: 0.9;
    transform: translateZ(0);
    z-index: 2;
}

@keyframes shimmer{
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

@keyframes floatY{
    0% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
    100% { transform: translateY(0); }
}

@keyframes glowPulse{
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

.glass-animated{
    animation: floatY 6s ease-in-out infinite;
}

/* Projects */


.projects{
    display: flex;
    flex-direction: column;
    width: 80%;
    margin: auto;
}

.projects{
    margin: 2em auto;
    border: 2px solid #181818;
    background: linear-gradient(180deg, rgba(18,18,20,0.95) 0%, rgba(36,36,40,0.92) 100%);
    border-radius: 25px;
    box-shadow: 0 2px 8px #6e00008c;
    border-radius: 2em 2em;
    transition: ease-in-out 0.3s;
}

.projects:hover{
    transform: scale(1.015);
    box-shadow: 0 16px 24px #6e0000aa;
}

.projects h2{
    text-align: center;
    color: #ffffff;
}

.projectform{
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    color: #ffffff;
}

.aboutsection{
    font-size: 19px;
}


/* CONTACT PAGEEEEEEE */

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

.contactform{
    margin: 3em auto;
    border-radius: 25px;
    background: linear-gradient(180deg, rgba(18,18,20,0.95) 0%, rgba(36,36,40,0.92) 100%);
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    padding-top: 1em;
    padding-bottom: 1em;
    border: none;
    transition: ease-in-out 0.3s;
}

.contactform h2{
    text-align: center;
    font-size: 2em;
    color: #ffffff;
}

.contactform h3{
    text-align: center;
    font-size: 1.5em;
    margin-top: -.7em;
    color: #ffffff;
}

/* Hide side boxes on smaller screens (mobile) */
@media (max-width: 768px) {
    .image{
        gap: 0.5rem; /* tighten gap when side boxes hidden */
        justify-content: center;
    }
    .side-box,
    .left-box,
    .right-box{
        display: none !important;
    }
    .image img{
        max-height: 450px;
        width: auto;
    }
}

.Title h1{
    text-align: center;
    margin-top: .2em;
}

.SubTitle h3{
    text-align: left;
    margin-left: 4em;
    margin-top: 1em;
    margin-bottom: -3em;
    color: #aa0000;
}

.skills{
    max-width: 900px;
    margin: 2em auto;
    padding: 1em 2em;
}

.skills h2{
    padding-bottom: 1.2em;
}

details.skill{
    background: linear-gradient(180deg, rgba(18,18,20,0.95) 0%, rgba(36,36,40,0.92) 100%);
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    border-radius: 12px;
    margin: .75em 0;
    padding: 0.5em;
    box-shadow: 0 2px 6px #6e00008c;
    transition: ease-in-out 0.3s;
}

details.skill:hover{
    transform: scale(1.05);
    box-shadow: 0 4px 12px #6e0000aa;
}

summary.skill-summary{
    list-style: none; 
    color: #ffffff;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    font-size: 1.25em;
    padding: .5em .75em;
}

summary.skill-summary::-webkit-details-marker{ 
    display: none;
}

summary.skill-summary::after{
    content: '\25BE';
    font-size: .9em;
    margin-left: 1em;
    color: #ffffff;
}

details[open] summary.skill-summary::after{
    transform: rotate(180deg);
}

.skill-body{
    padding: .6em .8em 1em;
    color: #ffffff;
    line-height: 1.45;
    
}   

.image-grid{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    align-items: start;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 1em 2em;
    box-sizing: border-box;
}

.img-box{
    background: #ffffff;
    border: 2px solid #d8d8d8;
    border-radius: 14px;
    padding: .6rem;
    box-shadow: 0 2px 6px #6e00008c;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease-in-out, box-shadow 0.25s ease-in-out;
}

.img-box:hover{
    transform: scale(1.15);
    box-shadow: 0 6px 16px #6e0000aa;
}
.img-box:hover{
    transform: scale(1.1);
    box-shadow: 0 6px 16px #6e0000aa;
}

.img-box img{
    width: 100%;
    height: 180px;
    object-fit: contain;
    border-radius: 8px;
    background: #fafafa;

}

.container{
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

.container img, .container video, .container iframe{
    max-width: 100%;
    height: auto;
    display: block;
}

:root{
    font-size: 18px;
}

.header-inner, .main-inner, .footer-inner{
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.img-box figcaption{
    transition: opacity 0.25s ease-in-out, transform 0.25s ease-in-out;
    margin-top: .5rem;
}

details.card-details{
    margin-top: .25rem;
}

summary.card-summary{
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 1em;
    padding: .25rem 0;
}

.card-body{ 
    max-height: 0;
    overflow: hidden;
    transition: max-height 500px ease-in-out 0.3s;
    padding-top: 0;
    padding-bottom: 0;
    color: #222; 
    font-size: .95rem; 
}

/* Css For Large Projects */

.LargerProjects {
    width: 100%;
    padding: 0em;
}

.LargeProjects {
    padding: 0em 0em;
}

.LargeProjects h3{
    text-align: left;
    margin-left: 7em;
    margin-top: -1em;
    margin-bottom: 0em;
    color: #aa0000;
}

.Project1{
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding-top: 20px;
    padding-bottom: 20px;
    background-color: #232323;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
}

.Sketch1{
    flex: 1 1 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    box-sizing: border-box;
}

.Sketch1 video{
    max-width: 90%;
    max-height: 600px;
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto;
}

.Sketch1 img{
    max-width: 90%;
    max-height: 600px;
    width: auto;
    height: auto;
    display: block;
    border-radius: 20px;
    margin: 0 auto;
}

.VideoText{
    color: #ffffff;
    font-size: 1.2em;
    margin-top: 0.5em;
    padding: 1rem;
    flex: 1 1 45%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    overflow-wrap: break-word;
}

.VideoText h3{
    margin: 0;
    text-align: center;
}

.VideoText p{
    text-align: center;
    margin-right: 1.5em;
}

.Project1SketchSection{
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding-top: 20px;
    padding-bottom: 20px;
    background-color: #ffffff;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
}

.Sketch2{
    flex: 1 1 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    box-sizing: border-box;
    margin-left: 2rem;
}

.Sketch2 img{
    max-width: 90%;
    max-height: 600px;
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 20px;
    transition: opacity 0.5s ease-in-out;
}

.Sketch2 img.fade-out{
    opacity: 0;
}

.Buttons {
    display: flex;
    background-color: #232323;
    color: #ffffff;
    border: 2px solid #000000;
    padding: .5rem .9rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    justify-content: flex-end;
    margin: 0 .5rem;
	transition: ease-in ease-out 0.3;
}

.SketchText{
    color: #000000;
    font-size: 1.2em;
    margin-top: 0.5em;
    padding: 1rem;
    flex: 1 1 45%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%;
    overflow-wrap: break-word;
    padding-left: 100px;
}

.SketchText h3{
    margin: 0;
    text-align: center;
}

.SketchText p{
    text-align: center;
}

.ProjectAvatarSection{
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding-top: 20px;
    padding-bottom: 20px;
    background-color: #232323;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
}

.ProjectAvatarSection{
    flex: 1 1 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    box-sizing: border-box;
    transition: ease-in-out 0.3;
}

.ProjectAvatarSection img{
    max-width: 90%;
    max-height: 600px;
    border-radius: 20px;
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto;
    transition: ease-in-out 0.3;
}

.AvatarPartsText{
    color: #ffffff;
    font-size: 1.2em;
    margin-top: 0.5em;
    padding: 1rem;
    flex: 1 1 45%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%;
    overflow-wrap: break-word;
    padding-right: 50px;
}

.AvatarPartsText h3{
    margin: 0;
    text-align: center;
}

.AvatarPartsText p{
    text-align: center;
}



/* View More */
.ViewMore {
    display: contents;
}

.ViewMore > figure {
    display: flex;
    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.35s ease, transform 0.35s ease, max-height 0.4s ease;
}

/* Visible */
.ViewMore.ViewMore--open > figure {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    max-height: 600px;
}

.view-more-wrap {
    display: flex;
    justify-content: center;
    padding: 1em 0 2em;
}

.view-more-btn {
    background: none;
    border: none;
    color: #555;
    font-family: "M PLUS Rounded 1c", sans-serif;
    font-size: .95em;
    font-weight: 600;
    padding: 0;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 4px;
    letter-spacing: .03em;
    transition: color 0.2s ease;
}

.view-more-btn:hover {
    color: #222;
}

.view-more-btn:active {
    color: #000;
}



footer{
    background-color: #232323;
    width: 100%;
    padding: 0px;
    color: #ffffff;
    text-align: center;
    padding-top: 1.2em;
    padding-bottom: .5em;
    font-size: 1.2em;
}

footer li{
    display: inline;
}

footer i{
    color: #dd0000;
    font-size: 3em;
    padding-left: 0em;
    padding-right: .5em;
}

footer a i:hover{
    color: #aa0000;

}

summary.card-summary::-webkit-details-marker{ display: none; }
summary.card-summary::after{ content: '\25BE'; transition: transform 0.3s ease-in-out; color: #6d0c0c; }
details[open] summary.card-summary::after{ transform: rotate(180deg); }

/* ============================================
   MOBILE VIEW
   ============================================ */

/* --- HAMBUWGERRRRR --- */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: .4em;
    margin-left: auto;
    flex-direction: column;
    gap: 5px;
    z-index: 200;
}
.nav-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    background: #ffffff;
    border-radius: 3px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* --- Tablet (≤900px) --- */
@media (max-width: 900px) {
    body { font-size: 17px; }

    header { padding: .5em 1em; }
    header img { width: 90px; }
    nav li a { font-size: 1.1em; }
    nav li { padding: .35em .5em; }

    .image {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5em 1.5em 2em;
        margin-top: 0;
    }
    .side-box {
        min-height: unset;
        width: 100%;
        flex: unset;
    }
    .left-box { margin-left: 0; order: 1; }
    .image > img { order: 2; max-height: 380px; width: auto; max-width: 100%; }
    .right-box { margin-right: 0; order: 3; }

    .projects { width: 92%; }

    .image-grid { grid-template-columns: repeat(3, 1fr); }

    .contact { width: 80%; }
}

/* --- Mobile (≤767px) --- */
@media (max-width: 767px) {
    body { font-size: 16px; }

    header {
        position: sticky;
        top: 0;
        z-index: 100;
        flex-wrap: wrap;
        align-items: center;
        padding: .45em 0.75em;
        justify-content: space-between;
    }
    header img { width: 64px; height: auto; object-fit: contain; }

    .nav-toggle { display: flex; }

    nav {
        width: auto;
        max-height: none;
        overflow: visible;
        transition: none;
        margin-left: auto;
    }

    nav ul {
        display: flex;
        flex-direction: row;
        gap: .25rem;
        padding: 0;
        margin: 0;
        list-style: none;
        align-items: center;
        overflow-x: auto;
    }
    nav li {
        display: inline-block;
        border-top: none;
        padding: 0;
    }
    nav li a {
        display: inline-block;
        padding: .45em .6em;
        font-size: 1em;
        color: #ffffff;
        text-decoration: none;
        white-space: nowrap;
    }
    nav li a:hover { background: rgba(180,0,0,0.15); }

    h2 { font-size: 2em; }
    h3 { font-size: 1.4em; margin-top: .5em; }

    .aboutme { padding: 1.2em 1em .5em; }
    .aboutme h2 { font-size: 2.2em; margin-top: 0; }

    .image {
        flex-direction: column;
        gap: 1.2rem;
        padding: 1em 1em 1.5em;
        margin-top: 0;
        border-bottom: 2px dotted #232323;
    }
    .side-box {
        min-height: unset;
        width: 100%;
        flex: unset;
        padding: 1rem 1rem;
    }
    .left-box  { margin-left: 0; order: 1; }
    .image > img { order: 2; max-height: 280px; width: auto; max-width: 92%; margin: 0 auto; }
    .right-box { margin-right: 0; order: 3; }

    .side-box h3 { font-size: 1.15em; margin: 0 0 .4em; }
    .side-box p  { font-size: .9em; line-height: 1.5; }

    /* === INDEX — about text card === */
    .projects { width: 94%; margin: 1.2em auto; padding: 0; }
    .projects h2 { font-size: 1.6em; padding: .5em 0 .1em; }
    .projectform { flex-direction: column; padding: 0 1.2em 1.2em; }
    .AboutSection p { font-size: .95em; line-height: 1.6; }
    section { padding: 1.5em 1em; }

    .skills {
        max-width: 100%;
        padding: 1em 1em;
        margin: 1em auto;
    }
    .skills h2 { font-size: 1.8em; padding-bottom: .6em; }
    details.skill { margin: .5em 0; }
    details.skill:hover { transform: none; } /* prevent scale on touch */
    summary.skill-summary { font-size: 1.05em; padding: .6em .75em; }
    .skill-body { padding: .5em .75em 1em; font-size: .95em; }
    .skill-body ul { padding-left: 1.2em; }

    .image-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: .75rem;
        padding: .75em 1em;
    }
    .img-box img { height: 150px; }
    .img-box:hover { transform: none; } 
    .img-box:hover { transform: scale(1.03); }

    .Project1,
    .Project1SketchSection,
    .ProjectAvatarSection {
        flex-direction: column;
        gap: 1rem;
        padding: 1.2em 1em;
    }
    .Sketch1, .Sketch2 { flex: unset; width: 100%; margin: 0; padding: .5rem; }
    .Sketch1 img, .Sketch2 img, .Sketch1 video { max-width: 100%; max-height: 320px; }
    .VideoText, .SketchText, .AvatarPartsText {
        flex: unset;
        width: 100%;
        padding: .5em 1em;
        padding-left: 1em;
        padding-right: 1em;
        font-size: 1em;
    }
    .LargeProjects h3 { margin-left: 1em; font-size: 1.1em; }

    .contact { width: 94%; padding-bottom: 2em; }
    .contact > h2 { font-size: 1.8em; }

    .contact-strip { gap: .75em; }
    .contact-chip {
        font-size: .82em;
        padding: .4em 1em;
        color: rgba(255,255,255,0.75);
    }

    .contactform { padding: 1.5em 1.2em; margin: 1em auto; }
    .contactform h2 { font-size: 1.5em; }
    .contactform h3 { font-size: .95em; margin-bottom: 1.2em; }

    .form-row { flex-direction: column; gap: 0; }
    .form-group { margin-bottom: 1.1em; }
    .form-group label { font-size: .82em; }
    .form-group input,
    .form-group select,
    .form-group textarea { font-size: .95em; padding: .65em .85em; }
    .form-group textarea { min-height: 100px; }

    .submit-btn {
        font-size: 1em;
        padding: .8em 2em;
        width: 100%;
        border-radius: 14px;
    }

    footer { font-size: .85em; padding: 1em .75em .75em; }
    footer p { margin: .3em 0; word-break: break-word; }
    footer a { font-size: .9em; }

    .container { padding: 0 12px; }
    .SubTitle h3 { margin-left: 1.5em; }
}

/* --- Small phones (≤480px) --- */
@media (max-width: 480px) {
    body { font-size: 15px; }
    header img { width: 52px; }
    .image > img { max-height: 220px; }
    .image-grid { grid-template-columns: 1fr 1fr; gap: .5rem; padding: .5em .75em; }
    .img-box img { height: 120px; }
    h2 { font-size: 1.7em; }
    .contactform { padding: 1.2em .9em; }
    .submit-btn { font-size: .95em; }
}

#backBtn, #nextBtn {
    background-color: #232323;
    color: #ffffff;
    border: 2px solid #000000;
    padding: .5rem .9rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    margin: 0 .5rem;
    position: relative;
    z-index: 10;
	transition: ease-in-out 0.3s;
}

#backBtn:hover {
	background-color: #333333;
}

#nextBtn:hover {
	background-color: #333333;
}

.Sketch2 { gap: .75rem; flex-wrap: wrap; }

.audio-btn{ background: transparent; border: none; padding: 0; cursor: pointer; }
.audio-btn img{ width: 96px; height: auto; display: block; }
