/* Added new color variables for teal accent and updated design tokens */
:root {
  --primary: #0f172a;
  --primary-light: #1e293b;
  --primary-lighter: #334155;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --accent: #06b6d4;
  --accent-hover: #0891b2;
  --border: rgba(255, 255, 255, 0.1);
}

* {
  box-sizing: border-box;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}

body {
  line-height: 1;
}

ol,
ul {
  list-style: none;
}

blockquote,
q {
  quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
  content: "";
  content: none;
}

a {
  text-decoration: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

iframe {
  max-width: 100%;
  vertical-align: middle;
}

picture {
  display: block;
  max-width: 100%;
}

/* Added animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

body {
  background-color: var(--primary);
}

header {
  position: sticky;
  top: 0px;
  width: 48%;
  max-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  padding-block: 6rem;
}

header .social {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 20px;
  height: 100vh;
}

.social__item img {
  width: 30px;
  height: 30px;
  transition: all 0.25s ease;
}

.social__item img:hover {
  opacity: 0.7;
  transform: scale(1.1);
  filter: hue-rotate(180deg) brightness(1.1);
}

/* ---------- MAIN LAYOUT ---------- */
main {
  padding-block: 6rem;
  width: 52%;
}

section {
  margin-bottom: 4rem;

}

section:last-child {
  margin-bottom: 0;
}

.page-wrapper {
  max-width: 1280px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 3rem;
  padding-right: 3rem;
}

.page-content {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 1rem;

}

/* ---------- HERO ---------- */
.hero__name {
  font-size: 3rem;
  font-weight: 700;
}

.hero__name a {
  text-decoration: none;
  color: #fff;
  transition: color 0.3s ease;
}

.hero__name a:hover {
  color: var(--accent);
}

.hero__title {
  font-size: 1.25rem;
  margin-top: 7px;
  color: var(--text-muted);
}

.hero__subtitle {
  margin-top: 16px;
  line-height: 1.5;
  color: var(--text-muted);
}

/* Added hero CTA buttons styling */
.hero__ctas {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.cta-button--primary {
  background-color: var(--accent);
  color: var(--primary);
}

.cta-button--primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(6, 182, 212, 0.3);
}

.cta-button--secondary {
  background-color: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.cta-button--secondary:hover {
  background-color: rgba(6, 182, 212, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(6, 182, 212, 0.2);
}

/* ---------- NAVIGATION ---------- */
.nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-top: 2rem;
  z-index: 1000;
  backdrop-filter: blur(6px);
  padding: 0.5rem 0;
}

.nav__list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav__item a {
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  position: relative;
  transition: color 0.3s ease;
}

.nav__item a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--accent);
  transition: width 0.3s ease;
}

.nav__item a:hover::after {
  width: 100%;
}

.nav__item a:hover {
  color: var(--accent);
}

.nav__item a.active {
  color: #06b6d4;
  /* accent color */
}



/* ---------- ABOUT ---------- */
.about {}

.about-intro,
.about-current-role,
.about-hobby {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 26px;
  margin-bottom: 1rem;
}

/* Added skills section styling */
.skills-section {
  margin-bottom: 4rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.skill-category {
  padding: 1.5rem;
  border-radius: 12px;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.skill-category:hover {
  background-color: rgba(6, 182, 212, 0.05);
  border-color: var(--accent);
  transform: translateY(-4px);
}

.skill-category__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.skill-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.skill-item {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding-left: 0;
  display: flex;
  align-items: center;
  transition: color 0.2s ease;
  cursor: pointer;
}

.skill-item::before {
  content: "▸";
  color: var(--accent);
  margin-right: 0.5rem;
}

.skill-item:hover {
  color: var(--text);
}

/* ---------- EXPERIENCE ---------- */
.experience-item {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  padding: 1.5rem;
  border-radius: 12px;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  text-decoration: none;
  margin-bottom: 16px;
}

.experience-item:hover {
  background-color: rgba(6, 182, 212, 0.08);
  border-color: var(--accent);
  transform: translateY(-4px);
}

.experience-duration {
  flex-shrink: 0;
  min-width: 80px;
  text-align: left;
  font-size: 0.85rem;
  font-weight: 500;
  color: #94a3b8;
  line-height: 1.2;
  width: 140px;
}

.experience-start {
  position: relative;
  padding-right: 12px;
}

.experience-start::after {
  content: "–";
  position: absolute;
  right: 2px;
  color: #64748b;
}

.experience-role {
  font-size: 1rem;
  font-weight: 600;
  color: #e2e8f0;
  margin: 0;
}

.experience-description {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: #94a3b8;
  line-height: 1.6;
  max-width: 600px;
  padding-left: 20px;
}

.experience-description li {
  list-style: disc;
  color: rgb(148, 163, 184);
}

.experience-tech {
  margin-top: 1rem;
}

.experience-tech h4 {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--accent);
  font-size: 0.95rem;
}

.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.tech-list li {
  background-color: var(--accent);
  color: var(--primary);
  padding: 0.3rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 700;
  transition: all 0.2s ease;
}

.tech-list li:hover {
  background-color: var(--accent-hover);
  transform: scale(1.05);
}

/* ---------- RESUME LINK ---------- */
.resume-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s ease, transform 0.25s ease;
  position: relative;
  margin-top: 20px;
}

