@import url('https://fonts.googleapis.com/css2?family=Source+Code+Pro:wght@400;700&display=swap');

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: rotate(2deg) scale(0.95);
  }
  to {
    opacity: 1;
    transform: rotate(2deg) scale(1);
  }
}

@keyframes microSwing {
  0%, 100% {
    transform: rotate(2deg);
  }
  50% {
    transform: rotate(-1deg);
  }
}

html,
body {
  overflow-x: hidden;
}

body {
  background-color: #1a1a1a;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
    url('Images/Slime3png.png');
  background-position: center top;
  background-repeat: no-repeat;
  background-size: 100% auto;
  background-attachment: fixed;
  color: #91F778;
  font-family: 'Source Code Pro', monospace;
  text-align: center;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

#desktop-wrapper {
  width: 100%;
  min-height: 100vh;
}

/* Header */
header {
  padding: 32px 20px 0;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 100;
}

nav ul {
  list-style: none;
  padding: 12px 20px;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 50px;
  width: fit-content;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

nav ul li {
  display: inline;
  margin: 0;
}

nav a {
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-size: 16px;
  padding: 10px 20px;
  display: inline-block;
  border: 2px solid transparent;
  border-radius: 30px;
  transition: all 0.3s ease-in-out;
}

nav a:hover {
  color: #111;
  background: #91F778;
  border: 2px solid #91F778;
}

/* Main content */
#main-content {
  padding: 72px 80px 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 64px;
  position: relative;
}

/* Hero */
.home-hero-grid {
  width: 100%;
  max-width: 1100px;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.home-left {
  display: flex;
  justify-content: center;
  align-items: center;
}

.home-right {
  display: flex;
  justify-content: flex-start;
}

.profile-image-container {
  position: relative;
}

.profile-image {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.75);
}

.main-shape {
  width: 100%;
  max-width: 650px;
  border: 1px solid rgba(145, 247, 120, 0.5);
  border-radius: 18px;
  padding: 40px 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.88);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32);
}

.window-text {
  text-align: left;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.6;
  padding: 0;
}

.window-text h1 {
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 18px 0;
}

.window-text p {
  font-size: 19px;
  font-weight: 400 !important;
  margin: 0;
  line-height: 1.7;
}

.window-text strong {
  color: #D17CFF;
  font-weight: 700;
}

/* Info row */
.home-info-grid {
  width: 100%;
  max-width: 1100px;
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 48px;
  align-items: start;
  margin-top: -10px;
}

.tools-panel,
.soft-skills-panel {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
}

.tools-title,
.soft-skills-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.58);
  margin: 0;
  text-align: left;
}

.right-shape,
.soft-skills-box {
  width: 100%;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  box-sizing: border-box;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.right-shape {
  min-height: 170px;
  max-width: 420px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}

.soft-skills-box {
  min-height: 170px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.skills-logos,
.extra-logo {
  display: grid;
  gap: 16px;
  align-items: center;
  justify-items: center;
}

.skills-logos {
  grid-template-columns: repeat(4, 1fr);
}

.extra-logo {
  grid-template-columns: repeat(3, 1fr);
  max-width: 240px;
}

.skill-logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.soft-skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
  align-items: center;
  max-width: 100%;
}

.skill-tag {
  font-size: 14px;
  font-weight: 500;
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.02);
  white-space: nowrap;
  transition: all 0.2s ease;
}

.skill-tag:hover {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.05);
}

/* Projects */
#projects {
  position: relative;
  min-height: 100vh;
  padding: 60px 20px 80px;
  background: rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(145, 247, 120, 0.16);
  border-bottom: 1px solid rgba(145, 247, 120, 0.12);
  overflow: hidden;
}

#projects::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.18),
      rgba(0, 0, 0, 0.32)
    );
  pointer-events: none;
  z-index: 0;
}

#projects > * {
  position: relative;
  z-index: 1;
}

.projects-title {
  font-size: 48px;
  font-weight: 700;
  color: white;
  margin-bottom: 40px;
  filter: drop-shadow(0 0 25px rgba(255, 255, 0, 0.75));
}

.projects-image {
  width: 800px;
  height: auto;
  margin: 0 auto 40px auto;
  display: block;
  max-width: 90%;
  transform: rotate(2deg);
  cursor: pointer;
  transition: filter 0.3s ease;
}

.projects-image:hover {
  animation: microSwing 0.6s ease-in-out infinite;
  filter: brightness(1.1);
}

.project-subtitle {
  font-size: 32px;
  color: #91F778;
  margin: 20px 0;
}

.project-image {
  width: 50%;
  max-width: 600px;
  min-width: 300px;
  height: auto;
  margin: 0 auto;
  display: block;
  border-radius: 12px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto 30px auto;
  padding: 0 20px;
}

.project-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: rgba(10, 10, 10, 0.58);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(145, 247, 120, 0.22);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.project-card:hover,
.project-card:focus {
  transform: translateY(-6px);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.45);
  border-color: rgba(145, 247, 120, 0.42);
  background: rgba(10, 10, 10, 0.72);
}

.project-card:focus-visible {
  outline: none;
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.45), 0 0 0 4px rgba(145, 247, 120, 0.12);
}

