html{
  background: #051937;
}

body {
  background: linear-gradient(6deg,rgba(5, 25, 55, 1) 0%, rgba(5, 25, 55, 1) 11%, rgba(5, 25, 55, 1) 29%, rgba(10, 28, 59, 1) 44%, rgba(13, 30, 61, 1) 63%, rgba(19, 34, 65, 1) 73%, rgba(24, 38, 70, 1) 80%, rgba(29, 42, 74, 1) 85%, rgba(34, 46, 79, 1) 100%);
  padding: 0;
  margin: 0;
  width: 100%; 
  min-height: 100vh;
  box-sizing: border-box; 
  color: white;
  font-family: DejaVu Sans Mono, monospace;
  scroll-behavior: smooth;
  padding-bottom: env(safe-area-inset-bottom);
}

@media (max-width: 1000px) {
  .left-to-right{
    flex-direction: column !important;
  }

  h1{
    font-size: 2.6rem !important;
    padding-top: 40px !important;
  }

  .div1{
    position: static !important;
    height: auto !important;
  }

  .div2{
    padding-right: 10px;
    padding-left: 40px !important;
  }

  .p1{
    padding-top:0px !important;
  }

  .section-links{ 
    display: none !important;
    pointer-events: none !important;
  }
}

@media (max-width: 600px) {
  h1{
    font-size: 2rem !important;
    padding-top: 20px !important;
  }

  .div1, .div2{
    padding-left: 20px!important;
  }

  .contact-form{
    width: max(200px, 50%) !important;
  }

  .projects{
    flex-direction: column;
    padding-right: 8px !important;
    margin-right: 10px !important;
  }

  .projects img{
    width: 100% !important;
    height: 60% !important;
    margin-right: 0px !important;
    margin-bottom: 8px;
  }
}

@media (max-width: 300px) {
  h1{
    padding-top: 20px !important;
    font-size: 1.7rem !important;
  }

  .div1, .div2{
    padding-left: 16px!important;
  }
}

h1 {
  font-family: DejaVu Sans Mono, monospace;
  font-size: 3rem;
  font-weight: bold;
  text-align: center;
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
}

h2 {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
}

h3 {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
}

h4 {
  color: rgba(148, 148, 148, 0.6);
  margin: 0;
  padding-top: 12px;
}

p {
  color: rgb(148, 148, 148);
}

.left-to-right {
  display: flex;
  flex-direction: row;
}

.div1, .div2{
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start; 
}

.div1{
  height: 100vh;

  padding-right: 10px;
  padding-left: 40px;
    
  flex: 43%;
  align-self: flex-start;
  top: 0px;
  position: sticky;
}
.div2{
  padding-left: 20px;
  padding-bottom: 20px;
  flex: 57%;
  min-width: 0;
}

.p1{
  padding-top:65px;
}

.subtitle {
  max-width: 38ch;
}


/* Button group styling */
.section-links{
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.section-links a{
  text-decoration: none;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.70);
  width: fit-content;
  transition: color 0.15s ease, transform 0.15s ease;
  margin-top: 10px;
}

.section-links a:hover{
  color: rgba(255,255,255,0.92);
  transform: translateX(3px);
}

.social-icons{
  margin-top: auto;
  padding-top: 18px;
  padding-bottom: 11px;
  display: flex;
  gap: 14px;
}

.social-icons a{
  color: rgba(190, 190, 190, 0.7);
  font-size: 1.25rem;
  text-decoration: none;
  transition: color 0.15s ease, transform 0.15s ease;
}

.social-icons a:hover{
  color: rgba(255,255,255,0.90);
  transform: translateY(-2px);
}

/* Projects section */

.projects {
  display: flex;
  margin-top: 10px;
  padding: 8px;
  border-radius: 16px;
  transition: background-color 190ms ease;

  
  text-decoration: none;
}

.projects:hover{
  background-color: rgba(254, 254, 254, 0.05)
}

.projects:link{
  color: rgb(148, 148, 148);
}

.projects:visited{
  color: rgb(148, 148, 148);
}

.projects img{
  width: 160px;
  height: 110px;
  margin-right: 20px;
  margin-bottom: 18px;

  border-radius: 16px;
}

.projects span{
  font-size: 0.85rem;
}


/* TAGS */

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin-bottom: 0;
}

.tags li{
  padding: 6px 12px;
  border-radius: 999px;
  color: #64D2FF;
  border: 1px solid rgba(100, 210, 255, 0.45);
  background: rgba(100, 210, 255, 0.12);
  font-size: 0.85rem;
}