@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  border: none;
  outline: none;
  font-family: 'Poppins', sans-serif;
}

html {
  font-size: 62.5%; /* 1rem = 10px */
}

body {
  width: 100%;
  height: 100vh;
  overflow-x: hidden;
  background-color: #0a0a0a;
  color: white;
  font-size: 1.6rem;   line-height: 1.6;
  background-image: radial-gradient(rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 20px 20px;
}

body::before {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: radial-gradient(circle at 20% 20%, rgba(183,75,75,0.2), transparent 40%),
              radial-gradient(circle at 80% 80%, rgba(75,183,150,0.2), transparent 40%);
  animation: moveBg 15s infinite alternate;
  z-index: -1;
}

@keyframes moveBg {
  0% { background-position: 0% 0%, 100% 100%; }
  100% { background-position: 100% 100%, 0% 0%; }
}

h1 {
  font-size: 4.8rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 3.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-align: center;
}

h3 {
  font-size: 2.4rem;
  font-weight: 500;
  margin-bottom: 0.8rem;
}

p, li {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

header {
  margin-top: 20px;
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  padding: 1rem 9%;
  background-color: transparent;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
}

.logo {
  font-size: 3rem;
  color: #b74b4b;
  font-weight: 800;
  cursor: pointer;
  transition: 0.5s ease;
}

.logo:hover {
  transform: scale(1.1);
}

nav a {
  font-size: 1.8rem;
  color: white;
  margin-left: 4rem;
  font-weight: 500;
  transition: 0.3s ease;
  border-bottom: 3px solid transparent;
}

nav a:hover,
nav a.active {
  color: #b74b4b;
  border-bottom: 3px solid #b74b4b;
}

@media(max-width:995px) {
  nav {
    position: absolute;
    display: none;
    top: 0; right: 0;
    width: 40%;
    border-left: 3px solid #b74b4b;
    border-bottom: 3px solid #b74b4b;
    border-bottom-left-radius: 2rem;
    padding: 1rem solid;
    background-color: #161616;
  }

  nav.active { display: block; }

  nav a {
    display: block;
    font-size: 2rem;
    margin: 3rem 0;
  }

  nav a:hover,
  nav a.active {
    padding: 1rem;
    border-radius: 0.5rem;
    border-bottom: 0.5rem solid #b74b4b;
  }
}

section {
  min-height: 100vh;
  padding: 6rem 9% 4rem;
}

#skills, #services, #projects, #experience, #contact {
  min-height: auto;
}

#skills, #services, #projects, #experience, #contact {
  padding: 6rem 9% 4rem;
}

.home {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8rem;
  background-color: transparent;
}

.home .home-content h1 { line-height: 1.3; }
span { color: #b74b4b; }

.home-content p { margin-bottom: 2rem; }

.home-img {
  border-radius: 50%;
}

.home-img img {
  width: 32vw;
  border-radius: 50%;
  box-shadow: 0 0 25px #b74b4b;
  cursor: pointer;
  transition: 0.2s linear;
}

.home-img img:hover {
  transform: scale(1.05);
}

.social-icons a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 4rem; height: 4rem;
  background-color: transparent;
  border: 0.2rem solid #b74b4b;
  font-size: 2rem;
  border-radius: 50%;
  margin: 3rem 1.5rem 3rem 0;
  transition: 0.3s ease;
  color: #b74b4b;
}

.social-icons a:hover {
  color: black;
  transform: scale(1.3) translateY(-5px);
  background-color: #b74b4b;
  box-shadow: 0 0 25px #b74b4b;
}

.btn {
  display: inline-block;
  padding: 1rem 2.8rem;
  background-color: black;
  border-radius: 4rem;
  font-size: 1.6rem;
  color: #b74b4b;
  letter-spacing: 0.3rem;
  font-weight: 600;
  border: 2px solid #b74b4b;
  transition: 0.3s ease;
  cursor: pointer;
}

.btn:hover {
  transform: scale(1.03);
  background-color: #b74b4b;
  color: black;
  box-shadow: 0 0 25px #b74b4b;
}

.typing-text {
  font-size: 2.4rem;
  font-weight: 600;
  min-width: 280px;
}

.typing-text span {
  position: relative;
}

.typing-text span::before {
  content: "Web Developer";
  color: #b74b4b;
  font-size: inherit;
  font-weight: inherit;
  animation: words 20s infinite;
}

.typing-text span::after {
  content: "";
  background-color: transparent;
  position: absolute;
  width: 0;
  height: 100%;
  border-left: 3px solid #b74b4b;
  right: -8px;
  animation: cursor 0.6s infinite;
}

@keyframes cursor {
  to { border-left: 3px solid transparent; }
}

@keyframes words {
  0%, 20%   { content: "Virtual Assistant"; }
  21%, 40%  { content: "Developer"; }
  41%, 60%  { content: "Tech Support"; }
  61%, 80%  { content: "Trader"; }
  81%, 100% { content: "Gamer"; }
}

