@import url('https://fonts.googleapis.com/css?family=Roboto');

.grid-2{
    display: grid;
    grid-template-columns: 1fr 3fr;
}

body{
    margin: 0;
    padding: 20px;
    font-family: 'Lato', sans-serif;
    background-color: white;
    color: #7A7C80;
}

h2,.black{
    color: #000;
}

a{
    color: #7A7C80;
    text-decoration: none;
}

.section-1{
    padding-top: 40vh;
    text-align: center;
}

.section-1 p{
    font-size: 1.1rem;
    padding-bottom: 10px;
    margin:0;
}

.section-1 h2{
    font-size: 1.7rem;
    margin-bottom: 10px;
}

.section-1 a{
    font-size: 1.5rem;
    padding: 10px;
}

.section-2{
    padding-top: 10vh;
    width: 90%;
}

.section-2 h2{
    font-size: 1.7rem;
    margin-bottom: 10px;
}

.section-2 p{
    font-size: 1rem;
    padding-bottom: 10px;
    margin:0;
}

.section-2 a {
    font-size: 1rem;
    padding-left: 0;
    width: 100px;
    background: transparent; 
    color: black; 
  }
  
  .section-2 a:hover {
    color: rgb(123, 153, 101); 
    background-color: transparent; 
  }

.section-1 a:hover{
    color: rgb(123, 153, 101); 
    background-color: transparent;
    cursor: pointer;
    transition: 0.3s;
}

.white:hover{
    position: relative;
    padding-left: 10px;
}

img {
    width: 100px;
    height: auto;
}

@media(max-width:780px){
    .grid-2{
        grid-template-columns: 1fr;
    }
    .section-1{
        padding:0;
        padding-top: 5rem;
    }
    .section-2{
        padding: 0;
        padding-left: 1.5rem;
        padding-top: 2rem;
    }
}

.section-1 h2 .chinese-name {
    display: inline;
}

@media(max-width:1100px){
    .section-1 h2 .chinese-name {
        display: block;
    }
}

.portfolio-container {
margin: 0 auto;
padding: 10px;
}

.portfolio-container h2 {
text-align: center;
margin-bottom: 0px;
font-size: 24px;
color: #333;
}

.dropdown-container {
margin-bottom: 0px;
text-align: left;
}
  
.photo-grid,
.art-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  padding: 10px;
}

.photo-grid img,
.art-grid img {
  width: 100%;
  height: 190px;
  border-radius: 8px;
  object-fit: cover;
  aspect-ratio: 1 / 1;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.photo-grid img:hover,
.art-grid img:hover {
  transform: scale(1.05);
}

.popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.popup-art,
.popup-image {
  max-width: 90%;
  max-height: 90%;
  width: auto;
  height: auto;
  border-radius: 8px;
  object-fit: contain;
}

.art-close-btn,
.photo-close-btn {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: white;
  cursor: pointer;
  transition: color 0.3s ease;
}

.art-close-btn:hover,
.photo-close-btn:hover {
  color: #ccc;
}

details summary {
    list-style: none;
    cursor: pointer;
}
  
details summary::-webkit-details-marker {
    display: none;
}
  
details summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    background-color: transparent;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    transition: color 0.3s ease;
}
  
details summary::after {
    content: "▼";
    font-size: 12px;
    color: #666;
    transition: transform 0.3s ease, color 0.3s ease;
}
  
details[open] summary::after {
    transform: rotate(180deg);
    color: #333;
}
  
details summary:hover {
    color: #000;
}
  
details summary:hover::after {
    color: #000;
}
  
details .dropdown-content {
    overflow: hidden;
    display: block;
    transition: max-height 0.4s ease-out, opacity 0.4s ease-out, transform 0.4s ease-out;
}

details .dropdown-container {
    padding: 10px;
    background-color: transparent;
}

details .art-grid,
details .photo-grid {
    padding: 10px;
}

details summary::after {
    content: "\f078";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 12px;
    color: #666;
    transition: transform 0.3s ease, color 0.3s ease;
}

.blog-post {
    background-color: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1), 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.blog-post:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.blog-post h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
    font-size: 1.3rem;
}

.blog-post p {
    margin-bottom: 0;
    color: #7A7C80;
}

.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 16px;
    font-size: 0.68rem;
    font-weight: 500;
    text-transform: lowercase;
    border: 1.5px solid;
}

.tag-animation {
    color: #FF6B9D;
    background-color: rgba(255, 107, 157, 0.15);
    border-color: #FF6B9D;
}

.tag-fashion {
    color: #C77DFF;
    background-color: rgba(199, 125, 255, 0.15);
    border-color: #C77DFF;
}

.tag-music {
    color: #4ECDC4;
    background-color: rgba(78, 205, 196, 0.15);
    border-color: #4ECDC4;
}

.tag-sport {
    color: #45B7D1;
    background-color: rgba(69, 183, 209, 0.15);
    border-color: #45B7D1;
}

.tag-robotics {
    color: #FFA07A;
    background-color: rgba(255, 160, 122, 0.15);
    border-color: #FFA07A;
}

.tag-mlai {
    color: #98D8C8;
    background-color: rgba(152, 216, 200, 0.15);
    border-color: #98D8C8;
}

/* Dark Mode Toggle Button */
.dark-mode-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background-color: white;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.dark-mode-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

/* Dark Mode Styles */
body.dark-mode {
    background-color: #1a1a1a;
    color: #c2c2c2;
}

body.dark-mode h2,
body.dark-mode .black {
    color: #ffffff;
}

body.dark-mode a {
    color: #ffffff;
}

body.dark-mode .section-2 a {
    color: #ffffff;
}

body.dark-mode .section-2 a:hover {
    color: rgb(123, 153, 101);
}

body.dark-mode .section-1 a:hover {
    color: rgb(123, 153, 101);
}

body.dark-mode .portfolio-container h2 {
    color: #e0e0e0;
}

body.dark-mode details summary {
    color: #e0e0e0;
}

body.dark-mode details summary::after {
    color: #b0b0b0;
}

body.dark-mode details[open] summary::after {
    color: #e0e0e0;
}

body.dark-mode details summary:hover {
    color: #ffffff;
}

body.dark-mode details summary:hover::after {
    color: #ffffff;
}

body.dark-mode .blog-post {
    background-color: #2a2a2a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), 0 4px 16px rgba(0, 0, 0, 0.2);
}

body.dark-mode .blog-post:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.3);
}

body.dark-mode .blog-post h3 {
    color: #ffffff;
}

body.dark-mode .blog-post p {
    color: #d0d0d0;
}

body.dark-mode .dark-mode-toggle {
    background-color: #2a2a2a;
    color: #e0e0e0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

body.dark-mode .dark-mode-toggle:hover {
    background-color: #3a3a3a;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
}

body.dark-mode .popup {
    background-color: rgba(0, 0, 0, 0.95);
}
