:root{
  --accent:#7c73ff;
  --accent-soft:rgba(124,115,255,.16);
  --bg:#05060f;
  --bg-2:#0d1022;
  --card:#12152a;
  --text:#f4f4fb;
  --muted:#b7b8cb;
  --line:rgba(255,255,255,.1);
}

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  font-family:'Kanit',system-ui,sans-serif;
  background:radial-gradient(circle at top left, rgba(124,115,255,.18), transparent 34%), var(--bg);
  color:var(--text);
}

img{
  max-width:100%;
  display:block;
}

a{
  color:inherit;
}

/* ---------- NAV ---------- */
nav{
  position:fixed;
  top:0;
  width:100%;
  min-height:66px;
  padding:0 6vw;
  background:rgba(5,6,15,.78);
  backdrop-filter:blur(14px);
  border-bottom:1px solid var(--line);
  display:flex;
  justify-content:space-between;
  align-items:center;
  z-index:1000;
}

.logo-mark{
  text-decoration:none;
  font-weight:600;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.nav-links{
  display:flex;
  gap:32px;
  list-style:none;
}

.nav-links a{
  text-decoration:none;
  color:var(--muted);
  text-transform:uppercase;
  letter-spacing:.14em;
  font-size:.78rem;
  transition:.25s;
}

.nav-links a:hover,
.nav-links a.active{
  color:var(--text);
}

/* ---------- LAYOUT ---------- */
main{
  padding:110px 6vw 64px;
}

.section{
  max-width:1180px;
  margin:0 auto 84px;
}

.section-header{
  margin-bottom:28px;
}

.section-label{
  color:var(--accent);
  text-transform:uppercase;
  letter-spacing:.16em;
  font-size:.78rem;
  margin-bottom:10px;
}

.section h2{
  font-size:clamp(1.8rem,4vw,3rem);
  line-height:1.05;
  margin-bottom:12px;
}

.section p{
  color:var(--muted);
  line-height:1.7;
}

/* ---------- HERO ---------- */
.hero{
  min-height:56vh;
  display:grid;
  grid-template-columns:1.25fr .75fr;
  gap:48px;
  align-items:center;
}

.hero h1{
  font-size:clamp(2.6rem,8vw,6.4rem);
  line-height:.92;
  letter-spacing:-.04em;
  margin-bottom:20px;
}

.hero h1 span{
  color:var(--accent);
}

.hero-copy{
  font-size:1.15rem;
  max-width:720px;
}

.hero-card{
  background:linear-gradient(145deg, rgba(124,115,255,.2), rgba(255,255,255,.03));
  border:1px solid var(--line);
  border-radius:28px;
  padding:28px;
}

.hero-card h2{
  font-size:1.5rem;
  margin-bottom:12px;
}

.tag-list{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:22px;
}

.tag{
  border:1px solid rgba(124,115,255,.42);
  background:var(--accent-soft);
  color:var(--text);
  border-radius:999px;
  padding:8px 12px;
  font-size:.86rem;
}

.actions{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  margin-top:28px;
}

.button{
  text-decoration:none;
  border-radius:999px;
  padding:12px 18px;
  font-size:.92rem;
  border:1px solid var(--line);
  transition:.25s;
}

.button.primary{
  background:var(--accent);
  color:white;
  border-color:var(--accent);
}

.button:hover{
  transform:translateY(-2px);
}

/* ---------- PROJECTS ---------- */
.project-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:22px;
}

.project-card{
  background:rgba(18,21,42,.86);
  border:1px solid var(--line);
  border-radius:22px;
  overflow:hidden;
  transition:.25s;
}

.project-card:hover{
  transform:translateY(-5px);
  border-color:rgba(124,115,255,.55);
}

.project-image{
  aspect-ratio:1/1;
  background:#15172a;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}

.project-image img{
  width:100%;
  height:100%;
  object-fit:contain;
}

.project-content{
  padding:20px;
}

.project-content h3{
  font-size:1.22rem;
  margin-bottom:8px;
}

.project-content p{
  font-size:.95rem;
}

.meta{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:14px;
}

.meta span{
  font-size:.75rem;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--muted);
  border:1px solid var(--line);
  border-radius:999px;
  padding:6px 9px;
}

/* ---------- ABOUT PREVIEW / ABOUT PAGE ---------- */
.two-column{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:46px;
  align-items:start;
}

.info-panel{
  background:rgba(18,21,42,.72);
  border:1px solid var(--line);
  border-radius:24px;
  padding:28px;
}

.info-panel h3{
  margin-bottom:12px;
  font-size:1.35rem;
}

.info-list{
  display:grid;
  gap:12px;
  list-style:none;
  color:var(--muted);
}

