* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  user-select: none;
  outline: none;
  border: none;
  font-family: "Ubuntu Mono", monospace;
}

html,
body {
  display: flex;
  width: 100%;
  min-height: 100vh;
  flex-direction: column;
  font-size: 16px;
  scroll-behavior: smooth;
}

#loadingScreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: linear-gradient(135deg, #200155, #240046);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#loadingScreen.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.loader-logo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
  border: 3px solid #c77dff;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }
}

.loader-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(192, 125, 255, 0.2);
  border-top: 4px solid #c77dff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.loader-text {
  color: #c77dff;
  font-size: 2rem;
  font-weight: bold;
  letter-spacing: 5px;
  animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
  0%,
  100% {
    text-shadow: 0 0 10px rgba(199, 125, 255, 0.5);
  }
  50% {
    text-shadow: 0 0 20px rgba(199, 125, 255, 0.8),
      0 0 30px rgba(199, 125, 255, 0.6);
  }
}

.loader-subtext {
  color: #e0aaff;
  font-size: 1rem;
  letter-spacing: 2px;
  animation: fadeInOut 1.5s ease-in-out infinite;
}

@keyframes fadeInOut {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(28, 0, 73, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  padding: 1rem 2rem;
  width: 100%;
  z-index: 100;
  transition: all 0.3s ease;
}

nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

nav .container .logo {
  display: flex;
  gap: 15px;
  align-items: center;
}

nav .container .logo a {
  color: #e0aaff;
  font-weight: bold;
  font-size: 1.8rem;
  letter-spacing: 1px;
  text-decoration: none;
}

nav .container .logo img {
  border-radius: 50%;
  width: 2.5rem;
  height: 2.5rem;
  object-fit: cover;
  border: 2px solid #c77dff;
}

nav .container .navLinks {
  display: flex;
  gap: 35px;
  align-items: center;
}

nav .container .navLinks a {
  text-decoration: none;
  color: #e0aaff;
  font-size: 1.1rem;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  padding: 5px 0;
}

nav .container .navLinks a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #c77dff;
  transition: width 0.3s ease;
}

nav .container .navLinks a:hover {
  color: #c77dff;
}

nav .container .navLinks a:hover::after {
  width: 100%;
}

nav .container .menu {
  display: none;
  font-size: 1.4rem;
  color: #e0aaff;
  transition: color 0.3s ease;
  padding: 5px;
}

nav .container .menu:hover {
  color: #c77dff;
  transform: scale(1.1);
}

nav .container.toggled .navLinks {
  display: flex;
  position: fixed;
  flex-direction: column;
  right: 20px;
  top: 80px;
  background: rgba(28, 0, 73, 0.95);
  backdrop-filter: blur(20px);
  padding: 2rem;
  border-radius: 15px;
  gap: 25px;
  border: 1px solid rgba(199, 125, 255, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

nav .container.toggled .navLinks a {
  text-align: center;
  font-size: 1.2rem;
}

main {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 300vh;
  background: linear-gradient(135deg, #1b0346, #240046, #3c096c);
  align-items: center;
  position: relative;
}

main::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("images/grid.jpg");
  background-size: 80rem;
  background-repeat: repeat;
  opacity: 0.08;
  filter: blur(2px);
  pointer-events: none;
}

section {
  display: flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 0 2rem;
  max-width: 1200px;
  margin-bottom: 120px;
  position: relative;
  z-index: 1;
}

section .sectionHead {
  color: #c77dff;
  font-weight: bold;
  font-size: 3rem;
  margin-bottom: 50px;
  text-align: center;
  position: relative;
  letter-spacing: 2px;
}

section .sectionHead::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, transparent, #c77dff, transparent);
  border-radius: 2px;
}

#hero {
  height: 100vh;
  justify-content: center;
  text-align: center;
  padding-top: 80px;
}

#hero .logo {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  margin-bottom: 40px;
  object-fit: cover;
  border: 4px solid #c77dff;
  box-shadow: 0 0 40px rgba(199, 125, 255, 0.3);
  transition: transform 0.3s ease;
}

#hero .logo:hover {
  transform: scale(1.05);
}

#hero .name {
  color: #c77dff;
  font-size: 4.5rem;
  font-weight: bold;
  margin-bottom: 20px;
  letter-spacing: 8px;
  text-shadow: 0 0 20px rgba(199, 125, 255, 0.5);
  background: linear-gradient(135deg, #c77dff, #e0aaff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

#hero .tagline {
  color: #e0aaff;
  font-size: 1.4rem;
  letter-spacing: 3px;
  line-height: 1.6;
  max-width: 600px;
}

#about .desc {
  color: #e0aaff;
  font-size: 1.3rem;
  text-align: center;
  line-height: 1.8;
  max-width: 900px;
}

#about .desc .encrypted {
  color: #c77dff;
  font-weight: bold;
  font-family: monospace;
}

#skills .skillsGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  width: 100%;
  max-width: 1200px;
}

#skills .skillCard {
  background: rgba(45, 7, 82, 0.4);
  backdrop-filter: blur(3px);
  border-radius: 15px;
  padding: 2.5rem;
  flex-direction: column;
  transition: all 0.4s ease;
  border: 2px solid rgba(199, 125, 255, 0.2);
  position: relative;
  overflow: hidden;
}

#skills .skillCard::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(199, 125, 255, 0.1),
    transparent
  );
  transition: left 0.6s ease;
}

#skills .skillCard:hover::before {
  left: 100%;
}

#skills .skillCard:hover {
  border-color: rgba(199, 125, 255, 0.6);
  box-shadow: 0 15px 40px rgba(199, 125, 255, 0.2);
  transform: translateY(-8px);
}

