/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(to bottom, #000000, #8B0000);
  color: #fff;
  line-height: 1.6;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  background-color: #111;
  box-shadow: 0 4px 8px rgba(0,0,0,0.4);
  flex-wrap: wrap;
}

#logo-wrapper img {
  height: 50px;
}

.pages a {
  color: #fff;
  text-decoration: none;
  margin-left: 20px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.pages a:hover {
  color: #ff4d4d;
}

main {
  padding: 20px;
}

.Introduction {
  text-align: center;
  padding: 40px 20px;
}

.Introduction h1 {
  font-size: 2.5rem;
  color: #ff4d4d;
}

.Introduction h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.Introduction p {
  max-width: 800px;
  margin: 0 auto;
}

.services {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.services h5 {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid #ff4d4d;
  border-radius: 10px;
  padding: 10px 20px;
  font-size: 1rem;
  flex: 1 1 calc(50% - 30px);
  max-width: 250px;
  text-align: center;
}

#offers,
#project,
#heading2 {
  text-align: center;
  margin: 40px 0 20px;
}

.myoffers, .myproject, #contact-box {
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: 15px;
  margin: 20px auto;
  max-width: 900px;
}

.content h5 {
  color: #ff4d4d;
  margin-top: 15px;
  font-size: 1.1rem;
}

.content p {
  margin-top: 8px;
}

.myproject h5 a {
  color: #ff9999;
  text-decoration: none;
}

.myproject h5 a:hover {
  color: #ffffff;
}

.contact {
  text-align: center;
}

.contact button {
  margin: 10px;
  padding: 12px 24px;
  font-size: 16px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
}

footer {
  background-color: #111;
  padding: 20px;
  text-align: center;
  border-top: 1px solid #333;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.social-icons {
  margin-top: 10px;
}

.social-icons a {
  color: #fff;
  margin: 0 10px;
  font-size: 20px;
  transition: color 0.3s;
}

.social-icons a:hover {
  color: #ff4d4d;
}

@media (max-width: 768px) {
  .services h5 {
    flex: 1 1 100%;
  }

  .pages {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
  }

  header {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-content {
    font-size: 14px;
  }

  .contact button {
    width: 90%;
  }
}
.glow-text {
  display: inline-block;
  font-size: 28px;
  font-weight: bold;
  color: #00bfff; /* bright sky blue */
  white-space: nowrap;
  overflow: hidden;
  border-right: 3px solid #00bfff; /* typing cursor */
  /* animation setup */
  animation: typing 2.8s steps(var(--text-steps), end) forwards,
             blink 0.7s step-end infinite;
  /* glow */
  text-shadow:
    0 0 6px #00bfff,
    0 0 12px #00bfff,
    0 0 24px #00bfff,
    0 0 48px #00bfff;
}

/* dynamic width fix via CSS variable */
#animated-text.glow-text {
  --text-steps: 21; /* characters count of your text "Freelance Web Developer" */
  width: 0ch;       /* start from 0 characters */
}

/* typing effect */
@keyframes typing {
  from { width: 0ch; }
  to { width: var(--text-steps)ch; } /* width matches text length */
}

/* blinking cursor */
@keyframes blink {
  50% { border-color: transparent; }
}

/* paragraph styling under heading */
#animated-text + p {
  font-size: 16px;
  color: #ccc;
  line-height: 1.5;
  margin-top: 8px;
}