.resume-link::after {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='1.8' d='M17 8l4 4m0 0l-4 4m4-4H3'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='1.8' d='M17 8l4 4m0 0l-4 4m4-4H3'/%3E%3C/svg%3E") no-repeat center / contain;
  transition: transform 0.35s ease, opacity 0.3s ease;
  margin-left: 6px;
  opacity: 0.8;
  transform: rotate(320deg);
}

.resume-link:hover {
  color: var(--accent-hover);
}

.resume-link:hover::after {
  transform: translateX(6px) rotate(360deg);
  opacity: 1;
}

/* ---------- PROJECTS ---------- */
.projects-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.project-card {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 1.5rem;
  width: 100%;
  padding: 1rem;
  border-radius: 12px;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: all 0.3s ease;
}

.project-card:hover {
  background-color: rgba(6, 182, 212, 0.08);
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.project-img {
  flex-shrink: 0;
  width: 200px;
  height: 120px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid var(--border);
}

.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.project-card:hover .project-img img {
  transform: scale(1.05);
}

.project-content {
  flex: 1;
}

.project-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.project-description {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.section-heading {
  display: none;
  color: #fff;
}

.footer {
  color: var(--text-muted);
  text-align: center;
  margin-top: 10px;
}

.footer.pc {
  display: block;
}

.footer.sp {
  display: none;
}

.footer-copy {
  font-size: 0.9rem;
  color: #8892b0;
}


/* ---------- MEDIA QUERIES ---------- */


@media (max-width:1199px) {
  .page-wrapper {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  main {
    width: 60%;
  }

  header {
    width: 40%;
  }
}

@media (max-width: 991px) {
  .footer.pc {
    display: none;
  }

  .header__info {
    width: 100%;
  }

  .footer.sp {
    display: block;
  }

  .project-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .project-img {
    width: 100%;
    height: 180px;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .hero__ctas {
    flex-direction: column;
    max-width: 327px;
    width: 100%;
    margin-inline: auto;
  }

  .hero__name a {
    display: block;
    text-align: center;
  }

  .cta-button {
    width: 100%;
    justify-content: center;
  }

  .page-content {
    flex-direction: column;
  }

  .page-wrapper {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    padding-block: 3rem 1rem;
  }

  .header {
    position: relative;
    width: 100%;
    padding-block: 0;
  }

  .nav {
    display: none;
  }

  header .social {
    height: auto;
    margin-top: 1.25rem;
    margin-inline: auto;
  }

  .main-content {
    width: 100%;
    padding-block: 2rem;
  }

  .hero__name {
    font-size: 2.25rem;
  }

  .hero__title {
    font-size: 1.125rem;
    margin-top: 0.75rem;
    text-align: center;
  }

  .hero__subtitle {
    text-align: center;
  }

  .experience-item {
    flex-direction: column;
    padding: 1rem;
  }

  .section-heading {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.25rem;
    padding-block: 1.25rem;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
  }

  .social__item img {
    width: 24px;
    height: 24px;
    gap: 1.25rem;
    list-style: none;
  }

  .skill-category:hover {
    transform: translateY(0);
  }

  .skill-item:hover {
    color: var(--text-muted);
  }

  .project-card:hover {
    transform: translateY(0);
  }

  .experience-item:hover {
    transform: translateY(0);
  }

}

@media (max-width: 600px) {
  .nav__list {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }

  .footer-container {
    gap: 0.6rem;
    padding: 0 1rem;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }
}