/* ===== BASE RESET & VARIABLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  list-style: none;
}

:root {
  --bg-black: #000000;
  --bg-dark: #1e1e2e;
  --bg-light: #313244;
  --text-primary: #cdd6f4;
  --text-secondary: #a6adc8;
  --accent-green: #a6e3a1;
  --accent-blue: #89b4fa;
  --accent-purple: #cba6f7;
  --accent-pink: #f5c2e7;
  --accent-yellow: #f9e2af;
  --accent-red: #f38ba8;
  --cursor-color: #cdd6f4;
  --font-terminal: "Fira Code", "Courier New", monospace;
}

body {
  position: relative;
  font-family: var(--font-terminal);
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-dark);
  overflow-x: hidden;
}

/* ===== BACKGROUND ===== */
/* ===== CIRCUIT GRID RETRO ===== */
.grid-background {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%231e1e2e' stroke-width='0.5'%3E%3Cpath d='M0 40h80M40 0v80'/%3E%3Ccircle cx='40' cy='40' r='2' fill='%23161625'/%3E%3Ccircle cx='0' cy='0' r='1' fill='%23161625'/%3E%3Ccircle cx='80' cy='0' r='1' fill='%23161625'/%3E%3Ccircle cx='0' cy='80' r='1' fill='%23161625'/%3E%3Ccircle cx='80' cy='80' r='1' fill='%23161625'/%3E%3Ccircle cx='20' cy='20' r='0.8' fill='%23161625'/%3E%3Ccircle cx='60' cy='20' r='0.8' fill='%23161625'/%3E%3Ccircle cx='20' cy='60' r='0.8' fill='%23161625'/%3E%3Ccircle cx='60' cy='60' r='0.8' fill='%23161625'/%3E%3C/g%3E%3C/svg%3E")
    repeat;
  opacity: 0.1;
  animation: grid 3s infinite;
  pointer-events: none;
}

@keyframes grid {
  0%,
  100% {
    opacity: 0;
  }
  50% {
    opacity: 0.8;
  }
}

body {
  background-color: #0a0a0f;
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  border-bottom: 1px solid rgba(150, 173, 200, 0.1);
  background: rgba(30, 30, 46, 0.95);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}

.header__brand {
  font-size: 1.2rem;
  font-weight: bold;
  letter-spacing: 0.5px;
  text-shadow: 0 0 5px rgba(166, 227, 161, 0.3);
  color: var(--accent-green);
}

.header__tagline {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.header__nav {
  display: flex;
  gap: 1.5rem;
}

.header__menu {
  display: flex;
  list-style: none;
  gap: 1rem;
}

.header__link {
  position: relative;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.header__link::after {
  content: "|";
  margin-left: 0.3rem;
  opacity: 0;
  animation: blink 1s infinite;
}

.header__link:hover {
  color: var(--accent-green);
  background: rgba(166, 227, 161, 0.1);
  box-shadow: inset 0 0 10px rgba(166, 227, 161, 0.2);
}

.header__link:hover::after {
  opacity: 1;
}

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

/* ===== HERO SECTION ===== */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  padding: 5rem 2rem;
  text-align: center;
  background: radial-gradient(
    circle at center,
    rgba(137, 180, 250, 0.05) 0%,
    transparent 70%
  );
  animation: fadeIn 1s ease-out;
}

.hero__avatar {
  width: 150px;
  height: 150px;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(150, 173, 200, 0.3);
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(137, 180, 250, 0.2);
  animation: float 4s ease-in-out infinite;
  object-fit: cover;
}

.hero__name {
  margin-bottom: 0.5rem;
  font-size: 2.5rem;
  font-weight: bold;
  letter-spacing: 1px;
  text-shadow: 0 0 8px rgba(166, 227, 161, 0.4);
  color: var(--accent-green);
  animation: glow 2s ease-in-out infinite alternate;
}

.hero__subtitle {
  margin-bottom: 2rem;
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--accent-blue);
  animation: glow 2s ease-in-out infinite alternate;
}

