/* COOL BACKGROUND :D */
#up, #down, #left, #right {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: floaty 40s infinite;
  animation-fill-mode: both;
}
#up {
  height: 800px; width: 800px;
  background-image: linear-gradient(80deg, rgb(5, 124, 172), rgba(43, 247, 202, 0.5));
  animation-name: down;
}
#down {
  right: 0;
  height: 500px; width: 500px;
  background-image: linear-gradient(80deg, rgba(245, 207, 82, 0.8), rgba(199, 10, 114));
  animation-name: up;
}
#left {
  height: 500px; width: 500px;
  background-image: linear-gradient(80deg, rgba(5, 124, 172), rgba(183, 253, 52, 0.8));
  animation-name: left;
  animation-delay: 1s;
}
#right {
  height: 500px; width: 500px;
  background-image: linear-gradient(80deg, rgba(26, 248, 18, 0.6), rgba(199, 10, 52, 0.8));
  animation-name: right;
  animation-delay: 1.5s;
}

/* (responsive background) */
@media (max-width: 768px) {
  #up, #down, #left, #right {
    filter: blur(40px);
  }
  #up {
    height: 400px; width: 400px;
  }
  #down, #left, #right {
    height: 250px; width: 250px;
  }
}

@keyframes down{
  0%, 100% {
    bottom: -100px;
  }
  70%{
    bottom: 700px;
  }
}
@keyframes up{
  0%, 100% {
    top: -100px;
  }
  70%{
    top: 700px;
  }
}
@keyframes left{
  0%, 100% {
    left: -100px;
  }
  70%{
    left: 1300px;
  }
}
@keyframes right{
  0%, 100% {
    right: -100px;
  }
  70%{
    right: 1300px;
  }
}

/* GLOBAL */
body {
  margin: 0;
  padding: 10px;
  min-height: 100vh;
  height: 100vh;
  background-image: linear-gradient(80deg, rgb(5, 124, 172), rgb(199, 10, 114));
  overflow: hidden;
  font-family: 'Poppins', sans-serif;
  font-weight: 300; 
  font-size: 16px; 
  color: #222;
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(80deg, rgb(5, 124, 172), rgb(199, 10, 114));
  z-index: -1; 
}


.window {
  background: white;
  border-radius: 12px;
  border-style: solid;
  border-width: 2px;
  border-color: #888888;
  box-shadow: 0 4px 0px rgba(0,0,0,0.15);
  display: none;
  flex-direction: column;
  position: absolute;
  z-index: 1;
  max-width: 90vw;
  max-height: 90vh;
  overflow: hidden;
}

.window-header {
  background: #333;
  border-radius: 10px 10px 0 0;
  font-family: 'Roboto Mono', monospace;
  font-size: 16px;
  font-weight: 300;
  color: white;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-transform: lowercase;
  cursor: move; 
  position: sticky;
  top: 0;
  z-index: 10;
  user-select: none;
}

.window-header button.close-btn {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
}

.window-body {
  padding: 20px 40px 40px;
  text-align: left;
  overflow-x: hidden;
  overflow-y: auto; 
  flex: 1;
}

/* (responsive window body padding) */
@media (max-width: 768px) {
  .window-body {
    padding: 15px 20px 25px;
  }
}

h1 {
  font-weight: 400;
  font-size: 2.5rem;
  color: black;
}

h2 {
  font-weight: 500;
  font-size: 1.75rem;
  color: black;
}

h3 {
  font-weight: 500;
  font-size: 1.25rem;
  color: #222;
}

h4 {
  font-weight: 400;
  font-size: 1rem;
  color: #222;
}

p {
  font-weight: 300; 
  font-size: 1rem;  
  color: #222;
}

span {
  font-weight: 300;
  font-size: 0.875rem;
  color: #777;
}

/* responsive font sizes */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.5rem;
  }
  h3 {
    font-size: 1.125rem;
  }
  p {
    font-size: 0.9rem;
  }
  span {
    font-size: 0.8rem;
  }
}

