* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: white;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    overflow-x: hidden;
    color: black;
}

html {
	scroll-behavior: smooth;
  }

::-webkit-scrollbar {
    width: 15px;
}

::-webkit-scrollbar-track {
    background-color: rgba(128, 128, 128, 0.801);
    
    padding: 2px;
}

::-webkit-scrollbar-thumb {
    background-color: #EEC643;
    
    width: 8px;
    box-shadow: 0 2px 10px #000;
}

/* TOP NAV */

.logo-text {
    color: black;
    cursor: pointer;
    font-size: 28px;
}
.rin {
    color: #EEC643;
}
li, a {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: black;
    text-decoration: none;
}
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 10%;
    position: sticky;
    top: 0;
    z-index: 2;
    height: 15px;
    
    
}


.nav_links {
    list-style: none;
}
.nav_links li {
    display: inline-block;
    padding: 0px 20px;
}
.nav_links li a {
    transition: all 0.3s ease 0s;
}
.nav_links li a:hover {
    color: #EEC643;
}

/*Apply styles after scroll*/
.scrolling-active{
    background-color: #EEC643;
    box-shadow: 0 3px 1rem rgba(230, 221, 38, 0);
}

.scrolling-active .header{
    margin-top: 20px;
}

.scrolling-active .nav a{
    color: #313131;
}

.scrolling-active .nav a:hover{
    color: white;
}

.scrolling-active .nav-link::after{
    background-color: white;
}
.scrolling-active .logo-text {
    color: black;
}

.scrolling-active .rin {
    color: black;
}

/*Apply styles after scroll end*/

/* END OF TOP NAV */

/* HOMEPAGE */


.main-text {
    color: black;
    padding-left: 11rem;
    padding-top: 7rem;
   
    
}
.main-text h6 {
    position: relative;
    color: black;
    font-size: 24px;
    font-weight: 500;
    padding-bottom: 1rem;
    left: 31rem;
    top: -6rem;
  
}
.main-text h4 {
    position: relative;
    color: black;
    font-size: 36px;
    width: 400px;
    font-weight: 100;
    padding-top: 1rem;
    text-align: center;
    left: 25rem;
    top: -8rem;
    
}
.gold-name {
    position: relative;
    color: #EEC643;
    font-size: 62px;
    padding-left: 21rem;
    top: -7rem;
}
.future {
    color: #EEC643;
}

/* BUTTON */

.btn{
    margin-top: 3rem;
    margin-left: 11rem;
}
.btn-cv {
    background: none;
    color: #EEC643;
    border: 2px solid #EEC643;
    cursor: pointer;
    padding: 0.8rem 0.6rem;
    border-radius: 5px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-weight: 500;
    width: 10rem;
    transition: all 0.3s ease 0s;
    margin-left: 1rem;
}
.btn-cta {
    position: relative;
    background: #EEC643;
    color: white;
    cursor: pointer;
    border: 1px solid #EEC643;
    padding: 0.8rem 0.6rem;
    border-radius: 5px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-weight: 500;
    width: 10rem;
    transition: all 0.3s ease 0s;
    margin-left: 32.2rem;
    top: -9rem;
}
.btn-cta:hover {
    background: #EEC643;
    transform: scale(1.1);
}
.btn-cv:hover {
    background: #EEC643;
    color: white;
}


/* END OF BUTTON */

.wan {
    
    width: 210px;
    height: 210px;
    margin-left: 41.6rem;
    margin-top: 2rem;

}
.homepage {
    margin-top: 3rem;
 
}

/* END OF HOMEPAGE */ 

/* ABOUT ME PAGE */
.about-me {
    margin-top: 2rem;
    min-height: 70vh;
    background-color: #EEC643;
}
.apple {
    width: 500px;
    text-align: justify;
    left: 56rem;
    position: relative;
    padding-bottom: 2rem;
    top: 3rem;
    font-size: 24px;
    color: black;
}
.apple2 {
    position: relative;
    top: 4rem;
    color: white;
    padding-left: 56rem;
    padding-bottom: 10rem;
    font-size: 24px;
    font-weight: 300;
    font-style: italic;
    
}
.about-me h1 {
    text-align: center; 
    color: black;
    padding-top: 2rem;
    font-size: 50px;
}

