/* CSS Reset */
* {
  box-sizing: border-box;
  position: relative;
  min-width: 0;
}

body {
  min-height: 100dvh;
}

h1,
h2,
h3,
h4 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

/* Main Styles - Mobile First */
:root {
  --gradient-right: rgba(51, 54, 253, 0.233);
  --gradient-left: rgba(12, 85, 241, 0.37);
  --gradient-background-right: rgba(51, 54, 253, 0);
  --gradient-background-left: rgba(12, 85, 241, 0.13);
  --gradient-background: rgba(15, 23, 42, 0.7);
}

body {
  margin: 0;
  background-image: url("https://community.fastly.steamstatic.com/public/images/profile/2020/bg_dots.png");
  background-color: black;
  background-repeat: no-repeat;
  background-position: center top;
  /* background-size: cover; */
}

h1,
h2,
h3,
p,
i {
  font-family: "Open Sans", sans-serif;
  color: white;
  font-weight: 400;
  margin: 0;
  padding: 0;
}

a {
  text-decoration: none;
}

button {
  font-size: 14px;
  font-weight: 200;
  line-height: 30px;
  padding: 0 8px;
  border: none;
  border-radius: 2px;
  color: white;
  background-color: #0c55f140;
  transition: color 0.2s ease-in-out;
  cursor: pointer;
}

button:hover {
  background-color: #0c55f166;
}

/* Mobile First Layout */
.profile-container {
  background: linear-gradient(
      to bottom,
      rgba(51, 54, 253, 0) 0%,
      transparent 15%
    ),
    radial-gradient(
      farthest-side at top right,
      var(--gradient-right),
      transparent 500px
    ),
    radial-gradient(
      farthest-corner at top left,
      var(--gradient-left),
      transparent 600px
    ),
    radial-gradient(
      farthest-corner at bottom right,
      var(--gradient-background-right),
      transparent 500px
    ),
    radial-gradient(
      farthest-corner at bottom left,
      var(--gradient-background-left),
      transparent 600px
    );
  background-color: var(--gradient-background);
  margin: 0 auto;
  padding: 0.5rem;
  min-height: 100vh;
}

/* Mobile Profile Header */
.profile-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
}

.profile-header-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.profile-frame {
  width: 120px;
  height: 120px;
  border-radius: 2px;
}

.profile-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2px;
  display: block;
}

/* Neon frame effect */
.profile-frame::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 2px;
  border: 2px solid white;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8),
    0 0 20px rgba(255, 255, 255, 0.6), 0 0 40px rgba(255, 255, 255, 0.4);
  pointer-events: none;
  animation: neonPulse 2s infinite alternate;
}

@keyframes neonPulse {
  from {
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.6),
      0 0 15px rgba(255, 255, 255, 0.4), 0 0 30px rgba(255, 255, 255, 0.2);
  }
  to {
    box-shadow: 0 0 20px rgba(255, 255, 255, 1),
      0 0 40px rgba(255, 255, 255, 0.8), 0 0 70px rgba(255, 255, 255, 0.6);
  }
}

.profile-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.profile-info p {
  font-size: 12px;
  line-height: 1.4;
  color: #c4c4c4;
  margin-top: 0.5rem;
  max-width: 300px;
}

.profile-name {
  font-size: 20px;
  font-weight: 100;
  color: white;
}

.web-developer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 12px;
  color: #c4c4c4;
}

.web-developer h3 {
  font-size: 12px;
  font-weight: 400;
}

.profile-location {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
}

.profile-location img {
  width: 1rem;
  height: auto;
}