/* HOME WINDOW */
.home {
  width: 600px;
  display: flex;
  position: relative;
  z-index: 1;
}

.home .window-header {
  cursor: default;
}

.home .window-body h1 { 
  margin-top: 60px;
  margin-bottom: 0px;
  text-align: center;
}

.home .window-body h4 {
  margin-top: 0px;
  margin-bottom: 30px;
  text-align: center;
}

/* (responsive home window) */
@media (max-width: 768px) {
  .home {
    width: 95vw;
    max-width: 500px;
  }
  .home .window-body h1 {
    margin-top: 30px;
  }
}

/* ABOUT WINDOW */
#about {
  display: none; 
  width: 650px;
  height: 550px;
  position: absolute;
  z-index: 2;
}

.about-header {
  display: flex;
  border-bottom: 2px dotted #999;
  margin-bottom: 20px;
  gap: 20px;
}

.about-left img {
  width: 150px;
  height: 150px;
  border-radius: 50%; 
  object-fit: cover;
  flex-shrink: 0;
}

.about-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
}

/* (responsive about window) */
@media (max-width: 768px) {
  #about {
    width: 95vw;
    height: 80vh;
  }
  .about-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0px;
  }
  .about-left img {
    width: 120px;
    height: 120px;
  }
}

#about h2 {
  margin-top: 0px;
  margin-bottom: -10px;
}

#about h3 {
  margin-top: 40px;
  margin-bottom: 10px;
}

#about h4 {
  margin-top: 10px;
}

#about p {
  margin-bottom: 10px;
}

#about span {
  display: block;
  margin-top: 12px;
}

#about ul {
  margin: 0px; 
  padding-left: 20px; 
}

.education-section {
  padding-left: 20px;
  border-left: 2px solid #ccc;
  margin-top: 20px;
}

@media (max-width: 768px) {
  .education-section {
    padding-left: 15px;
  }
}

.education-collapsible, .experience-collapsible {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 1rem;
  text-align: left;
  color: #222;
  background-color: #eee;
  width: 100%;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  margin-top: 20px;
}

.education-collapsible {
  padding: 16px;
}

.experience-collapsible {
  padding: 0px 16px 10px;
}

.education-collapsible:hover, .experience-collapsible:hover {
  background-color: #ccc;
}

.education-collapsible:after { 
  font-family: 'Material Symbols Outlined';
  content: 'add'; 
  font-size: 20px;
  float: right;
}

.education-active {
  background-color: #eee;
  border-radius: 10px 10px 0 0;
}

.education-active:after { 
  font-family: 'Material Symbols Outlined';
  content: 'remove'; 
  font-size: 1.25rem;
}

.experience-collapsible:after { 
  font-family: 'Material Symbols Outlined';
  content: 'expand_more'; 
  font-size: 1.25rem;
  float: right;
  margin-top: -80px;
}

.experience-active {
  background-color: #eee;
  border-radius: 10px 10px 0 0;
}

.experience-active:after { 
  font-family: 'Material Symbols Outlined';
  content: 'expand_less';
  margin-top: -80px;
}

.education-container, .experience-container {
  display: none;
  overflow: hidden;
  flex-direction: row;
  flex-wrap: wrap;
  padding: 10px 20px 20px;
  border-radius: 0 0 10px 10px;
  background-color: #eee;
}

.course {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  border-radius: 10px;
  border-style: solid;
  border-width: 1px;
  border-color: #eaeaea;
  background-color: white;
  box-shadow: 0 4px 0px rgba(0,0,0,0.15);
  padding: 10px;
  margin: 0 2px 8px; 
  transition: all 0.1s ease;
}

#about .course p {
  font-family: 'Roboto Mono', monospace;
  font-size: 0.875rem;
  margin: 0px;
}

#about .experience-container li {
  font-size: 0.875rem;
}

.course:hover {
  transform: scale(1.03);
}

/* SKILLS WINDOW */
#skills {
  display: none; 
  width: 550px;
  height: 500px;
  position: absolute;
  z-index: 2;
}

