* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: #000;
  color: #e60012;
  font-family: 'Share Tech Mono', monospace;
  padding: 0;
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

h1, h2 {
  margin-top: 0;
  color: #fff;
  text-shadow: 0 0 4px #e60012;
}

.subtitle {
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 2rem;
}

a {
  color: #0f0;
  text-decoration: none;
}

.about-card {
	position: relative;
	justify-self: center;
	max-width: 90%;
	border: 1px solid #e60012;
	margin: 1rem;
	/* padding: 2rem; */
	display: grid;
	grid-template-columns: auto 1fr;
	/* gap: 1rem; */
	grid-template-areas: 
		"subject subject"
		"pfp-bc names"
		"pfp-bc details";
	box-shadow: 0px 0px 10px red;
	z-index: 0;
}

.about-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: repeating-linear-gradient(
		transparent,
		rgba(255, 0, 0, 0.15) 2px,
		transparent 4px
	);
	z-index: 1;
	pointer-events: none;
}

@media (max-width: 675px) {
    .about-card {
      	max-width: none;
      	margin: 0.5rem;
      	/* padding: 1rem; */
      	grid-template-columns: 40% auto;
      	grid-template-areas: 
        	"subject subject"
        	"pfp-bc names"
        	"details details";
  	}
  	.about-card h2 {
    	font-size: 1.1rem;
  	}
}


#subject { 
	grid-area: subject;
	border: 1px solid red;
	padding: 1rem;
}

#pfp-bc {
    grid-area: pfp-bc;
    display: flex;
    flex-direction: column;
	border: 1px solid red;
}

#names {
    grid-area: names;
	border: 1px solid red;
	padding: 1rem;
}

#details {
    grid-area: details;
	border: 1px solid red;
	padding: 1rem;
}

.flex {
    display: flex;
}

.dtn {
    justify-content: space-between;
}

#pfp {
    max-width: 10rem;
	/* border: 2px #e60012 solid;
	box-shadow: 0px 0px 5px #e60012; */
	z-index: 3;
	border: 1px solid red;
}















.scanlines::before {
  content: "";
  position: fixed;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    transparent,
    rgba(255, 0, 0, 0.2) 5px,
    transparent 4px
  );
  pointer-events: none;
  z-index: 9999;
  animation: flicker 1s infinite;
}

@keyframes flicker {
  0% { opacity: 0.9; }
  50% { opacity: 0.8; }
  100% { opacity: 0.9; }
}

.warning-banner {
  background: repeating-linear-gradient(
    45deg,
    #e60012,
    #e60012 10px,
    black 10px,
    black 20px
  );
  color: black;
  padding: 1rem;
  border-bottom: 1px solid #e60012;
  border-top: 1px solid #e60012;
}

.center {
	justify-content: center;
}

.marquee-wrapper {
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
  background: black;
  color: yellow;
  border-top: 2px solid yellow;
  border-bottom: 2px solid yellow;
  font-size: 1.2rem;
}

.marquee {
  display: inline-flex;
  animation: marquee-scroll 20s linear infinite;
}

.marquee span {
  padding-right: 4rem;
  font-family: 'Share Tech Mono', monospace;
}

@keyframes marquee-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}


.nav-wrapper {
  width: auto;
  text-align: center;
  margin: 0 1rem;
}

.dropdown-nav {
  max-height: 0;
  overflow: hidden;
  background: black;
  color: #e60012;
  border: 2px solid #e60012;
  border-bottom: none;
  transition: max-height 1s ease-in-out;
}

.dropdown-nav.open {
  max-height: 267px;
}

.dropdown-nav ul {
  list-style: none;
  margin: 0;
  padding: 0 0;
}

.dropdown-nav li {
  padding: 0.5rem 0;
  border-bottom: 1px dashed #e60012;
}

.dropdown-nav li:last-child {
	border-bottom: 1px solid #e60012;
}

.nav-toggle {
  width: 60px;
  height: 40px;
  background: #ff0000;
  color: black;
  font-weight: bold;
  font-size: 1.2rem;
  clip-path: polygon(0 0, 100% 0, 80% 100%, 20% 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  cursor: pointer;
  transition: background 0.3s;
}

.wotd {
  text-align: center;
  max-width: 800px;
  margin: 2rem auto;
  padding: 1.5rem;
  background: rgba(255,255,255,0.02);
  border-left: 3px solid #e60012;
  font-family: 'Ubuntu Mono', monospace;
  color: #e6e6e6;
}
.wotd .word {
  font-size: 1.6rem;
  color: #e60012;
}
.wotd .kana {
  color: #888;
  font-size: 1.1rem;
  margin-left: 0.4rem;
}
.wotd .origin {
  font-style: italic;
  font-size: 0.9rem;
  margin-top: 0.4rem;
}
.wotd .meaning {
  margin-top: 0.8rem;
  font-size: 1rem;
  color: #ccc;
}


.quote-section {
  text-align: center;
  font-family: 'Orbitron', monospace;
  color: #e6e6e6;
  font-size: 1.1rem;
  margin: 2rem auto;
}
.quote {
  font-style: italic;
  color: #c20017;
}
.quote-src {
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.flip-container {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
}

#flip-btn {
  width: 48px;
  height: 48px;
  background-color: #e60012;
  border: 2px solid #e60012;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;

  box-shadow:
    0 0 0 2px #e60012,
    2px 2px 0 0 #770008 inset;

  clip-path: polygon(0% 0%, 90% 0%, 100% 10%, 100% 100%, 10% 100%, 0% 90%);
  transition: all 0.15s ease-in-out;
  padding: 0;
}

#flip-btn:hover {
  background-color: #a0000d;
  box-shadow:
    0 0 0 2px #e60012,
    2px 2px 0 0 #330003 inset;
  transform: scale(1.05);
}

