/* Consolidate repeated properties */

* {
  font-family: "Poppins", sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
  list-style: none;
  text-decoration: none;
  zoom: 100%;
}

header {
  position: fixed;
  width: 100%;
  display: flex;
  justify-content: center;
  z-index: 999;
}

#header {
  width: 80%;
  height: 80px;
  background: #5b6cff;
  color: #fff;
  backdrop-filter: blur(10px);
  box-shadow: #000000 0px 0px 100px 35px;
  font-family: "Google Sans Regular";
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  position: absolute;
  border-radius: 50px;
  margin-top: 20px;
  text-align: center;
  z-index: 999;
}

.image {
  width: 70px;
  margin-right: 5px;
  height: 60px;
  border-radius: 100%;
}

.logo {
  font-size: 32px;
  font-weight: bold;
  color: #ffffff;
  text-transform: capitalize;
  font-family: "Google Sans Regular";
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-direction: row;
}

.logo a {
  color: #fff;
}

.lst {
  display: none;
}

nav {
  font-family: "Google Sans Regular";
}

#nav {
  display: flex;
  justify-content: center;
  align-items: center;
}

.nav-bar ul {
  display: flex;
}

.nav-bar ul li a {
  display: block;
  color: #fefefe;
  font-size: 20px;
  padding: 10px 25px;
  border-radius: 15px;
  transition: 0.2s;
  margin: 0 5px;
}

.nav-bar ul li a:hover {
  color: #5b6cff;
  background: #fefefe;
  transition: 0.5s;
}

.nav-bar a.active {
  color: #5b6cff;
  background: #fefefe;
}

.nav-bar.active {
  height: 290px;
  width: 100%;
  border-radius: 50px;
  margin-top: 10px;
}

.nav-bar.active ul {
  opacity: 1;
}

.con {
  color: #5b6cff;
  font-size: 1.2rem;
  font-weight: 700;
  background-color: #fff;
  padding: 16px;
  border-radius: 50px;
  transition: all 1.2s ease-in-out;
}

.ba {
  margin-left: 20px;
}

.back {
  color: white;
  background-color: #5b6cff;
  border-radius: 20px;
  font-size: 30px;
  width: 140px;
  cursor: pointer;
  padding-left: 20px;
  margin-right: 20px;
}

.con:hover {
  background-color: white;

}

.link a {
  position: relative;
  padding-bottom: 0.75rem;
  color: #fff;
}

.link a::after {
  content: "";
  position: absolute;
  height: 2px;
  width: 0;
  bottom: 0;
  left: 0;
  background-color: #5b6cff;
  transition: all 0.3s ease;
}

.link a:hover::after {
  width: 70%;
}

section {
  padding: 50px 50px;
  background-color: #2c3e50;
}

h1 {
  font-size: 50px;
  font-weight: bold;
  color: #8892ff;
  line-height: 1.2;
  margin-bottom: 1.5em;
  margin-top: 40px;
}

h2 {
  font-size: 2.2rem;
  /* 50px converted to rem for better scaling */
  font-weight: 700;
  /* More semantic than 'bold' */
  color: #8892ff;
  line-height: 1.2;
  margin: 2.5rem 0 1.5em;
  /* Combined margins, more efficient */
  transition: color 0.3s ease;
  /* Smooth color transitions */
}

.container {
  max-width: 2000px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem;
}

.subtitle {
  text-align: center;
  margin-bottom: 3rem;
  color: whitesmoke;
  line-height: 31px;
  width: auto;
  border: #000 double;
  display: block;
  align-self: start;
  justify-self: start;
  text-align: start;
  padding: 10px;
  border-radius: 20px;
  font-size: 22px;
}

.subtitle.card-main {
  padding: 20px;
  max-width: 800px;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.6;
}

@media screen and (max-width: 768px) {
  .subtitle.card-main {
    padding: 15px;
    font-size: 0.9rem;
  }

  .subtitle.card-main small {
    font-size: 0.8rem;
  }
}

@media screen and (max-width: 480px) {
  .subtitle.card-main {
    padding: 10px;
    font-size: 0.8rem;
  }

  .subtitle.card-main small {
    font-size: 0.7rem;
  }
}

