body {
  background-color: #dfdd66;
  width: 100%;
  overflow-x: hidden;
}

.dark-mode {
  background-color: rgb(36, 35, 35);
}

.jumbotron {
  padding-top: 5rem;
}

.konten {
  color: black;
}

#awal {
  position: sticky;
  z-index: -1;
  top: 0;
}

#bagian1 {
  position: sticky;
  z-index: 1;
  top: 0;
  padding-bottom: 500px;
}

#mySkill {
  position: sticky;
  z-index: 2;
  top: 0;
  padding-bottom: 700px;
}

#awan2 {
  margin-top: -400px;
}

.mask2,
#awan2 {
  position: relative;
  z-index: 3;
}

#awan4 {
  margin-top: -350px;
}

.mask4,
#contact {
  position: relative;
  z-index: 4;
}

.opac {
  background-color: rgba(255, 255, 255, 0.3);
}

#chong {
  display: flex;
  flex-direction: row-reverse;
  z-index: -1;
  top: 0;
  padding: 10px;
}

#footer {
  background-color: #dfdd66;
  position: relative;
  z-index: 4;
}

.footdark {
  background-color: rgb(36, 35, 35) !important;
}

.akhir {
  fill: #dfdd66;
}

.akhirdark {
  fill: rgb(36, 35, 35) !important;
}

.light1 {
  color: black;
}

.darkf {
  color: rgb(255, 255, 255) !important;
}

p {
  color: inherit;
}

#konten>* {
  color: inherit;
}

.fill1 {
  fill: #2780e6;
}

.bg1 {
  background-color: #2780e6;
}

.fill1-a {
  fill: rgb(83, 83, 83) !important;
}

.bg1-a {
  background-color: rgb(83, 83, 83) !important;
}

.fill2 {
  fill: #2467b4;
}

.bg2 {
  background-color: #2467b4;
}

.fill2-a {
  fill: rgb(65, 64, 64) !important;
}

.bg2-a {
  background-color: rgb(65, 64, 64) !important;
}

.fill3 {
  fill: #1e5594;
}

.bg3 {
  background-color: #1e5594;
}

.fill3-a {
  fill: rgb(56, 55, 55) !important;
}

.bg3-a {
  background-color: rgb(56, 55, 55) !important;
}

.fill4 {
  fill: #0b3769;
}

.bg4 {
  background-color: #0b3769;
}

.fill4-a {
  fill: rgb(46, 45, 45) !important;
}

.bg4-a {
  background-color: rgb(46, 45, 45) !important;
}

.iconsosmed {
  width: 80px;
  height: 80px;
  transition: transform 0.3s ease;
}

.iconsosmed:hover {
  transform: scale(1.1);
}

@media only screen and (max-device-width: 1000px) {
  .iconsosmed {
    width: 40px;
    height: 40px;
  }
}

/* Custom AOS Animation: Bubble Pop */
[data-aos="bubble-pop"] {
  display: inline-block;
  transform: scale(0);
  opacity: 0;
  transition-property: transform, opacity;
  transition-duration: 0.6s;
  transition-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  /* Bouncy effect */
}

[data-aos="bubble-pop"].aos-animate {
  transform: scale(1) !important;
  opacity: 1 !important;
}

/* Typewriter Cursor Effect */
#typewriter-text {
  min-height: 100px;
  /* Ensure height for AOS/Observer */
}

#typewriter-text p {
  display: inline;
  margin-right: 5px;
  font-size: 1.35rem;
  font-weight: 600;
}

#typewriter-text p::after {
  content: '|';
  animation: blink 1s infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}



#awan3 {
  margin-top: -350px;
}

.mask3,
#projects {
  position: relative;
  z-index: 3;
}

#awan4 {
  margin-top: -350px;
}

.mask4,
#contact {
  position: relative;
  z-index: 4;
}

.opac {
  background-color: rgba(255, 255, 255, 0.3);
}

#chong {
  display: flex;
  flex-direction: row-reverse;
  z-index: -1;
  top: 0;
  padding: 10px;
}

#footer {
  background-color: #dfdd66;
  position: relative;
  z-index: 4;
}

.footdark {
  background-color: rgb(36, 35, 35) !important;
}

.akhir {
  fill: #dfdd66;
}

.akhirdark {
  fill: rgb(36, 35, 35) !important;
}

.light1 {
  color: black;
}

.darkf {
  color: rgb(255, 255, 255) !important;
}

p {
  color: inherit;
}

#konten>* {
  color: inherit;
}

.fill1 {
  fill: #2780e6;
}

.bg1 {
  background-color: #2780e6;
}