.wan2 {
    position: relative;
    height: 380px;
    width: 390px;
    top: -25rem;
    left: 12rem;
}
.btn-s {
    margin-top: -27rem;
    margin-left: 56rem;
    cursor: pointer;
   
}
.scroll {
    cursor: pointer;
    position: relative;
    background: black;
    color: white;
    cursor: pointer;
    padding: 0.8rem 0.6rem;
    border-radius: 5px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-weight: 500;
    width: 10rem;
    transition: all 0.3s ease 0s;
    border: none;
    
}
.scroll:hover {
   transform: scale(0.9);
}
.line {
    padding-left: 31.5rem;
    
}
/* END OF ABOUT ME PAGE */


/* MY EDUCATION PAGE */

.my-education{
    margin-top: 2rem;
}

.img-gp {
    margin-left: 20rem;
    margin-top: 10rem;
}
.pc-gp {
    position: absolute;
    height: 407px;
    width: 305px;
    margin-top: -4.4rem;
    margin-left: -4.5rem;
}

.my-education h1 {
    text-align: center; 
    color: #EEC643;
    padding-top: 1.8rem;
    font-size: 80px;
}
.line2 {
    padding-left: 31.5rem;
    padding-top: 10rem;
}
.border-img {
    position: absolute;
    margin-left: -7rem;
    margin-top: -6rem;
}
.st-icon {
   position: relative;
   height: 400px;
   width: 120px;
   margin-top: -4.3rem;
   left: 42rem;
}
.txt-layout {
   width: 500px;
   margin-left: 45rem;
}
.txt-layout2 {
   position: relative;
   width: 500px;
   margin-left: 843px;
   top: -25.5rem;
}
.smk-pekan {
    position: absolute;
    width: 76px;
    height: 76px;
    left: 54.9rem;
    top: 121.7rem;
}
.uitm-logo {
    position: absolute;
    margin-left: 55.1rem;
    margin-top: -32rem;
}
.edu-text {
    color: black;
}
.pear {
    position: absolute;
    margin-top: -33rem;
    margin-left: 61.3rem;
    width: 350px;
    font-weight: 500;
    font-size: 14px;
}
.pear2 {
    position: absolute;
    margin-left: 61.3rem;
    font-size: 12px;
    width: 300px;
    margin-top: -30rem;
}
.pear3 {
    position: absolute;
    font-size: 14px;
    font-weight: 500;
    margin-left: 61.3rem;
    margin-top: -15.5rem;
}
.pear4 {
    position: absolute;
    font-size: 12px;
    margin-left: 61.3rem;
    margin-top: -13rem;
    width: 300px;
}

/* END OF MY EDUCATION PAGE */

/* MY SKILLS PAGE */


.my-skills {
    color: black;
}

.my-skills-text h1 {
    color: #EEC643;
    padding-top: 2rem;
    text-align: center;
    font-size: 80px;
}


.my-skills
 {
  display: grid;
  padding-top: 4rem;
  padding-left: 15rem;
  grid-template-columns: repeat(3,450px);  /* 3 columns */
  grid-template-rows: repeat(3,250px); /* 3 rows  */
  grid-gap:50px 30px; /* 50 pixels of space added between rows and 30 pixels added between columns  */
}

.line-skill {
    position: relative;
    padding-left: 31.5rem;
    padding-top: 2rem;
    
}

.s1, .s2, .s3, .s4, .s5, .s6 {
    color: black;
    position: absolute;
}
.s1 {
    margin-top: 5.8rem;
    margin-left: 20px;
}
.s2 {
    margin-top: 5.8rem;
    margin-left: 31.8rem;
}
.s3 {
    margin-top: 5.8rem;
    margin-left: 57.8rem;
}
.s4 {
    margin-top: 24.8rem;
    margin-left: -35px;
}
.s5 {
    margin-top: 24.8rem;
   margin-left: 31.12rem;
}
.s6 {
    margin-top: 24.8rem;
    margin-left: 57rem;
}
.d1 {
    margin-top: -29rem;
    width: 250px;
    text-align: justify;
    margin-left: -70px;
}
.d2 {
    margin-top: -29rem;
    width: 250px;
    text-align: justify;
    margin-left: -70px;
}
.d3 {
    margin-top: -29rem;
    width: 250px;
    text-align: justify;
    margin-left: -70px;
}
.d4 {
    margin-top: -29rem;
    margin-left: -70px;
    width: 250px;
    text-align: justify;
}
.d5 {
    margin-top: -29rem;
    margin-left: -70px;
    width: 250px;
    text-align: justify;
}

