* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}

body, html {
    width: 100%;
    min-height: 100vh;
    animation: fadeIn 0.6s ease-in;
}

.main {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: row;
    background-color: rgb(255, 239, 170);
    color: rgb(23, 22, 22);
}

.left {
    width: 35%;
    background-color: rgb(255, 255, 253);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
   
    
}

.img {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.img > img {
    width: 150px;
    height: 180px;
    border: 1px solid burlywood;
    border-radius: 80%;
    padding: 5px 5px;
    object-fit: fill;
}

.txt {
    text-align: center;
    margin-bottom: 20px;
}

.txt > p {
    padding: 8px 20px;
    line-height: 1.5;
    color: rgb(44, 40, 40);
}

#about-box {
  background: #fffdea; 
  border: 2px solid #222; 
  padding: 20px;
  border-radius: 12px;
  box-shadow: 6px 6px 0 #ffc862; 
  font-family: 'Trebuchet MS', sans-serif;
  color: #333;
  margin-top: 20px;
  line-height: 1.6;
  transition: 0.3s ease;
}

#about-box:hover {
  transform: translateY(-4px);
  box-shadow: 8px 8px 0 #ffc862;
}

#about-box h3 {
  font-size: 22px;
  margin-bottom: 10px;
  color: #111;
}

#about-box p {
  font-size: 15px;
}

.right {
    width: 65%;
    background-color: #fff8d6;
    background-image: 
      linear-gradient(to bottom, #00000008 1px, transparent 1px),
      linear-gradient(to right, #00000008 1px, transparent 1px);
    background-size: 20px 20px;
    padding: 20px;
    display: flex;
    flex-direction: row;
    gap: 20px;
    position: relative;
    min-height: 400px;
    flex-wrap: wrap;
}
.tab-content-area {
    flex: 1;
    background-color: #ffffffcc;
    padding: 20px;
    border-radius: 10px;
    color: #222;
    min-height: 300px;
    transition: all 0.3s ease;
    overflow-y: auto; 
}
.tab-content {
    display: none;
    margin-top: 20px; 
}

.tab-content.active {
    display: block;
}


.tab-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: absolute;
  top: 20px;
  right: 20px;
}


@media (max-width: 768px) {
  .tab-buttons {
    position: static; /* removes absolute positioning */
    flex-direction: row; /* horizontal buttons */
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
    gap: 10px;
    padding: 10px;
    background: #fff8d6;
    border-top: 2px solid #222;
    box-shadow: 0 -4px 0 #ffc862;
    z-index: 10;
  }

  .tab-buttons button {
    flex: 1 1 auto;
    min-width: auto;
    font-size: 14px;
    padding: 10px;
  }
}


.tab-buttons button {
    padding: 10px 20px;
    border: none;
    background-color: #ffd78f;
    color: #333;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s ease;
    min-width: 100px;
}

.tab-buttons button:hover {
    background-color: #ffba42;
    transform: scale(1.05);
}
@media (max-width: 768px) {
    .right {
        flex-direction: column;
        align-items: stretch;
    }

    .tab-buttons {
        position: static;
        flex-direction: row;
        justify-content: space-around;
        margin-top: 20px;
        gap: 10px;
    }

    .tab-buttons button {
        flex: 1;
        font-size: 14px;
    }
}

@media (max-width: 900px) {
    .main {
        flex-direction: column;
    }

    .left {
        width: 100%;
        height: auto;
    }

    .right {
        width: 100%;
        height: auto;
    }

    .img > img {
        width: 120px;
        height: 120px;
    }
}

.skill-category {
  margin-bottom: 30px;
}

.skill-category h3 {
  font-size: 18px;
  margin-bottom: 12px;
  color: #222;
  background: #fff7bb;
  display: inline-block;
  padding: 4px 12px;
  border-radius: 8px;
  border: 2px solid #222;
  box-shadow: 3px 3px 0 #ffc862;
}

.skill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.skill-item {
  background: #fffce6;
  border: 2px solid #222;
  padding: 12px;
  border-radius: 10px;
  box-shadow: 4px 4px 0 #ffc862;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: 0.2s ease;
  min-width: 150px;
}

.skill-item:hover {
  transform: translateY(-3px);
  box-shadow: 6px 6px 0 #ffc862;
}

.skill-item .icon {
  width: 32px;
  height: 32px;
}

.skill-item .icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.skill-item .content h4 {
  font-size: 14px;
  margin: 0;
  color: #111;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .skill-row {
    flex-direction: column;
    gap: 12px;
  }

  .skill-item {
    width: 100%;
  }
}


.skills-section {
    padding: 30px 20px;
    color: #333;
}

.skills-section h2 {
    text-align: center;
    font-size: 26px;
    margin-bottom: 30px;
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 25px;
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 16px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #bbb;
    border-radius: 2px;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    opacity: 0;
    transform: translateX(-20px);
    animation: slideFade 0.5s forwards;
}

.skill-item:nth-child(1) { animation-delay: 0.1s; }
.skill-item:nth-child(2) { animation-delay: 0.2s; }
.skill-item:nth-child(3) { animation-delay: 0.3s; }
.skill-item:nth-child(4) { animation-delay: 0.4s; }
.skill-item:nth-child(5) { animation-delay: 0.5s; }
.skill-item:nth-child(6) { animation-delay: 0.6s; }

.icon {
    background: #fff;
    border: 2px solid #999;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.icon img {
    width: 20px;
    height: 20px;
}