.timeline {
  position: relative;
  max-width: 2000px;
  margin: 20px auto;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 3px;
  background-color: #8892ff;
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -1px;
  height: 1950px;
}

.card {
  background-color: #111a29;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 3rem;
  width: calc(50% - 80px);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
  position: relative;
}

.card-main {
  background-color: #8892ff;
  /* Lighter shade of blue for better comfort */
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 3rem;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

.left {
  margin-right: auto;
}

.right {
  margin-left: auto;
}

.timeline-label {
  position: absolute;
  font-size: 22px;
  color: #5b6cff;
  background: transparent;
  top: 24px;
}

.left .timeline-label {
  right: -200px;
}

.right .timeline-label {
  left: -200px;
}

.icon {
  text-align: center;
  margin-bottom: 1rem;
}

.icon img {
  width: 40px;
  height: 40px;
}

.title {
  margin-top: 25px;
  text-align: center;
  font-size: 1.5rem;
  color: #6c9bcf;
  margin-bottom: 1rem;
}

.content {
  text-align: right;
  flex-direction: column;
}

/* Add circular markers for timeline */
.timeline-marker {
  position: absolute;
  width: 16px;
  height: 16px;
  background-color: white;
  border: 4px solid #0e1a2b;
  border-radius: 50%;
  top: 30px;
  z-index: 1;
}

.left .timeline-marker {
  right: -88px;
}

.right .timeline-marker {
  left: -88px;
}


.main {
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: url(images/background.png) no-repeat;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.main h2 {
  color: aliceblue;
  font-size: 1.4em;
  font-weight: 500;
}

.main h2 span {
  display: inline-block;
  margin-top: 10px;
  color: #d6dbe9;
  font-size: 3em;
  font-weight: 500;
}

.main h4 {
  color: aliceblue;
  font-size: 1.6em;
  font-weight: 600;
  letter-spacing: 1px;
  margin-top: 10px;
  margin-bottom: 10px;
}


.btn {
  font-size: 1rem;
  color: #fff;
  background-color: #5b6cff;
  cursor: pointer;
  padding: 15px 20px;
  width: 80px;
}

.btn:hover {
  background-color: #5b6cff;
  opacity: 0.6;
}


#btn {
  position: fixed;
  display: none;
  cursor: pointer;
  background-color: #5b6cff;
  color: #fefefe;
  font-size: 30px;
  font-weight: 1000;
  width: 55px;
  height: 60px;
  border: #000 solid 2px;
  right: 22px;
  bottom: 100px;
  z-index: 999;
}

.zi {
  width: 170px;
  position: relative;
  top: 1px;
  right: 35px;
}

#soc {
  display: flex;
  margin-top: 10px;
}

#right {
  display: flex;
  width: 100%;
}

.form {
  background-color: #5b6cff;
  color: white;
  padding: 3px;
  display: flex;
  justify-content: space-between;
}

.form-title {
  font-size: 1.5em;
  font-weight: 600;
  margin-left: 10px;
}

.form-title span {
  color: #5b6cff;
}

h {
  color: #3a6cf4;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  gap: 20px;
  text-decoration: none;
  font-weight: 500;
}

h a {
  text-decoration: none;
  font-size: 25px;
  color: #6770d3;
  font-weight: 700;
  transition: all 1.3s;
}

h a:hover {
  transition: all 1.5s;
  transform: scale(1.1);
  color: whitesmoke;
  background-color: #6770d3;
  padding: 8px;
  border-radius: 50px;
}

.load {
  display: flex;
  align-items: center;
  justify-content: center;
}

.load a {
  background-color: #5b6cff;
  border: 5px solid;
  border-radius: 25px;
  padding: 15px;
  color: white;
  padding: 15px 25px 15px 25px;
  transition: 1.5s;
}

.load a:hover {
  background-color: white;
  color: #5b6cff;
  border: 5px #5b6cff solid;
  border-radius: 25px;
  padding: 15px;
  padding: 15px 25px 15px 25px;
  transform: scale(1.1);

}

.about-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem;
  font-family: 'Arial', sans-serif;
}

.main-title {
  text-align: center;
  color: #2c3e50;
  margin-bottom: 2rem;
}

.profile-section {
  background: #ffffff;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.greeting {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.highlight {
  color: #3498db;
  font-weight: bold;
}