.d6 {
    margin-top: -29rem;
    margin-left: -70px;
    width: 250px;
    text-align: justify;
}


/* END OF MY SKILLS PAGE */

/* EXTRACURRICULAR PAGE */

.workex {
    margin-top: 18rem;
}
.cn {
    text-align: center;
    margin-top: -12em;
    position: relative;
}

.cntext {
    color: black;
    text-align: center;
}

#c1 {
    font-size: 24px;
    position: relative;
    top: -21.2em;
    left: -11em;
}
#c2 {
    font-size: 24px;
    position: relative;
    top: -22.5em;
    left: 10.5em;
}
#w1 {
    position: relative;
    top: -29em;
    left: -16em;
}
#w1 span{
    font-weight: 700;
}
#w2 {
    position: relative;
    top: -24.6em;
    left: -16em;
}
#w2 span{
    font-weight: 700;
}
#w3 {
    position: relative;
    top: -20em;
    left: -16em;
    
}
#w3 span{
    font-weight: 700;
}
#e1 {
    position: relative;
    top: -39.9em;
    left: 16em;
    
}
#e1 span{
    font-weight: 700;
}
#e2 {
    position: relative;
    top: -36.7em;
    left: 16em;
    
}
#e2 span{
    font-weight: 700;
}
#e3 {
    position: relative;
    top: -32.3em;
    left: 16em;
    
}
#e3 span{
    font-weight: 700;
}

.title {
    font-size: 70px;
    color: #EEC643;
    position: relative;
    top: -16rem;
    left: 19.4rem;
}

/* END OF EXTRACURRICULAR PAGE */

/*  PORTFOLIO PAGE */

.omg {
    font-size: 80px;
    position: relative;
    top: -23rem;
    color: #EEC643;
    text-align: center;
}

.container-img {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 10%;
    margin-top: -25rem;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 30px;
}

.gallery img {
    width: 100%;
    transition: all 0.3s ease;
}

.gallery img:hover {
    transform: scale(1.1);
    box-shadow: -1px 1px 43px 15px rgba(230,206,107,0.75);
    -webkit-box-shadow: -1px 1px 43px 15px rgba(230,206,107,0.75);
    -moz-box-shadow: -1px 1px 43px 15px rgba(230,206,107,0.75);
}


/*  END PORTFOLIO PAGE */

/*  CONTACT PAGE */


.contact {
    min-height: 40vh;
    margin-top: -10rem;
}

.contact h1 {
    padding-top: 10rem;
    text-align: center;
}

.contact p {
    text-align: center;
    font-weight: 300;
    padding-top: 1rem;
}

.contek {
    border: none;
    display: block;
    text-align: center;
    cursor: pointer;
    text-transform: uppercase;
    outline: none;
    overflow: hidden;
    position: relative;
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    background-color: #EEC643;
    padding: 17px 60px;
    margin: 0 auto;
    box-shadow: 0 5px 15px rgba(0,0,0,0.20);
    margin-top: 30px;
  }
  
  .contek span {
    position: relative; 
    z-index: 1;
  }
  
  .contek:after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 490%;
    width: 140%;
    background: black;
    -webkit-transition: all .5s ease-in-out;
    transition: all .5s ease-in-out;
    -webkit-transform: translateX(-98%) translateY(-25%) rotate(45deg);
    transform: translateX(-98%) translateY(-25%) rotate(45deg);
  }
  
  .contek:hover:after {
    -webkit-transform: translateX(-9%) translateY(-25%) rotate(45deg);
    transform: translateX(60%) translateY(-25%) rotate(90deg);
  }

.line-ctc {
    text-align: center;
    margin-top: 3rem;
}

.rin2 {
    color: #EEC643;
}

.logo-text2 {
    position: relative;
    left: -20rem;
    top: -5rem;
}

.chome {
    position: relative;
    left: 39rem;
    top: -7rem;
}

.cabout {
    position: relative;
    top: -8.55rem;
    left: 51rem;
}

.a1 {
    position: relative;
    left: 5.5rem;
    top: -9rem;
}


.a2 {
    position: relative;
    left: 5.5rem;
    top: -9.5rem;
}

.a3 {
    position: relative;
    left: 5.5rem;
    top: -10rem;
}

.cproject {
    position: relative;
    top: -17.2rem;
    left: 62rem;
}

.cport {
    position: relative;
    left: 17.3rem;
    top: -17.7rem;
}