.hero__btn {
  position: relative;
  display: inline-block;
  padding: 0.8rem 2rem;
  border: 1px solid var(--accent-green);
  border-radius: 6px;
  font-family: var(--font-terminal);
  font-size: 1.1rem;
  letter-spacing: 1px;
  text-decoration: none;
  text-transform: uppercase;
  color: var(--accent-green);
  background: transparent;
  box-shadow: 0 0 10px rgba(166, 227, 161, 0.3);
  transition: all 0.3s ease;
  cursor: pointer;
  overflow: hidden;
}

.hero__btn:hover {
  background: rgba(166, 227, 161, 0.1);
  box-shadow: 0 0 20px rgba(166, 227, 161, 0.6);
}

/* ===== SECTIONS ===== */
section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 5%;
  opacity: 1;
  transform: translateY(0);
}

.about__title,
.projects__title,
.contact__title {
  margin-bottom: 1rem;
  font-size: 2rem;
  font-weight: bold;
  letter-spacing: 1px;
  text-align: center;
  text-shadow: 0 0 10px rgba(166, 227, 161, 0.3);
  color: var(--accent-green);
  animation: glow 2s ease-in-out infinite alternate;
}

.about__subtitle,
.projects__subtitle,
.contact__subtitle {
  margin-bottom: 3rem;
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-align: center;
  color: var(--accent-blue);
}

/* ===== ABOUT ===== */
.about__quote {
  position: relative;
  max-width: 700px;
  margin: 2rem auto;
  padding: 1.5rem;
  border-left: 4px solid var(--accent-green);
  border-radius: 0 8px 8px 0;
  font-size: 1.3rem;
  font-style: italic;
  text-align: center;
  color: var(--text-primary);
  background: rgba(30, 30, 46, 0.6);
  box-shadow: inset 0 0 15px rgba(166, 227, 161, 0.1);
  animation: fadeIn 1.5s ease-out;
}

.about__quote::before {
  content: "";
  position: absolute;
  top: -15px;
  left: 10px;
  font-family: var(--font-terminal);
  font-size: 2rem;
  color: var(--accent-green);
  opacity: 0.3;
}

.about__skills-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.about__skill {
  padding: 0.6rem 1.2rem;
  border: 1px solid rgba(150, 173, 200, 0.3);
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: bold;
  letter-spacing: 0.5px;
  color: var(--accent-yellow);
  background: rgba(30, 30, 46, 0.6);
  box-shadow: 0 0 8px rgba(249, 226, 175, 0.2);
  transition: all 0.3s ease;
}

.about__skill:hover {
  border-color: var(--accent-yellow);
  background: rgba(249, 226, 175, 0.1);
  box-shadow: 0 0 15px rgba(249, 226, 175, 0.4);
  transform: translateY(-3px);
}

/* ===== PROJECTS ===== */
.projects__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.projects__link {
  display: block;
  border: 1px solid rgba(150, 173, 200, 0.3);
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  background: rgba(30, 30, 46, 0.6);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  overflow: hidden;
}

.projects__link:hover {
  border-color: var(--accent-green);
  box-shadow: 0 10px 25px rgba(166, 227, 161, 0.2);
  transform: translateY(-5px);
}

.projects__image {
  width: 100%;
  height: 180px;
  border-bottom: 1px solid rgba(150, 173, 200, 0.2);
  object-fit: cover;
}

.projects__name {
  margin: 1.2rem 1rem 0.5rem;
  font-size: 1.5rem;
  font-weight: bold;
  letter-spacing: 0.5px;
  text-shadow: 0 0 5px rgba(166, 227, 161, 0.3);
  color: var(--accent-green);
}

.projects__description {
  margin: 0 1rem 1rem;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.projects__tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.8rem;
  padding: 0 1rem 1rem;
}

.projects__tech-item {
  padding: 0.3rem 0.8rem;
  border: 1px solid rgba(137, 180, 250, 0.3);
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: bold;
  letter-spacing: 0.3px;
  color: var(--accent-blue);
  background: rgba(137, 180, 250, 0.1);
}