.flip-icon {
  width: 22px;
  height: 22px;
  pointer-events: none;
  filter: invert(1);
  transform: scale(1.8);
}

.triple-shiori {
  max-width: 300px;
  margin: auto;
  justify-content: space-around;
}

.triple-shiori img {
  width: 50px;
  filter: invert();
}

.upper-trap {
  margin-top: 8rem;
  height: 10px;
  width: 120px;
  background: #e60012;
  clip-path: polygon(0 0, 80% 0, 100% 100%, 0% 100%);
  box-shadow: 0 0 8px #e60012;
  margin-left: auto;
  margin-right: auto;
}

.outer-cyber-interface {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
  background: #0a0a0a;
  border: 2px solid #e60012;
  padding: 0.3rem;
  clip-path: polygon(0% 0%, 88% 0%, 100% 20%, 100% 100%, 0% 100%);
  box-shadow:
  0 0 10px #e60012,
  inset 0 0 6px #e60012;
  max-width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.inner-cyber-interface {
  background: #1a1a1a;
  border: 2px solid #e60012;
  padding: 1rem 2rem;
  clip-path: polygon(0% 0%, 88% 0%, 100% 20%, 100% 100%, 0% 100%);
  box-shadow: 0 0 10px #e60012;
  position: relative;
}

.interface-label {
  color: #e60012;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 2px;
  text-shadow: 0 0 2px #e60012, 0 0 2px #e60012;
}

@media (max-width: 414px) {
  .interface-label {
    font-size: 1rem;
  }
  .inner-cyber-interface {
    padding: 1rem 1rem;
  }
}


.projects {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  max-width: 1000px;
  margin: 4rem auto;
  padding: 0 1rem;
}

.project {
  display: grid;
  grid-template-columns: 2fr 3fr;
  position: relative;
  border: 2px solid #e60012;
  background-color: #111;
  overflow: hidden;
}

.project::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    transparent,
    rgba(255, 0, 0, 0.1) 2px,
    transparent 4px
  );
  z-index: 1;
  pointer-events: none;
}

.proj-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-right: 2px solid #e60012;
}


.proj-details {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-family: 'IBM Plex Mono', monospace;
  color: #ccc;
  position: relative;
  z-index: 2;
  border-left: 2px solid #e60012;
}


.proj-title {
  font-size: 1.4rem;
  font-weight: bold;
  color: #e60012;
  margin-bottom: 0.5rem;
}

.proj-desc {
  font-size: 1rem;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .project {
    grid-template-columns: 1fr;
  }

  .proj-img {
    height: 200px;
  }

  .proj-details {
    border-left: none;
    border-top: 2px solid #e60012;
  }

}

#blog-section {
  margin: 2rem 0;
}

.blog-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.blog-card {
  border: 2px solid red;
  padding: 1rem;
  background: #111;
  color: #eee;
  display: grid;
  grid-template-rows: auto 1fr auto;
  position: relative;
  overflow: hidden;
}

.blog-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    transparent,
    rgba(255, 0, 0, 0.15) 2px,
    transparent 4px
  );
  z-index: 1;
  pointer-events: none;
}

.blog-card img {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  border-bottom: 1px solid red;
  margin-bottom: 0.5rem;
  z-index: 1;
}

.blog-card h3 {
  margin: 0.25rem 0;
  font-size: 1.1rem;
  z-index: 2;
}

.blog-card p {
  font-size: 0.9rem;
  z-index: 2;
}

.blog-card .date {
  font-size: 0.75rem;
  color: #999;
  z-index: 2;
  margin-bottom: 0.5rem;
}

.blog-card a {
  color: red;
  font-weight: bold;
  text-decoration: underline;
  z-index: 2;
}

.site-footer {
  background-color: #111;
  color: #ccc;
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.9rem;
}

.footer-content {
  max-width: 800px;
  margin: 0 auto;
}

.social-links {
  margin: 1rem 0;
}

.social-links a {
  display: inline-block;
  margin: 0 10px;
  transition: transform 0.2s ease-in-out;
}

.social-links img {
  width: 32px;
  height: 32px;
  filter: grayscale(100%);
  opacity: 0.7;
}

.social-links a:hover img {
  filter: none;
  opacity: 1;
  transform: scale(1.1);
}

.footer-note {
  font-size: 0.8rem;
  margin-top: 1rem;
  color: #666;
}