.footer {
    position: relative;
    font-style: italic;
    text-align: center;
    top: -30px;
}

.nav2 {
    height: 40vh;
}


.icon-bar img {
    width: 32px;
    height: 32px;
}

.icon-bar {
    position: fixed;
    top: 80%;
    left: 30px;
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
  }
  
  /* Style the icon bar links */
  .icon-bar a {
    display: block;
    text-align: center;
    padding: 16px;
    transition: all 0.3s ease;
    color: white;
    font-size: 20px;
  }
  
  /* Style the social media icons with color, if you want */
  .icon-bar a:hover {
    transform: scale(1.3);
  }



  /* TO TOP */

.to-top img {
    width: 42px;
    height: 42px;
}

.to-top {
    position: fixed;
    top: 88%;
    left: 89rem;
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
    transition: all .4s;
    opacity: 0;
  }
  
  /* Style the icon bar links */
  .to-top a {
    display: block;
    text-align: center;
    padding: 16px;
    transition: all 0.3s ease;
    color: white;
    font-size: 20px;
  }

  .to-top.active {
    opacity: 1;
  }


  /* SKILLS */

#skills {
    background: white;
    padding: 20px 15px 75px 15px;
    color: black;
    z-index: 1;
  }
  
  .skills-text {
    max-width: 1080px;
    margin-left: auto;
    margin-right: auto;
    background: white;
    font-size: 20px;
  }
  
  .skills-title {
    display: block;
    margin-bottom: 2rem;
  }
  
  .skills-title.underline:before {
    width: 40px;
  }
  
  .skills-list {
    overflow: hidden;
    position: relative;
  }
  
  .skill-name:after {
    background-color: black;
    content: '';
    display: block;
    height:1rem;
    position: relative;
    top: 3px;
    /*top: 1rem;*/
    width: 100%;
  }
  
  .skill-percent {
    font-size: 0;
    height: 1rem;
    position: relative;
    top: -.8rem;
    transition: 3s linear;
    width: 0;
  }
  
  /* SKILL BAR COLORS */
  
  .skill-percent-html {
    background-color: #EEC643;
  }
  .skill-percent-css {
    background-color: #EEC643;
  }
  .skill-percent-jquery {
    background-color: #EEC643;
  }
  .skill-percent-scss {
    background-color: #EEC643;
  }
  .skill-percent-javascript {
    background-color: #EEC643;
  }
  .skill-percent-wordpress {
    background-color: #EEC643;
  }
  .skill-percent-php {
    background-color: #EEC643;
  }
  .skill-percent-git {
    background-color: #EEC643;
  }
  
  /* Heading Underline */
  
  .underline {
    display: inline-block;
    position: relative;
  }
  
  .underline:before {
    background-color: white;
    bottom: -15px;
    content: '';
    height: 2px;
    left: 0;
    position: absolute;
    width: 110%;
  }

  .gold {
    color: #EEC643;
    position: relative;
    left: 22rem;
    font-size: 80px;
  }

  /* responsive mobile */

  @media (max-width: 860px) {
    .icon-bar {
        position: relative;
        display: flex;
        top: 350rem;
        left: 84px;
    }   
    .nav {
        display: none;
    }
    .logo-text {
        padding-left: 5rem;
    }
    .wan {
        width: 150px;
        height: 150px;
        margin-left: 6.8em;
        margin-top: 1rem;
    }
    .main-text h6 {
        position: relative;
        width: 300px;
        left: -5.5rem;
    }
    .gold-name {
        position: relative;
        color: #EEC643;
        font-size: 38px;
        left: -5.2rem;
        top: -6.5rem;
    }
    .pls {
        position: relative;
        left: -19rem;
    }
    .main-text h4 {
        position: relative;
        color: black;
        font-size: 28px;
        width: 400px;
        font-weight: 100;
        padding-top: 1rem;
        text-align: center;
        left: -12rem;
        top: -7rem;
    }
    .btn-cta {
        position: relative;
        background: #EEC643;
        color: white;
        cursor: pointer;
        border: 1px solid #EEC643;
        padding: 0.8rem 0.6rem;
        border-radius: 5px;
        font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
        font-weight: 500;
        width: 10rem;
        transition: all 0.3s ease 0s;
        margin-left: -4rem;
        top: -8rem;
    }
    .btn-cta:hover {
        background: #EEC643;
        transform: scale(1.1);
    }
    .about-me h1 {
        text-align: center; 
        color: black;
        padding-top: 2rem;
        font-size: 32px;
        position: relative;
        left: 0.2rem;
    }
    .wan2 {
        position: relative;
        height: 220px;
        width: 220px;
        top: -42rem;
        left: 4.8rem;
    }
    .apple {
        width: 300px;
        text-align: justify;
        left: 2.2rem;
        position: relative;
        top: 17rem;
        font-size: 24px;
        color: black;
    }
    .about-me {
        height: 110vh;
        width: 360px;
    }
    .btn-s {
        margin-top: -20rem;
        margin-left: 6.5rem;
        cursor: pointer;
    }
    .scroll {
        cursor: pointer;
        position: relative;
        background: black;
        color: white;
        cursor: pointer;
        padding: 0.8rem 0.6rem;
        border-radius: 5px;
        font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
        font-weight: 500;
        width: 10rem;
        transition: all 0.3s ease 0s;
        border: none;
    }
    .scroll:hover {
       transform: scale(0.9);
    }
    .my-education h1 {
        text-align: center; 
        color: #EEC643;
        font-size: 50px;
        padding-left: 5px;
        padding-right: 5px;
    }
    .img-gp {
        display: none;
    }
    .scrolling-active{
        display: none;
    }
    
    .scrolling-active .header{
        display: none;

    }
    
    .scrolling-active .nav a{
        display: none;
    }
    
    .scrolling-active .nav a:hover{
        display: none;
    }
    
    .scrolling-active .nav-link::after{
        display: none;
    }
    .scrolling-active .logo-text {
        display: none;
    }
    
    .scrolling-active .rin {
        display: none;
    }
    .my-education {
        min-height: 70vh;
        width: 114vh;
    }
    .my-education h1 {
        text-align: center; 
        color: #EEC643;
        font-size: 40px;
        position: relative;
        left: -13.2rem;
    }
    .txt-layout {
        display: none;
     }
     .txt-layout2 {
        display: none;
     }
     .st-icon {
        position: relative;
        left: 1.5rem;
        top: 120px;
        width: 80px;
        height: 240px;
     }
    .smk-pekan {
       display: none;
    }
    .uitm-logo {
        display: none;
    }
    .pear {
        position: relative;
        text-align: center;
        width: 300px;
        left: -57rem;
        top: 25.7rem;
        font-weight: 500;
    }
    .pear2 {
        position: relative;
        left: -54rem;
        top: 56rem;
        font-size: 12px;
        width: 200px;
    }
    .pear3 {
        position: relative;
        width: 300px;
        left: -54rem;
        top: 74rem;
    }
    .pear4 {
        position: relative;
        top: 87.4rem;
        left: -54rem;
    }
    .gold {
        position: relative;
        font-size: 40px;
        left: 4.2rem;
    }
    .workex {
        height: 120vh;
    }
    .title {
        font-size: 36px;
        position: relative;
        left: 0.1rem;
    }
    .cn {
        display: none;
    }
    #c1 {
        position: relative;
        top: -13rem;
        left: 0.2rem;
        font-size: 18px;
    }
    #w1 {
        position: relative;
        top: -220px;
        left: 0.5rem;
        font-size: 12px;
    }
    #w2 {
        position: relative;
        top: -210px;
        left: 0.5rem;
        font-size: 12px;
    }
    #w3 {
        position: relative;
        top: -200px;
        left: 0.5rem;
        font-size: 12px;
    }
    #c2 {
        position: relative;
        top: 0.3rem;
        left: 0.2rem;
        font-size: 18px;
    }
    #e1 {
        position: relative;
        top: -110px;
        left: 0.5rem;
        font-size: 12px;
    }
    #e2 {
        position: relative;
        top: -100px;
        left: 0.5rem;
        font-size: 12px;
    }
    #e3 {
        position: relative;
        top: -90px;
        left: 0.5rem;
        font-size: 12px;
    }
    .omg {
        font-size: 40px;
    }
    .a1, .a2, .a3 {
        display: none;
    }
    .cport {
        display: none;
    }
    .chome {
        position: relative;
        left: 9.5rem;
        top: -120px;
        color: #EEC643;
    }
    .cabout {
        position: relative;
        left: 9.3rem;
        top: -120px;
        color: #EEC643;
    }
    .cproject {
        position: relative;
        left: 8.6rem;
        top: -120px;
        color: #EEC643;
    }
    .line-ctc img {
        width: 310px;
    }
    

   



    
  }