.social-media {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

.social-media img {
  width: 1.5rem;
  height: 1.5rem;
}

.profile-header-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.profile-level {
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.profile-level-number {
  font-size: 12px;
  border: 2px solid #9b9b9b;
  border-radius: 50%;
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem;
}

/* Mobile Content Layout */
.profile-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.profile-content-sections {
  order: 1;
}

aside {
  order: 1;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(20px);
  border-radius: 2px;
  padding: 0.5rem;
}

.aside-header {
  color: #9b9b9f;
  margin-bottom: 12px;
  text-align: center;
}

.aside-header p:nth-child(1) {
  text-align: start;
  font-size: 18px;
  font-weight: 200;
  color: #9b9b9f;
}

.aside-header p:nth-child(2) {
  text-align: start;
  font-size: 13px;
  color: #9b9b9f;
}

.badges,
.other-tools {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 14px;
  margin-bottom: 1rem;
}

.badges span,
.other-tools span {
  font-size: 20px;
  font-weight: 200;
  color: #9b9b9f;
  margin-left: 0.1rem;
}

.badges-container,
.other-tools-container {
  display: grid;
  grid-template-columns: repeat(4, 35px);
  gap: 15px;
  justify-content: center;
  align-items: center;
  justify-items: center;
}

.badges-container object,
.other-tools-container object {
  width: 1.8rem;
}

/* Mobile Projects */
.profile-projects {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-radius: 2px;
  background-color: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(20px);
  margin-bottom: 1rem;
}

.profile-projects header {
  display: flex;
  align-items: center;
  height: 3rem;
  background: linear-gradient(
    90deg,
    var(--gradient-left),
    var(--gradient-background-right)
  );
  border-radius: 2px;
}

.profile-projects header h2 {
  font-size: 16px;
  font-weight: 400;
  margin-left: 1rem;
}

.project-container {
  padding: 0 0.5rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1rem;
}

.project-card img {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: cover;
}

.project-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.project-info h3 {
  font-size: 16px;
}

.project-info p {
  font-size: 13px;
  line-height: 1.4;
}

.project-footer {
  padding: 0.5rem;
  font-size: 12px;
  background-color: var(--gradient-background-right);
  border-radius: 2px;
  margin: 0.5rem 0 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.project-technologies {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.project-technologies object {
  width: 1.5rem;
}

/* Footer */
footer {
  font-size: 12px;
  padding: 1rem;
  background-color: black;
  text-align: center;
}

footer i {
  color: #9b9b9f;
}

/* Icon utility class */
.icon {
  width: 1.5rem;
  height: 1.5rem;
}

/* Online status */
.online {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: flex-start;
}

.online-circle {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 100%;
  background-color: #22c55e;
  animation: 2s ease-in-out infinite pulse alternate;
}

.online-text {
  font-size: 18px !important;
  font-weight: 200 !important;
  color: white !important;
}

@keyframes pulse {
  from {
    background-color: #22c55e;
  }
  to {
    background-color: #22c55e50;
  }
}

/* Tablet Styles */
@media (min-width: 768px) {
  .profile-container {
    padding: 1rem;
  }

  .profile-header {
    flex-direction: row;
    justify-content: space-between;
    padding: 1.5rem 1rem;
  }
  .profile-header-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  .profile-header-left {
    flex-direction: row;
    text-align: left;
    gap: 1.5rem;
  }

  .profile-frame {
    width: 130px;
    height: 130px;
  }

  .profile-name {
    font-size: 22px;
  }

  .web-developer {
    flex-direction: row;
    align-items: center;
    font-size: 13px;
  }

  .web-developer h3 {
    font-size: 13px;
  }

  .social-media {
    justify-content: flex-start;
  }

  .profile-info p {
    font-size: 13px;
    max-width: 350px;
  }

  .profile-level {
    align-self: start;
    font-size: 18px;
  }

  .profile-level-number {
    font-size: 13px;
    width: 1.8rem;
    height: 1.8rem;
    padding: 1rem;
  }

  .project-card {
    flex-direction: row;
    gap: 1rem;
  }

  .project-card img {
    width: 200px;
    height: 110px;
    max-height: none;
  }

  .project-footer {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .project-technologies {
    justify-content: flex-end;
  }

  .badges-container,
  .other-tools-container {
    grid-template-columns: repeat(5, 35px);
    gap: 18px;
  }

  .aside-header {
    text-align: left;
  }
  .aside-body {
    display: flex;
    gap: 2rem;
  }

  footer {
    font-size: 14px;
  }
}

/* Desktop Styles */
@media (min-width: 1024px) {
  .profile-container {
    max-width: 926px;
  }

  .profile-header-left {
    gap: 2rem;
  }

  .profile-frame {
    width: 150px;
    height: 150px;
  }

  .profile-frame::before {
    border: 3px solid white;
  }

  .profile-name {
    font-size: 24px;
  }

  .profile-info p {
    font-size: 14px;
    max-width: 400px;
  }

  .profile-level {
    font-size: 19px;
  }

  .profile-level-number {
    font-size: 14px;
    width: 1.5rem;
    height: 1.5rem;
    padding: 1rem;
  }

  .profile-content {
    flex-direction: row;
    margin-top: 2rem;
  }

  .profile-content-sections {
    flex: 1;
    order: 1;
  }

  aside {
    width: 300px;
    order: 2;
  }
  .aside-body {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }

  .aside-header p:nth-child(1) {
    font-size: 20px;
  }

  .aside-header p:nth-child(2) {
    font-size: 15px;
  }

  .badges span,
  .other-tools span {
    font-size: 24px;
  }

  .badges-container,
  .other-tools-container {
    grid-template-columns: repeat(4, 40px);
    gap: 20px;
  }

  .badges-container object,
  .other-tools-container object {
    width: 2rem;
  }

  .profile-projects header h2 {
    font-size: 18px;
  }

  .project-card img {
    width: 250px;
    height: 126.5px;
  }

  .project-info h3 {
    font-size: 18px;
  }

  .project-info p {
    font-size: 14px;
  }

  .project-footer {
    font-size: 13px;
    margin: 1rem auto;
    padding: 0 1rem;
  }

  .project-technologies object {
    width: 1.5rem;
  }

  .online-text {
    font-size: 20px !important;
  }

  button {
    font-size: 15px;
    padding: 0 10px;
  }
}

/* Large Desktop */
@media (min-width: 1200px) {
  .profile-container {
    max-width: 1100px;
  }
}

/* Utility classes for better mobile experience */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