.info-list strong{
  color:var(--text);
}

.about-photo{
  aspect-ratio:1 / 1;
  border-radius:24px;
  border:1px solid var(--line);
  overflow:hidden;
  background:var(--card);
}

.about-photo img{
  width:100%;
  height:100%;
  object-fit:cover;
}

/* ---------- PROCESS ---------- */
.process-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:18px;
}

.process-step{
  background:rgba(18,21,42,.72);
  border:1px solid var(--line);
  border-radius:20px;
  padding:22px;
}

.process-step span{
  color:var(--accent);
  font-weight:600;
}

.process-step h3{
  margin:10px 0 8px;
}

/* ---------- CONTACT / FOOTER ---------- */
.contact-box{
  background:linear-gradient(145deg, rgba(124,115,255,.18), rgba(255,255,255,.03));
  border:1px solid var(--line);
  border-radius:28px;
  padding:34px;
  text-align:center;
}

footer{
  padding:44px 6vw;
  border-top:1px solid var(--line);
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:20px;
}

.socials{
  display:flex;
  gap:22px;
}

.socials a{
  font-size:1.35rem;
  color:var(--accent);
  transition:.25s;
}

.socials a:hover{
  transform:translateY(-4px);
}

.small-note{
  color:var(--muted);
  font-size:.9rem;
}

/* ---------- RESPONSIVE ---------- */
@media(max-width:980px){
  .hero,
  .two-column{
    grid-template-columns:1fr;
  }

  .project-grid{
    grid-template-columns:repeat(2,1fr);
  }

  .process-grid{
    grid-template-columns:repeat(2,1fr);
  }
}

@media(max-width:650px){
  nav{
    flex-direction:column;
    justify-content:center;
    gap:10px;
    padding:14px 6vw;
  }

  main{
    padding-top:140px;
  }

  .nav-links{
    gap:18px;
  }

  .project-grid,
  .process-grid{
    grid-template-columns:1fr;
  }

  .hero-card,
  .info-panel,
  .contact-box{
    padding:22px;
  }
}

/* ===========================
   Loading Screen
=========================== */

#loader{
    position:fixed;
    inset:0;
    width:100%;
    height:100%;

    background:#252562;

    display:flex;
    justify-content:center;
    align-items:center;

    z-index:999999;

    transition:opacity .8s ease, visibility .8s ease;
}


#loader.fade-out{
    opacity:0;
    visibility:hidden;
}


/* Container */

.loader-content{
    width:min(520px,80vw);
    text-align:center;
}


/* ===========================
   Glass Loading Bar
=========================== */


.loading-bar{

    width:100%;
    height:34px;

    padding:4px;

    box-sizing:border-box;

    background:rgba(255,255,255,0.12);

    border:2px solid rgba(255,255,255,0.55);

    backdrop-filter:blur(20px);
    -webkit-backdrop-filter:blur(20px);

    border-radius:12px;

    overflow:hidden;


    box-shadow:
        inset 0 1px 3px rgba(255,255,255,.35),
        0 8px 25px rgba(0,0,0,.35);
}



/* Purple Fuel */

.loading-fill{

    width:0%;
    height:100%;

    border-radius:8px;


    background:
    linear-gradient(
        180deg,
        #9D9BFF,
        #7C73FF,
        #5E59D6
    );


    box-shadow:
        0 0 20px rgba(124,115,255,.75),
        inset 0 2px 5px rgba(255,255,255,.35);


    position:relative;


    transition:width .05s linear;
}



/* Moving Reflection */

.loading-fill::after{

    content:"";

    position:absolute;

    top:0;
    left:-50%;

    width:45%;
    height:100%;


    background:
    linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,.65),
        transparent
    );


    animation:loading-shine 2s infinite linear;

}



@keyframes loading-shine{

    from{
        left:-50%;
    }

    to{
        left:120%;
    }

}



/* Percentage Text */

.loading-text{

    margin-top:18px;

    color:white;

    font-family:Arial, Helvetica, sans-serif;

    font-size:20px;

    font-weight:700;

    letter-spacing:2px;

}

</style>



<script>

window.addEventListener("load", () => {


    const loader = document.getElementById("loader");

    const fill = document.querySelector(".loading-fill");

    const text = document.querySelector(".loading-text");


    let progress = 0;


    const interval = setInterval(() => {


        progress++;


        fill.style.width = progress + "%";

        text.textContent = progress + "%";



        if(progress >= 100){


            clearInterval(interval);



            setTimeout(() => {


                loader.classList.add("fade-out");



                setTimeout(() => {

                    loader.remove();

                },800);



            },250);


        }


    },15);



});