#skills .skillCard .category {
  color: #c77dff;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  font-weight: bold;
  text-align: center;
}

#skills .skillCard .skillContainer {
  display: flex;
  width: 100%;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

#projects .projectsGallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 35px;
  width: 100%;
  max-width: 1200px;
}

#projects .projectCard {
  background: rgba(45, 7, 82, 0.4);
  backdrop-filter: blur(3px);
  border-radius: 15px;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition: all 0.4s ease;
  border: 2px solid rgba(199, 125, 255, 0.2);
  position: relative;
  overflow: hidden;
}

#projects .projectCard::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(199, 125, 255, 0.1),
    transparent
  );
  transition: left 0.6s ease;
}

#projects .projectCard:hover::before {
  left: 100%;
}

#projects .projectCard:hover {
  border-color: rgba(199, 125, 255, 0.6);
  box-shadow: 0 15px 40px rgba(199, 125, 255, 0.2);
  transform: translateY(-8px);
}

#projects .projectCard .projectHeader {
  display: flex;
  align-items: center;
  gap: 15px;
}

#projects .projectCard .projectHeader i {
  font-size: 1.8rem;
  color: #c77dff;
}

#projects .projectCard .projectTitle {
  color: #c77dff;
  font-size: 1.5rem;
  font-weight: bold;
}

#projects .projectCard .projectDesc {
  color: #e0aaff;
  font-size: 1rem;
  line-height: 1.7;
  flex-grow: 1;
}

#projects .projectCard .projectTags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tag {
  background: rgba(16, 0, 43, 0.6);
  color: #c77dff;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  border: 1px solid rgba(199, 125, 255, 0.3);
  transition: all 0.3s ease;
  font-weight: 500;
}

.tag:hover {
  background: rgba(199, 125, 255, 0.1);
  border-color: rgba(199, 125, 255, 0.6);
  transform: translateY(-2px);
}

#projects .projectCard .projectLink {
  align-self: flex-start;
  color: #c77dff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: bold;
  transition: all 0.3s ease;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
}

#projects .projectCard .projectLink:hover {
  color: #e0aaff;
  border-bottom-color: #c77dff;
  transform: translateX(5px);
}

#projects .projectCard .projectLink i {
  font-size: 0.9rem;
  transition: transform 0.3s ease;
}

#projects .projectCard .projectLink:hover i {
  transform: translate(5px, -5px);
}

footer {
  background: #29054b;
  backdrop-filter: blur(10px);
  border-top: 2px solid rgba(199, 125, 255, 0.2);
  padding: 3rem 2rem 1.5rem;
  width: 100%;
  position: relative;
  z-index: 1;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 1rem;
}

.footer-logo img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid #c77dff;
  object-fit: cover;
}

.footer-logo h2 {
  color: #c77dff;
  font-size: 1.8rem;
  font-weight: bold;
  letter-spacing: 2px;
}

.footer-nav {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 1rem;
}

.footer-nav a {
  color: #e0aaff;
  text-decoration: none;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 5px;
}

.footer-nav a:hover {
  color: #c77dff;
  background: rgba(199, 125, 255, 0.1);
  transform: translateY(-2px);
}

.footer-social {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #e0aaff;
  text-decoration: none;
  padding: 0.8rem 1.5rem;
  border: 1px solid rgba(199, 125, 255, 0.3);
  border-radius: 25px;
  transition: all 0.3s ease;
  background: rgba(16, 0, 43, 0.6);
  font-weight: 500;
}

.social-link:hover {
  color: #c77dff;
  border-color: rgba(199, 125, 255, 0.6);
  background: rgba(199, 125, 255, 0.1);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(199, 125, 255, 0.2);
}

.social-link i {
  font-size: 1.2rem;
}

.footer-copyright {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(199, 125, 255, 0.1);
  width: 100%;
}

.footer-copyright p {
  color: #e0aaff;
  font-size: 0.9rem;
  opacity: 0.8;
}

@media screen and (max-width: 900px) {
  html,
  body {
    font-size: 14px;
  }

  #hero .name {
    font-size: 3.5rem;
    letter-spacing: 6px;
  }

  section .sectionHead {
    font-size: 2.5rem;
  }
}

@media screen and (max-width: 750px) {
  nav .container .navLinks {
    display: none;
  }

  nav .container .menu {
    display: block;
  }

  #hero .logo {
    width: 180px;
    height: 180px;
  }

  #hero .name {
    font-size: 3rem;
    letter-spacing: 4px;
  }

  #projects .projectsGallery {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  #skills .skillsGrid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  footer {
    padding: 2rem 1rem 1rem;
  }

  .footer-nav {
    gap: 1rem;
  }

  .footer-nav a {
    font-size: 1rem;
    padding: 0.4rem 0.8rem;
  }

  .footer-social {
    flex-direction: column;
    gap: 1rem;
  }

  .social-link {
    justify-content: center;
  }
}

@media screen and (max-width: 480px) {
  html,
  body {
    font-size: 12px;
  }

  nav {
    padding: 1rem;
  }

  nav .container.toggled .navLinks {
    top: 70px;
    right: 10px;
    left: 10px;
  }

  #hero .name {
    font-size: 2.5rem;
  }

  section {
    padding: 0 1rem;
    margin-bottom: 80px;
  }

  #skills .skillCard,
  #projects .projectCard {
    padding: 2rem;
  }
  .footer-logo {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .footer-logo h2 {
    font-size: 1.5rem;
  }

  .footer-nav {
    flex-direction: column;
    gap: 0.5rem;
  }
}