.project-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: rgba(18, 18, 18, 0.62);
  padding: 16px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(145, 247, 120, 0.28);
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.project-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 8px;
}

.project-caption {
  padding: 12px 12px 14px;
  text-align: center;
  font-weight: 700;
  color: #91F778;
  font-size: 16px;
  background: transparent;
  filter: drop-shadow(0 0 8px rgba(145, 247, 120, 0.35));
}

.project-description {
  color: #ccc;
  font-size: 18px;
  line-height: 1.6;
  max-width: 800px;
  margin: 40px auto 0 auto;
  text-align: left;
  padding: 0 20px;
}

.project-description strong {
  display: block;
  margin-top: 20px;
  color: #91F778;
  font-weight: 700;
}

.project-challenge-goal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 60px;
  max-width: 1100px;
  margin: 60px auto 0 auto;
  padding: 0 20px;
}

.project-block {
  flex: 1 1 400px;
  color: #ccc;
  font-size: 18px;
  line-height: 1.6;
  max-width: 500px;
  text-align: left;
}

.project-block-title {
  color: #91F778;
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 20px;
}

.project-block ul {
  padding-left: 20px;
  list-style: none;
}

.project-block ul li::before {
  content: "> ";
  color: #91F778;
  font-weight: bold;
}

/* Timeline */
.project-timeline {
  margin-top: 80px;
  text-align: center;
  position: relative;
}

.timeline-title {
  font-size: 28px;
  color: #91F778;
  margin-bottom: 40px;
}

.timeline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  margin: 60px auto;
  max-width: 1000px;
  padding: 40px 20px 0;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 4px;
  background-color: #91F778;
  z-index: 0;
}

.timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}

.timeline-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: #C5ADED;
  position: relative;
  top: 0;
}

.timeline-step span {
  margin-top: 15px;
  font-size: 16px;
  color: #ccc;
  font-weight: bold;
}

/* Drawings and Iterations */
.project-drawings {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  margin-top: 30px;
  margin-bottom: 30px;
}

.drawing-block {
  text-align: center;
}

.sketch-title {
  color: #91F778;
  font-size: 24px;
  margin-bottom: 10px;
}

.sketch-image {
  max-width: 400px;
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.full-width {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
  text-align: center;
}

.sketch-caption {
  font-size: 18px;
  color: #ccc;
  line-height: 1.6;
  margin-top: 20px;
  font-family: 'Source Code Pro', monospace;
  text-align: left;
}

.usability-img {
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.usability-img.horizontal-img {
  width: auto;
  height: 300px;
}

.usability-img.vertical-img {
  height: auto;
  max-height: 300px;
  max-width: 100%;
}

/* Footer */
footer {
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.92);
  padding: 20px;
  text-align: center;
  width: 100%;
  position: relative;
  bottom: 0;
  border-top: 1px solid rgba(145, 247, 120, 0.2);
  box-sizing: border-box;
}

footer p {
  font-weight: 700;
  font-size: 18px;
  margin: 0;
}

/* Responsive */
@media (max-width: 1024px) {
  #main-content {
    padding: 56px 40px 72px;
    gap: 40px;
  }

  .home-hero-grid {
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 32px;
  }

  .profile-image {
    width: 170px;
    height: 170px;
  }

  .window-text h1 {
    font-size: 28px;
  }

  .window-text p {
    font-size: 18px;
  }

  .home-info-grid {
    gap: 32px;
  }
}

@media (max-width: 768px) {
  header {
    padding: 24px 20px 0;
  }

  nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }

  #main-content {
    padding: 40px 20px 56px;
    gap: 32px;
  }

  .home-hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }

  .home-left,
  .home-right {
    justify-content: center;
  }

  .window-text {
    text-align: center;
  }

  .profile-image {
    width: 150px;
    height: 150px;
  }

  .main-shape {
    padding: 30px 22px;
  }

  .window-text h1 {
    font-size: 26px;
  }

  .window-text p {
    font-size: 17px;
  }

  .home-info-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 0;
  }

  .tools-title,
  .soft-skills-title {
    text-align: center;
  }

  .right-shape {
    max-width: 100%;
  }

  .skills-logos,
  .extra-logo,
  .soft-skills-tags {
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
  }

  .skills-logos {
    grid-template-columns: repeat(4, minmax(40px, 1fr));
  }

  .extra-logo {
    grid-template-columns: repeat(3, minmax(40px, 1fr));
  }

  .soft-skills-box {
    justify-content: center;
  }

  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}

@media (max-width: 480px) {
  nav ul {
    padding: 10px 14px;
    gap: 4px;
  }

  nav a {
    font-size: 14px;
    padding: 8px 12px;
  }

  .profile-image {
    width: 130px;
    height: 130px;
  }

  .window-text h1 {
    font-size: 22px;
  }

  .window-text p {
    font-size: 16px;
  }

  .right-shape,
  .soft-skills-box {
    padding: 20px 16px;
  }

  .skill-logo {
    width: 44px;
    height: 44px;
  }

  .skill-tag {
    font-size: 13px;
    padding: 9px 14px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .project-card {
    max-width: 400px;
    margin: 0 auto;
  }
}