.role {
  color: #7f8c8d;
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.description {
  line-height: 1.6;
  margin-bottom: 2rem;
}

.expertise-section,
.strengths-section {
  margin: 2rem 0;
}

.skills-container {
  display: flex;
  gap: 2rem;
  margin-top: 1rem;
}

.skill-group {
  flex: 1;
}

.skill-group h3 {
  color: #2c3e50;
  margin-bottom: 1rem;
}

.skill-group ul,
.strengths-list {
  list-style: none;
  padding: 0;
}

.skill-group ul li,
.strengths-list li {
  margin: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.skill-group ul li:before,
.strengths-list li:before {
  content: "•";
  color: #5b6cff;
  position: absolute;
  left: 0;
}

.content {
  color: whitesmoke;
  display: flex;
}

.cta-section {
  text-align: center;
  margin-top: 2rem;
  padding: 1rem;
  background: #f7f9fc;
  border-radius: 5px;
}

@media (max-width: 600px) {
  .skills-container {
    flex-direction: column;
    gap: 1rem;
  }
}

/* Responsive styles */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }

  .timeline::after {
    left: 31px;
  }

  .card {
    width: calc(100% - 80px);
    margin-left: 80px;
  }

  .right,
  .left {
    margin-left: auto;
    margin-right: 0;
  }

  .timeline-marker {
    left: -40px !important;
    right: auto !important;
    top: 15px;

  }

  .timeline-label {
    left: 10px !important;
    right: auto !important;
    top: 10px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 1rem;
  }

  h1 {
    font-size: 2rem;
  }

  .card {
    padding: 1rem;
    width: calc(100% - 60px);
    margin-left: 60px;
  }

  .timeline-marker {
    left: -36px !important;
  }

  .timeline-label {
    left: 10px !important;
    font-size: 14px;
  }

  .content p {
    font-size: 14px;
  }
}

@media (max-width: 1820px) {
  h1>p:hover {
    margin: 0px 250px;
  }
}

@media (max-width: 1340px) {
  h1>p:hover {
    margin: 0px 200px;
  }

  .animated-text {
    font-size: 26.2px;
  }
}

@media (max-width: 1240px) {
  h1>p:hover {
    margin: 0px 100px;
  }

  .animated-text {
    font-size: 1.22rem;
  }
}

@media (max-width: 1000px) {
  h1>p:hover {
    margin: 0px 150px;
  }
}

@media (max-width: 1023px) {
  header {
    padding: 12px 20px;
  }

  .navigation a {
    padding-left: 10px;
  }

  .title {
    font-size: 1.8;
  }

  section {
    padding: 80px 20px;
  }

  .main-content h2 {
    font-size: 1em;
  }

  .main-content h3 {
    font-size: 1.6em;
  }

  .contact {
    flex-direction: column;
    align-items: center;
  }

  h1>p:hover {
    margin: 0px 0px;
  }

  .form .social-icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .animated-text {
    font-size: 18.5px;
  }
}

@media (max-width: 641px) {
  body {
    font-size: 12px;
  }

  .image {
    width: 20%;
  }

  .animated-text {
    font-size: 9px;
  }

  .main-content h2 {
    font-size: 0.8em;
  }

  .main-content h3 {
    font-size: 1.4em;
  }

  h1>p:hover {
    margin: 0px 0px;
  }

  .form .social-icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .info i {
    font-size: 30px;
    position: relative;
    left: 105px;
    top: 20px;
    color: #3a6cf4;
  }
}

@media (max-width: 300px) {
  body {
    font-size: 10px;
  }

  h1>p:hover {
    margin: 0px 0px;
  }

  .info i {
    font-size: 30px;
    position: relative;
    left: 90px;
    top: 20px;
    color: #3a6cf4;
  }
}

@media only screen and (max-width: 1320px) {
  header {
    padding: 0 50px;
  }
}

@media only screen and (max-width: 1100px) {
  header {
    padding: 0 30px;
  }
}

