:root {
  --theme-start: #55E5E5;
  --theme-end: #FFA2FF;
  --theme-gradient: linear-gradient(135deg, var(--theme-start), var(--theme-end));
  --theme-soft-bg: linear-gradient(135deg, rgba(85,229,229,0.15), rgba(255,162,255,0.15));
}

@font-face {
  font-family: 'PFStardust';
  src: url('fonts/PF스타더스트 3.0.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}



body 
{
    background: #f8f9fa;
    font-family: 'Gowun Dodum', sans-serif !important;
    color: #555;
    margin: 0;
    padding: 0;
  }
  .layout {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin-top: 40px;
  }
  .main-wrapper {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    width: 1200px;
    margin: 40px auto;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(85, 229, 229, 0.15);
    height: 700px;
    border: 2px solid transparent;
    border-image-slice: 1;
    border-image-source: var(--theme-gradient);
    position: relative;
  }

  /* Diary spiral binding - center spine and rings */
  .main-wrapper::before { content: none; }
  .main-wrapper::after { content: none; }
  .profile {
    width: 300px;
    background: var(--theme-soft-bg);
    border-right: 2px dashed var(--theme-start);
    text-align: center;
    padding: 32px 0;
    align-self: stretch;
    box-sizing: border-box;
    border-radius: 18px 0 0 18px;
  }
  .today {
    width: 190px;
    border-radius: 10px;
    margin-bottom: 12px;
    border: 2px solid var(--theme-start);
    margin-left: auto;
    margin-right: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5px;
  }
  .today p {
    margin: 0;
  }
  .avatar {
    width: 200px;
    height: 200px;
    border-radius: 16px;
    margin-bottom: 12px;
    border: 2px solid var(--theme-start);
  }
     .profile h2 {
     font-family: 'Gowun Dodum', sans-serif;
     margin: 8px 0 4px 0;
     background: var(--theme-gradient);
     -webkit-background-clip: text;
     background-clip: text;
     color: transparent;
   }
  .profile p {
    font-size: 1rem;
    color: #555;
  }
  .minihome {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 32px;
    overflow-y: auto;
  }
  .miniroom {
    position: relative;
    width: 700px;
    height: 400px;
    margin-bottom: 24px;
    background: var(--theme-soft-bg);
    border: 2px solid var(--theme-start);
    border-radius: 12px;
    overflow: hidden;
  }
  .miniroom video {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .welcome-msg {
    text-align: center;
    background: var(--theme-soft-bg);
    border: 2px dashed var(--theme-start);
    padding: 15px 25px;
    border-radius: 12px;
    flex: 1;
  }
     .welcome-msg h1 {
     font-family: 'Gowun Dodum', sans-serif;
     font-size: 1.9rem;
     margin: 0 0 5px 0;
     background: var(--theme-gradient);
     -webkit-background-clip: text;
     background-clip: text;
     color: transparent;
   }
  .welcome-msg p {
    margin: 0;
    color: #555;
    font-size: 1rem;
  }
  .top-container {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    width: 700px;
    margin-bottom: 20px;
    gap: 20px;
  }
  .guestbook-preview {
    background: var(--theme-soft-bg);
    border: 2px dashed var(--theme-start);
    padding: 15px 25px;
    border-radius: 12px;
    flex: 1;
  }
     .guestbook-preview h3 {
     font-family: 'Gowun Dodum', sans-serif;
     font-size: 1.6rem;
     margin: 0 0 10px 0;
     text-align: left;
     background: var(--theme-gradient);
     -webkit-background-clip: text;
     background-clip: text;
     color: transparent;
   }
  .guestbook-preview ol {
    list-style-type: disc;
    padding-left: 20px;
    margin: 0;
  }
  .guestbook-preview li {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 5px;
  }
  .guestbook-preview li span {
    font-weight: bold;
    background: var(--theme-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
  .side-menu {
    position: absolute;
    top: 30%;
    right: -120px;
    transform: translateY(-50%);
    z-index: 10;
    width: 120px;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 0;
    border-radius: 0 18px 18px 0;
  }
  .side-menu::before {
    content: "";
    position: absolute;
    left: 20px;
    top: 0;
    width: 6px;
    height: 100%;
    background: #fff;
    border-radius: 3px;
  }
  .side-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    z-index: 1;
  }
  .side-menu li {
    margin-bottom: 10px;
    width: 100%;
  }
  .side-menu a {
    display: block;
    width: 90px;
    margin-left: 10px;
    padding: 10px 0;
    text-align: center;
    color: #fff;
    background: var(--theme-start);
    font-weight: bold;
    border-radius: 6px 0 0 6px;
    text-decoration: none;
    font-size: 1.1rem;
    box-shadow: 1px 2px 4px rgba(0,0,0,0.07);
    border-left: 4px solid #fff;
    transition: background 0.2s, color 0.2s;
    position: relative;
    font-family: 'PFStardust', sans-serif;
    line-height: 1.1;
    min-height: 40px;
    box-sizing: border-box;
  }
  /* Post-it index notch */
  .side-menu a::after { content: none; }
  .side-menu li.active a {
    background: var(--theme-gradient);
    color: #fff;
  }
  .side-menu li.active a:hover {
    background: var(--theme-gradient);
  }
  .side-menu a:hover {
    background: var(--theme-end);
    color: #fff;
  }

/* Profile Page Additions */
.profile-main {
  width: 100%;
  text-align: center;
  margin-bottom: 30px;
}

.profile-large-img {
  width: 60%;
  height: auto;
  border-radius: 16px;
  border: none;
  object-fit: cover;
}

.profile-details {
  width: 100%;
  max-width: 700px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.profile-section {
  background: var(--theme-soft-bg);
  border: 2px dashed var(--theme-start);
  padding: 10px 15px;
  border-radius: 12px;
  margin-bottom: 0;
  text-align: left;
  flex: 1 1 calc(50% - 10px);
  box-sizing: border-box;
}

 .profile-section h2 {
   font-family: 'Gowun Dodum', sans-serif;
   font-size: 1.5rem;
   margin: 0 0 15px 0;
   border-bottom: 2px solid var(--theme-start);
   padding-bottom: 10px;
   background: var(--theme-gradient);
   -webkit-background-clip: text;
   background-clip: text;
   color: transparent;
 }

.profile-section ul {
  list-style-type: disc;
  list-style-position: inside;
  padding-left: 3px;
  margin:0;
}

.profile-section li {
  margin-bottom: 5px;
  font-size: 0.9rem;
  color: #555;
}

.project {
  margin-bottom: 15px;
}

.project:last-child {
  margin-bottom: 0;
}

.project h3 {
  font-size: 1.1rem;
  margin: 0 0 5px 0;
  font-family: 'Gowun Dodum', sans-serif;
  font-weight: bold;
  background: var(--theme-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.project p {
    font-size: 0.95rem;
    margin: 0;
    color: #555;
}

.profile-section .skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style-type: none;
  padding: 0;
  justify-content: flex-start;
  align-items: center;
}

.profile-section .skill-list li {
  margin: 0;
}

.skill-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

/* Design Page Additions */
.portfolio-container {
  width: 90%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.portfolio-item {
  display: flex;
  gap: 20px;
  background: var(--theme-soft-bg);
  border: 2px dashed var(--theme-start);
  padding: 20px;
  border-radius: 12px;
  align-items: center;
}

.portfolio-thumbnail {
  flex-shrink: 0;
}

.portfolio-thumbnail img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
}

.portfolio-description {
  text-align: left;
  flex-grow: 1;
}

 .portfolio-description h3 {
   font-family: 'Gowun Dodum', sans-serif;
   font-size: 1.8rem;
   margin: 0 0 10px 0;
   background: var(--theme-gradient);
   -webkit-background-clip: text;
   background-clip: text;
   color: transparent;
 }

.portfolio-description p {
  margin: 0 0 8px 0;
  font-size: 0.95rem;
}

.portfolio-description p strong {
  background: var(--theme-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.btn-view-more {
  display: inline-block;
  background: var(--theme-start);
  color: #fff;
  padding: 8px 15px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  margin-top: 10px;
  transition: background-color 0.2s, filter 0.2s;
  font-family: 'PFStardust', sans-serif;
}

.btn-view-more:hover {
  background: var(--theme-end);
}

/* Modal Styles */
.modal {
  display: none; 
  position: fixed; 
  z-index: 20; 
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%; 
  height: 100%; 
  overflow: auto; 
  background-color: rgba(0,0,0,0.85); 
}

.modal-content-container {
  margin: auto;
  display: block;
  width: 90%;
  position: relative;
}

.modal-content-container.figma-container {
    height: calc(100vh - 120px);
}

.modal-media { /* For img and video */
  display: block;
  max-width: 80vw;
  max-height: 80vh;
  width: auto;
  height: auto;
  margin: 0 auto;
}

.modal-figma { /* The iframe itself */
    width: 100%;
    height: 100%;
    border: none;
    background: #fff;
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  z-index: 21; /* Make sure it's above content */
}

.close-modal:hover,
.close-modal:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

/* Contact Page Additions */
.contact-container {
  width: 90%;
  background: var(--theme-soft-bg);
  border: 2px dashed var(--theme-start);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
}

 .contact-container h2 {
   font-family: 'Gowun Dodum', sans-serif;
   font-size: 2rem;
   margin: 0 0 15px 0;
   background: var(--theme-gradient);
   -webkit-background-clip: text;
   background-clip: text;
   color: transparent;
 }

.contact-container h2 .icon {
  font-size: 1.5rem;
  vertical-align: middle;
}

.contact-container .thank-you {
  font-size: 1rem;
  margin-bottom: 25px;
}

.contact-info {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 25px;
}

.contact-item {
  text-align: center;
}

.contact-item h3 {
  font-family: 'Gowun Dodum', sans-serif;
  font-weight: bold;
  margin: 0 0 5px 0;
  background: var(--theme-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.contact-item p {
  margin: 0;
  font-size: 1rem;
}

 .contact-container .closing-msg {
   font-family: 'Gowun Dodum', sans-serif;
   font-size: 1.3rem;
   color: #555;
   margin-top: 20px;
 }

/* Custom Scrollbar Styles */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--theme-soft-bg);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: var(--theme-gradient);
  border-radius: 10px;
  border: 2px solid #fff;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, var(--theme-end), var(--theme-start));
}