/* (responsive skills window) */
@media (max-width: 768px) {
  #skills {
    width: 95vw;
    height: 70vh;
  }
}

.skill-container {
  display: flex;
  width: 100%;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px; 
  margin-bottom: 40px;
}

.skill {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  border-radius: 10px;
  border-style: solid;
  border-width: 1px;
  border-color: #eaeaea;
  box-shadow: 0 4px 0px rgba(0,0,0,0.15);
  padding: 10px;
  transition: all 0.1s ease;
}

#skills h3 {
  margin-bottom: 10px;
}

#skills p {
  font-family: 'Roboto Mono', monospace;
  font-size: 0.875rem;
  margin: 0px;
}

#skills ul {
  margin: 0px; 
  padding-left: 20px; 
}

.skill a {
  font-family: 'Roboto Mono', monospace;
  font-size: 0.875rem;
  color: #222;
  margin: 0px;
  text-decoration: none;
}

.skill a:hover {
  text-decoration: underline;
}

.skill:hover {
  transform: scale(1.03);
}

/* PROJECTS WINDOW */
#projects {
  display: none; 
  width: 800px;
  height: auto;
  position: absolute;
  z-index: 2;
}

/* (responsive projects window) */
@media (max-width: 768px) {
  #projects {
    width: 95vw;
    max-height: 85vh;
  }
}

.project-container, .projects-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px; 
  padding: 0px 20px;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .project-container, .projects-container {
    padding: 10px;
  }
}

.project {
  display: flex;
  gap: 20px;
  border-radius: 15px;
  border-style: solid;
  border-width: 1px;
  border-color: #eaeaea;
  box-shadow: 0 4px 0px rgba(0,0,0,0.15);
  padding: 30px 20px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  transition: all 0.3s ease;
  margin-top: 30px;
}

/* (responsive projects) */
@media (max-width: 768px) {
  .project {
    flex-direction: column;
    gap: 15px;
    padding: 20px 15px;
    margin-top: 20px;
  }
}

.project-left {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.project-left img {
  width: 200px;
  height: 200px;
  border-radius: 6px;
  border-style: solid;
  border-width: 1px;
  border-color: #eaeaea;
}

/* (responsive project images) */
@media (max-width: 768px) {
  .project-left {
    align-items: center;
  }
  .project-left img {
    width: 150px;
    height: 150px;
  }
}

.project-right {
  flex: 2;
  display: flex;
  flex-direction: column;
}

.project-right p {
  margin-bottom: 10px;
  margin-top: 0px;
}

.project-right a {
  color: #0077cc;
  text-decoration: none;
}

.project-right a:hover {
  text-decoration: underline;
}

.project:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 4px rgba(0,0,0,0.15);
}

/* ICONS */
.icons {
  display: flex;
  justify-content: center;  
  gap: 40px;
  margin-top: 40px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

/* (responsive icons) */
@media (max-width: 768px) {
  .icons {
    gap: 20px;
    margin-top: 30px;
    margin-bottom: 30px;
  }
}

@media (max-width: 480px) {
  .icons {
    gap: 15px;
  }
}

.icon {
  display: flex;              
  flex-direction: column;  
  align-items: center; 
  cursor: pointer;
  text-align: center;
  transition: transform 0.2s ease;
  min-width: 60px;
}

.icon:hover {
  transform: scale(1.1);
}

.icon img {
  width: 40px;
  height: 40px;
  margin-bottom: 5px;    
}

.icon span {
  font-family: 'Roboto Mono', monospace;
  font-weight: 600;
  font-size: 1rem;
  color: black;
  margin-top: 5px;
}

/* (responsive icon sizes) */
@media (max-width: 480px) {
  .icon img {
    width: 35px;
    height: 35px;
  }
  .icon span {
    font-size: 0.9rem;
  }
}

/* (other responsive stuff) */
@media (max-width: 480px) {
  body {
    padding: 5px;
  }
  
  .window-header {
    padding: 12px 15px;
    font-size: 14px;
  }
  
  .course, .skill {
    white-space: normal;
    text-align: center;
  }
}