@media only screen and (max-width: 900px) {
  .lst {
    display: block;
    cursor: pointer;
  }

  .logo {
    font-size: 1.8rem;
  }

  .lst .line {
    width: 30px;
    height: 3px;
    background: #ffffff;
    margin: 6px 0;
  }

  .nav-bar {
    height: 0;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    width: 100vw;
    background: #312d5b;
    transition: 0.7s;
    overflow: hidden;
  }

  .nav-bar ul {
    display: block;
    width: fit-content;
    margin: 30px auto;
    text-align: center;
    transition: 1s;
    opacity: 0;
  }

  .nav-bar ul li a {
    margin-bottom: 12px;
    color: #fefefe;
  }
}

@keyframes cursor {
  to {
    border-left: 2px solid #ff7f5000;
  }
}

@keyframes words {

  0%,
  20% {
    content: "Software Engineering";
  }

  21%,
  40% {
    content: "Information Technology";
  }

  41%,
  60% {
    content: "Technical Support";
  }

  61%,
  80% {
    content: "Full Stack Dev.";
  }

  81%,
  100% {
    content: "Designer";
  }
}

@keyframes typing {

  10%,
  15%,
  30%,
  35%,
  50%,
  55%,
  70%,
  75%,
  90%,
  95% {
    width: 0;
  }

  5%,
  20%,
  25%,
  40%,
  45%,
  60%,
  65%,
  80%,
  85% {
    width: calc(100% + 8px);
  }
}

@media (max-width: 645px) {
  .socc h1 i {
    display: none;
  }

  .socc a i {
    display: block;
    position: static;
    line-height: 1em;
  }
}

@media (max-width: 426px) {
  .logo {
    font-size: 1.5em;
  }

  .text-center>h1 {
    font-size: 20px;
  }

  .text-center>h1>i {
    display: none;
  }

  .back {
    font-size: 1.4em;
  }

  .ba {
    margin-left: 1px;
    padding-left: 1px;
  }

  #grid {
    grid-template-columns: auto;
  }

  .container {
    margin: auto;

  }
}

@media (max-width: 643px) {
  .text-center>h1 {
    font-size: 20px;
  }

  .text-center>h1>i {
    display: none;
  }
}

@media (max-width: 375px) {
  .logo {
    font-size: 2em;
  }

}

@media (max-width: 321px) {
  .logo {
    font-size: 1.8em;
  }

  .back {
    font-size: 1.3em;
  }

  .ba {
    margin-left: 1px;
    padding-left: 1px;
  }

  #header {
    width: 99%;
  }
}

@media (min-width: 375px) {
  .arr {
    position: relative;
    bottom: 160px;
    width: 100%;
    /* position: absolute;
    top: 850px;
    left: 890px; */
  }

  #arr {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 1440px) {
  .arr {
    position: relative;
    bottom: 160px;
    width: 100%;
    /* position: absolute;
    top: 850px;
    left: 890px; */
  }

  #arr {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 1024px) {
  .arr {
    position: relative;
    bottom: 160px;
    width: 100%;
    /* position: absolute;
  top: 850px;
  left: 890px; */
  }

  #arr {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .arr {
    position: relative;
    bottom: 160px;
    width: 100%;
    /* position: absolute;
  top: 850px;
  left: 890px; */
  }

  .back {
    left: 15px;
  }

  #arr {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 435px) {
  .arr {
    position: relative;
    bottom: 160px;
    width: 100%;
    /* position: absolute;
  top: 850px;
  left: 890px; */
  }

  #arr {
    width: 100%;
    text-align: center;
  }
}


@media (max-width: 375px) {
  .arr {
    position: relative;
    bottom: 160px;
    width: 100%;
    /* position: absolute;
  top: 850px;
  left: 890px; */
  }

  #arr {
    width: 100%;
    text-align: center;
  }

  #header {
    width: 99%;
  }
}

@media (max-width: 320px) {
  .arr {
    position: relative;
    bottom: 160px;
    width: 100%;
    /* position: absolute;
  top: 850px;
  left: 890px; */
  }

  #arr {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 1440px) {
  .info {
    justify-content: center;
  }

  .res {
    display: none;
  }

  .inf {
    border: 0px;
    border-bottom: #000 5px;
    border-top: #000 5px;
  }
}

@media print {
  img {
    display: none;
  }
}

@media print {
  .protect-copy::before {
    content: "Copyright Protected image. Can’t Print ";
  }

  .protect-copy * {
    display: none;
  }
}