.glass-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 1.5rem;
  padding: 2.5rem;
  margin: 2rem auto;
  max-width: 800px;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

#skills 
.skill-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 1.5rem;
  padding: 2.5rem;
  width: 100%;
  max-width: 800px;
  margin-bottom: 4rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 1;
}

.skill-card:not(:last-child)::after {
  content: '';
  position: absolute;
  bottom: -4rem;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 4rem;
  background-color: rgba(255, 255, 255, 0.2);
  z-index: -1;
}

.skills-groups {
  display: grid;
  gap: 2.4rem;
}

.skill-group h3 {
  margin: 0 0 1rem 0;
  color: #b74b4b;
}

.badge-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.badge {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border-radius: 9999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: #eaeaea;
  font-size: 1.4rem;
}

.description-list {
    list-style-type: disc; /* or circle, square */
    padding-left: 20px;    /* indentation from the left */
    margin-left: 0;        /* optional: reset default margin */
    line-height: 1.6;      /* spacing between bullets */
}

.description-list li {
    margin-bottom: 8px;    /* spacing between list items */
}

#services
#services h2 {
  font-size: 2.5rem;   
  margin-bottom: 0rem;
  text-align: center;
  color: #fff;        
}

.service-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 1.5rem;
  padding: 2.5rem;
  width: 100%;
  max-width: 800px;
  margin: 0 auto 4rem auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 1;
  text-align: left;
}

.service-card h3 {
    margin-bottom: 1rem;
  color: #b74b4b;      
}

.service-card h3 span.icon {
  font-size: 2rem;       
  color: #00e5ff;          
}

.service-card:not(:last-child)::after {
  content: '';
  position: absolute;
  bottom: -4rem;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 4rem;
  background-color: rgba(255, 255, 255, 0.2);
  z-index: -1;
}

#projects .projects-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4rem;
}

.project-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 1.5rem;
  padding: 2.5rem;
  width: 100%;
  max-width: 800px;
  transform: none, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 1;
}

.project-card h3 {
    margin-bottom: 1rem;
  color: #b74b4b;      
}

.project-card:not(:last-child)::after {
  content: '';
  position: absolute;
  bottom: -4rem;
  left: 50%;
  transform: translateX(-50%);
  width: 2px; height: 4rem;
  background-color: rgba(255, 255, 255, 0.2);
  z-index: -1;
}

#experience {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6rem 9% 4rem;
}

.experience-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 1.5rem;
  padding: 2.5rem;
  width: 100%;
  max-width: 800px;
  margin-bottom: 4rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 1;
}

.experience-card h3 {
  margin-bottom: 1rem;
  color: #b74b4b;      
}

.experience-card:not(:last-child)::after {
  content: '';
  position: absolute;
  bottom: -4rem;
  left: 50%;
  transform: translateX(-50%);
  width: 2px; height: 4rem;
  background-color: rgba(255, 255, 255, 0.2);
  z-index: -1;
}

.experience-card .company {
  font-style: italic;
  color: #b7b7b7;
  margin-bottom: 0.5rem;
}

.experience-card .dates {
  font-size: 1.4rem;
  color: #b7b7b7;
  margin-bottom: 1.5rem;
}

.experience-card .description-list {
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

#contact .contact-content { padding: 1rem; }

.contact-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.5rem;
  padding: 1.6rem 2.2rem;
  margin-bottom: 1.6rem;
}

.site-footer {
  padding: 2rem 9%;
  text-align: center;
  color: #eaeaea;
  opacity: 0.85;
}

.site-footer p { margin: 0; }

#scroll-popup {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
  display: none;
}

#scroll-popup.show { display: block; }

#scroll-popup .popup-card {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid rgba(0, 255, 128, 0.5);
  border-radius: 1.2rem;
  padding: 1.2rem 1.6rem;
  box-shadow: 0 0 24px rgba(0, 255, 128, 0.25);
  animation: blinkGreen 1s infinite;
}

#scroll-popup .popup-photo {
  width: 56px; height: 56px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 12px rgba(0, 255, 128, 0.35);
}

#scroll-popup .popup-text h3 {
  margin: 0;
  color: #bfffe3;
}

#scroll-popup .popup-text p {
  margin: 0;
  color: #eafff6;
  font-size: 1.4rem;
}

#scroll-popup .popup-close {
  background: transparent;
  color: #7affc4;
  border: none;
  font-size: 2.2rem;
  cursor: pointer;
  line-height: 1;
  margin-right: 0.4rem;
}

@keyframes blinkGreen {
  0%, 100% {
    box-shadow: 0 0 0 rgba(0, 255, 128, 0);
    border-color: rgba(0,255,128,0.35);
  }
  50% {
    box-shadow: 0 0 28px rgba(0, 255, 128, 0.6);
    border-color: rgba(0,255,128,0.9);
  }
}