.content h3 {
    font-size: 16px;
    margin: 0;
}

/* Responsive Skills */
@media (max-width: 600px) {
    .skills-section h2 {
        font-size: 22px;
    }

    .timeline::before {
        left: 12px;
    }

    .icon {
        width: 30px;
        height: 30px;
    }

    .icon img {
        width: 18px;
        height: 18px;
    }

    .content h3 {
        font-size: 14px;
    }
}


@keyframes slideFade {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}


.experience-section {
    padding: 60px 20px;
    background: #fffbe6;
    font-family: 'Noto Sans JP', sans-serif;
}

.experience-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 40px;
    color: #222;
    font-weight: 700;
    letter-spacing: 1px;
    border-bottom: 3px solid #ffc862;
    display: inline-block;
    padding-bottom: 6px;
}

.experience-timeline {
    display: flex;
    flex-direction: column;
    gap: 30px;
    position: relative;
    border-left: 3px solid #111;
    padding-left: 20px;
    max-width: 800px;
    margin: auto;
}

.timeline-card {
    background: #fff;
    border: 2px solid #111;
    border-radius: 14px;
    padding: 18px 20px;
    position: relative;
    box-shadow: 4px 4px 0 #ffc862;
    transition: transform 0.2s ease;
}

.timeline-card:hover {
    transform: translateY(-4px);
}

.timeline-card::before {
    content: '';
    position: absolute;
    top: 20px;
    left: -30px;
    width: 14px;
    height: 14px;
    background: #ffc862;
    border: 2px solid #111;
    border-radius: 50%;
}

.timeline-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #222;
    margin-bottom: 4px;
}

.timeline-company {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 8px;
    font-style: italic;
}

.timeline-description {
    font-size: 0.95rem;
    color: #333;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .experience-section {
        padding: 40px 16px;
    }
    .experience-title {
        font-size: 1.6rem;
    }
    .timeline-title {
        font-size: 1rem;
    }
    .timeline-company {
        font-size: 0.85rem;
    }

    .timeline-description {
        font-size: 0.9rem;
    }

    .timeline-card {
        padding: 16px;
    }
}
.projects-section {
    max-width: 1200px;
    margin: auto;
}

.projects-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 40px;
    color: #222;
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.project-card {
    background-color: #ffffff;
    border: 3px solid black;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 8px 8px 0 #ffc862;
    transition: all 0.2s ease-in-out;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 12px 12px 0 #ffc862;
}

.project-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 10px;
}

.project-desc {
    font-size: 16px;
    line-height: 1.5;
}

.project-link {
    display: inline-block;
    margin-top: 12px;
    color: #111;
    text-decoration: underline;
    font-weight: bold;
}

.project-link:hover {
    color: #000;
}
.social-icons {
  display: flex;
  gap: 16px;
  margin-top: auto;
  justify-content: center;

}

.social-icons a {
  font-size: 22px;
  color: #111;
  background: #ffe77a;
  border: 2px solid #111;
  padding: 10px;
  border-radius: 10px;
  box-shadow: 4px 4px 0 #111;
  transition: transform 0.2s ease;
  text-decoration: none;
}

.social-icons a:hover {
  transform: translateY(-4px);
  box-shadow: 6px 6px 0 #000;
  background: #ffd44d;
}
.quick-facts {
  list-style: none;
  margin: 20px 0;
  padding: 0;
  font-size: 14px;
  color: #444;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quick-facts li {
  background: #fff8c2; 
  border: 1.5px solid #aaa; 
  padding: 8px 12px;
  border-radius: 10px;
  box-shadow: 2px 2px 0 #ddd; 
  transition: all 0.2s ease;
}

.quick-facts li:hover {
  box-shadow: 3px 3px 0 #ccc;
  transform: translateY(-2px);
}
.skills-badge {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

.skills-badge span {
  background: #fffcb4;
  border: 1.5px solid #111;
  box-shadow: 3px 3px 0 #ffc862;
  padding: 6px 12px;
  font-size: 14px;
  border-radius: 6px;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.contact-section {
  margin-top: 20px;
  padding: 25px;
  background-color: #fff9c4;
  border: 3px solid #111;
  border-radius: 18px;
  box-shadow: 8px 8px 0 #ffc862;
}

.contact-section h2 {
  font-size: 28px;
  margin-bottom: 20px;
  color: #111;
  text-align: center;
  background: #fffbe6;
  padding: 6px 12px;
  border: 2px solid #111;
  display: inline-block;
  border-radius: 10px;
  box-shadow: 4px 4px 0 #ffc862;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 600px;
  margin: auto;
}

.contact-form input,
.contact-form textarea {
  padding: 12px 16px;
  font-size: 15px;
  background: #fffef7;
  color: #111;
  border: 2px solid #111;
  border-radius: 12px;
  box-shadow: 4px 4px 0 #ffc862;
  resize: none;
  font-family: inherit;
}

.contact-form button {
  padding: 12px;
  background: #ffec99;
  color: #111;
  border: 2px solid #111;
  border-radius: 12px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 5px 5px 0 #ffc862;
  transition: transform 0.2s ease;
}

.contact-form button:hover {
  transform: translateY(-3px);
  box-shadow: 7px 7px 0 #ffc862;
}


@media (max-width: 768px) {
  .contact-section {
    padding: 20px 15px;
  }

  .contact-form {
    width: 100%;
  }
}

.footer {
  text-align: center;
  padding: 20px;
  color: #666;
  font-size: 13px;
  background-color: #ffc862;
}