.fill1-a {
  fill: rgb(83, 83, 83) !important;
}

.bg1-a {
  background-color: rgb(83, 83, 83) !important;
}

.fill2 {
  fill: #2467b4;
}

.bg2 {
  background-color: #2467b4;
}

.fill2-a {
  fill: rgb(65, 64, 64) !important;
}

.bg2-a {
  background-color: rgb(65, 64, 64) !important;
}

.fill3 {
  fill: #1e5594;
}

.bg3 {
  background-color: #1e5594;
}

.fill3-a {
  fill: rgb(56, 55, 55) !important;
}

.bg3-a {
  background-color: rgb(56, 55, 55) !important;
}

.fill4 {
  fill: #0b3769;
}

.bg4 {
  background-color: #0b3769;
}

.fill4-a {
  fill: rgb(46, 45, 45) !important;
}

.bg4-a {
  background-color: rgb(46, 45, 45) !important;
}

.iconsosmed {
  width: 80px;
  height: 80px;
  transition: transform 0.3s ease;
}

.iconsosmed:hover {
  transform: scale(1.1);
}

@media only screen and (max-device-width: 1000px) {
  .iconsosmed {
    width: 40px;
    height: 40px;
  }
}

/* Custom AOS Animation: Bubble Pop */
[data-aos="bubble-pop"] {
  display: inline-block;
  transform: scale(0);
  opacity: 0;
  transition-property: transform, opacity;
  transition-duration: 0.6s;
  transition-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  /* Bouncy effect */
}

[data-aos="bubble-pop"].aos-animate {
  transform: scale(1) !important;
  opacity: 1 !important;
}

/* Typewriter Cursor Effect */
#typewriter-text {
  min-height: 100px;
  /* Ensure height for AOS/Observer */
}

#typewriter-text p {
  display: inline;
  margin-right: 5px;
  font-size: 1.35rem;
  font-weight: 600;
}

#typewriter-text p::after {
  content: '|';
  animation: blink 1s infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

/* Remove cursor from previous paragraphs when typing next one */
#typewriter-text p:not(:last-child)::after {
  display: none;
}

/* HTML Card Typewriter Effect */
#html-card-text {
  font-family: 'Courier New', Courier, monospace;
  color: #2c3e50;
  /* Darker color for code-like appearance */
  font-size: 1rem;
  /* Adjust size if needed */
  white-space: pre-wrap;
  /* Preserve formatting */
}

#html-card-text p {
  margin: 0;
  line-height: 1.2;
}

/* Live Coding Section Styles */
.ide-card {
  background-color: #1e1e1e;
  border: none;
  color: #d4d4d4;
  font-family: 'Courier New', Courier, monospace;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.ide-card .card-header {
  background-color: #252526;
  border-bottom: 1px solid #333;
  display: flex;
  align-items: center;
}

.ide-card .card-body {
  padding: 0;
  background-color: #1e1e1e;
}

.dot {
  height: 10px;
  width: 10px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 5px;
}

.dot.red {
  background-color: #ff5f56;
}

.dot.yellow {
  background-color: #ffbd2e;
}

.dot.green {
  background-color: #27c93f;
}

#ide-content {
  white-space: pre-wrap;
  font-size: 0.9rem;
  line-height: 1.5;
  height: 400px;
  max-height: 400px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 16px;
  font-family: 'Consolas', 'Courier New', monospace;
  background-color: #1e1e1e;
  color: #d4d4d4;
}

/* Transparent Preview Card */
.preview-card {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.preview-card .card-header {
  display: none;
}

.preview-card .card-body {
  height: 600px;
  max-height: 600px;
  overflow: auto;
  background: transparent !important;
  padding: 0 !important;
}

#live-preview-container {
  min-height: 100%;
  background-color: transparent;
  position: relative;
}

/* Syntax Highlighting Simulation */
.code-comment {
  color: #6a9955;
}

.code-keyword {
  color: #569cd6;
}

.code-string {
  color: #ce9178;
}

.code-number {
  color: #b5cea8;
}

.code-tag {
  color: #569cd6;
}

.code-attr {
  color: #9cdcfe;
}

.code-attr-value {
  color: #ce9178;
}

.code-selector {
  color: #d7ba7d;
}

.code-property {
  color: #9cdcfe;
}

.code-value {
  color: #ce9178;
}

.code-function {
  color: #dcdcaa;
}

.code-variable {
  color: #9cdcfe;
}

.code-punctuation {
  color: #d4d4d4;
}

.code-operator {
  color: #d4d4d4;
}

.code-class {
  color: #4ec9b0;
}