/* ===== CONTACT ===== */
.contact__form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem;
  border: 1px solid rgba(150, 173, 200, 0.3);
  border-radius: 10px;
  background: rgba(30, 30, 46, 0.6);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  animation: fadeIn 2s ease-out;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-label {
  margin-bottom: 0.5rem;
  font-size: 1rem;
  font-weight: bold;
  letter-spacing: 0.5px;
  color: var(--accent-blue);
}

.form-input,
.form-textarea {
  padding: 0.8rem;
  border: 1px solid rgba(150, 173, 200, 0.3);
  border-radius: 6px;
  font-family: var(--font-terminal);
  font-size: 1rem;
  color: var(--text-primary);
  background: rgba(15, 15, 25, 0.8);
  outline: none;
  transition: all 0.3s ease;
  resize: vertical;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--accent-green);
  background: rgba(166, 227, 161, 0.05);
  box-shadow: 0 0 15px rgba(166, 227, 161, 0.4);
}

.btn--primary {
  position: relative;
  margin-top: 0.5rem;
  padding: 1rem 2rem;
  border: 1px solid var(--accent-green);
  border-radius: 6px;
  font-family: var(--font-terminal);
  font-size: 1.1rem;
  font-weight: bold;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent-green);
  background: transparent;
  box-shadow: 0 0 10px rgba(166, 227, 161, 0.3);
  transition: all 0.3s ease;
  cursor: pointer;
  overflow: hidden;
}

.btn--primary:hover {
  background: rgba(166, 227, 161, 0.1);
  box-shadow: 0 0 20px rgba(166, 227, 161, 0.6);
}

.contact__alternatives {
  margin-top: 4rem;
  text-align: center;
}

.contact__label {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  font-weight: bold;
  letter-spacing: 0.5px;
  color: var(--accent-blue);
}

.contact__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.contact__link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.5rem;
  border: 1px solid rgba(150, 173, 200, 0.3);
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  text-decoration: none;
  color: var(--text-primary);
  background: rgba(30, 30, 46, 0.6);
  transition: all 0.3s ease;
}

.contact__link:hover {
  border-color: var(--accent-green);
  color: var(--accent-green);
  background: rgba(166, 227, 161, 0.1);
  box-shadow: 0 0 15px rgba(166, 227, 161, 0.3);
}

/* ===== FOOTER ===== */
.footer {
  position: relative;
  margin-top: 4rem;
  padding: 2rem 5%;
  border-top: 1px solid rgba(150, 173, 200, 0.2);
  text-align: center;
  background: rgba(30, 30, 46, 0.95);
}

.footer__content {
  max-width: 1200px;
  margin: 0 auto;
}

.footer__text {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
}

.footer__signature {
  font-size: 1rem;
  font-weight: bold;
  letter-spacing: 0.8px;
  text-shadow: 0 0 5px rgba(249, 226, 175, 0.4);
  color: var(--accent-yellow);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* @keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
} */

@keyframes glow {
  from {
    text-shadow: 0 0 10px rgba(166, 227, 161, 0.7),
      0 0 20px rgba(166, 227, 161, 0.3);
  }
  to {
    text-shadow: 0 0 20px rgba(166, 227, 161, 0.9),
      0 0 40px rgba(166, 227, 161, 0.6), 0 0 60px rgba(166, 227, 161, 0.4);
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .header {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }

  .hero__name {
    font-size: 2rem;
  }

  .hero__subtitle {
    font-size: 1.1rem;
  }

  .about__quote {
    padding: 1rem;
    font-size: 1.1rem;
  }

  .projects__list {
    grid-template-columns: 1fr;
  }

  .contact__form {
    margin: 0 1rem;
    padding: 1.5rem;
  }

  .btn--primary,
  .hero__btn {
    padding: 0.7rem 1.5rem;
    font-size: 1rem;
  }
}

/* ===== CURSOR BRIGHTNESS ===== */
body {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Crect x='7' y='0' width='2' height='16' fill='%23cdd6f4'/%3E%3C/svg%3E"),
    auto;
}
