@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500&display=swap'); /* poppins */
/* Variables */
:root {
  --font-family: "Poppins", sans-serf;
  --normal-font: 400;
  --bold-font: 700;
  --bolder-font: 900;
  --bg-color: #1f1f1f; /*purple white and black theme*/
  --triple-color: #4756df;
  --primary-color: #873eba;
  --secondary-color: #ff7235;
  --primary-shadow: #873eba;
  --white-bg-color: #d6d6d6 ;
  --bottom-margin: 0.5rem;
  --bottom-margin-2: 1rem;
  --line-height: 1.7rem;
  --transition: 0.3s;
}

html {
  scroll-behavior: smooth;
}

/* CSS Resets */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  /* border: 2px solid red; */
}

nav {
  position: flex; /*stays here*/
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 3.5rem;
  background-color: var(--bg-color);
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.1); /*shadow*/
}

h2 {
  vertical-align: center;
  text-align: center;
}

html, body {
  margin: 0;
  height: 100%;
}

* {
  box-sizing: border-box;
}

.top-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  background-color: var(--bg-color);
  /*background: linear-gradient()*/
  color: #fff;
  height: 50px;
  padding: 1em;
  
}

.menu {
  display: flex;
  flex-direction: row;
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.menu > li {
  margin: 0 1rem;
  overflow: hidden;
}

.menu-button-container {
  display: none;
  height: 100%;
  width: 30px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  
}

#menu-toggle {
  display: none;
}

.menu-button,  /* visible menu buttoin */
.menu-button:before, 
.menu-button:after {
  display: block;
  background-color: #fff;
  position: absolute;
  height: 4px;
  width: 30px;
  transition: transform 400ms cubic-bezier(0.23, 1, 0.32, 1);
  border-radius: 2px;
  cursor: pointer;
}

.menu-button::before {
  content: '';
  margin-top: -8px;
}

.menu-button::after {
  content: '';
  margin-top: 8px;
}

#menu-toggle:checked + .menu-button-container .menu-button:before {
  margin-top: 0px;
  transform: rotate(405deg);
}

#menu-toggle:checked + .menu-button-container .menu-button {
  background: rgba(255,255,255,0);
}

#menu-toggle:checked + .menu-button-container .menu-button::after {
  margin-top: 0px;
  transform: rotate(-405deg);
}


@media (max-width: 700px) {
  .menu-button-container {
    display: flex;
  }
  .menu {
    position: absolute;
    top: 0;
    margin-top: 50px;
    left: 0;
    flex-direction: column;
    width: 100%;
    justify-content: center;
    align-items: center;
  }
  #menu-toggle ~ .menu li {
    height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    transition: height 400ms cubic-bezier(0.23, 1, 0.32, 1);
  }
  #menu-toggle:checked ~ .menu li {
    border: 1px solid #333;
    height: 2.5em;
    padding: 0.5em;
    transition: height 400ms cubic-bezier(0.23, 1, 0.32, 1);
  }
  .menu > li {
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0.5em 0;
    width: 100%;
    color: white;
    background-color: #222;
  }
  .menu > li:not(:last-child){
    border-bottom: 1px solid #444;
  }
  nav {
    padding: 1.5rem 1rem;
  }
  .bigword {
    display: none;
  }


  .hero {
    margin-top: -4rem;
    flex-direction: column;
    gap: 0;
  }
  .hero-img {
    max-width: 100%;
    margin-left: 100px;
    display: flex;
  }
  .bio  {
    margin-top: -7rem;
    width: 20.5rem;
  }

  .icon {
    width: 5.875rem;
    height: 5.25rem;
  }


}

h2 {
  color: var(--primary-color);
}

ul {
  list-style-type: none;
}
p {
  color: var(--primary-color);
  font-weight: 900;
}

a {
  text-decoration: none;
  color: var(--primary-color);
}

a:hover {
  text-decoration: none;
  color: var(--secondary-color);
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
}


/* nav bar */


nav h1 {
  color: var(--primary-color);
  font-size: 25px;
}

nav a {
  color: var(--primary-color);
  transition: var(--transition);
}
nav a:hover {
  color: var(--secondary-color);
  border-bottom: 2px solid var(--secondary-color);
}



nav ul li {
  font-weight: var(--bold-font);
  
}



/* nav bar end */
.andy-container {
  margin: 150px;
  margin-bottom: 350px;
  margin-left: 25px;
  margin-right: 75px;
  max-width: 68.75rem;
  display: flex;
  justify-content: center;
}

.andy-title {
  align-items: center;
  font-size: 100px;
}

.hero {
  padding-top: 20px;  
  opacity: 1;
  display: flex;
  align-items: right;
  justify-content: right;
  gap: 2.5rem;
  max-width: 68.75rem;
  margin-top: 50px;
  margin-left: 25px;
  margin-right: 75px;
  margin-bottom: 200px;
  background-color: var(--bg-color);
}

.hero img {
  height: 28rem;
  width: 21rem;
  box-shadow: 0px 2px 15px 2px var(--secondary-color);
}
.flex-bio {
  display: flex;
  flex-direction: column;
}

.bio {
  margin-top: 0px;
  opacity: 1;
  width: 35rem;
  height: auto;
  padding: 0.625rem;
  border-radius: 6px;
  box-shadow: 0px 2px 15px 2px var(--primary-shadow);
}
.bio-1 {
  margin-top: 35px;
  opacity: 1;
  width: 35rem;
  height: auto;
  padding: 0.625rem;
  border-radius: 6px;
  box-shadow: 0px 2px 15px 2px var(--primary-shadow);
}

.bio-2 {
  margin-top: 35px;
  opacity: 1;
  width: 35rem;
  height: auto;
  padding: 0.625rem;
  border-radius: 6px;
  box-shadow: 0px 2px 15px 2px var(--primary-shadow);
}

.bio h1 {
  margin-bottom: var(--bottom-margin);
}



.bio p {
  line-height: var(--line-height);
  padding: 0.3rem 0 0rem 0;
  background-color: var(--bg-color);
}



.skills {
  max-width: 68.75rem;
  margin: auto;
  text-align: center;
  margin-top: 2.5rem;
}

.skill-header {
  margin-bottom: 1rem;
}

.skill-text {
  display: hidden;
}

.skills-wrapper img {
  padding: 1.25rem;
}

.icon {
  width: 11.875rem;
  height: 11.25rem;
}

.icon-card {
  background-color: #fff;
  border-radius: 11px;
  box-shadow: 0 3px 10px var(--secondary-shadow);
  padding: 20px;
  margin: 10px;
}

.projects {
  background-color: var(--bg-color);
  padding: 32px 0;
  margin-top: 2rem;
}

.project-pic {
  width: 65%;
  height: 60%;
}

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

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

.project-container {
  text-align: center;
  width: 21.875rem;
  padding: 1rem;
}

.project-container p {
  padding: 0.4rem;
}

.project-title {
  margin-bottom: var(--bottom-margin);
}

.project-details {
  margin-bottom: var(--bottom-margin);
}

.project-card {
  background: #fff;
  border-radius: 11px;
  box-shadow: 0 3px 10px var(--primary-shadow);
  padding: 20px;
  margin: 10px;
  
}
/* for each project page, center align*/
.project-page-card {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: 11px;
  box-shadow: 0 3px 10px var(--primary-shadow);
  padding: 20px;
  margin: 10px;
}

.project-page-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 21.875rem;
  padding: 1rem;
}

.project-page-container p {
  padding: 0.4rem;
}


.contact {
  margin-top: 2rem;
}

.contact h2 {
  text-align: center;
  margin-bottom: var(--bottom-margin-2);
}

.contact-form-container {
  max-width: 40.75rem;
  margin: 0 auto;
  padding: 0.938rem;
  border-radius: 5px;
  box-shadow: 0 3px 10px var(--secondary-shadow);
}

.contact-form-container label {
  line-height: 2.7em;
  font-weight: var(--bold-font);
  color: var(--primary-color);
}

.contact-form-container textarea {
  min-height: 6.25rem;
  font-size: 14px;
}

.contact-form-container .input-field {
  width: 100%;
  padding-top: 10px;
  padding-bottom: 10px;
  border-radius: 5px;
  border: none;
  border: 2px outset var(--primary-color);
  font-size: 0.875rem;
  outline: none;
}

.input-field::placeholder{ 
  padding: 0.5rem;
  color: var(--primary-color);
}

.submit-btn {
  width: 100%;
  padding:10px;
  margin: 10px 0;
  background-color: #fff;
  border: 2px solid var(--primary-color);
  border-radius: 5px;
  font-size: 1rem;
  font-weight: var(--bold-font);
}

.submit-btn:hover {
  background-color: var(--primary-color);
  border: 2px solid var(--primary-color);
  cursor: pointer;
}

.socials {
  display: flex;
  flex-direction: column;
  position: fixed;
  right: 1%;
  bottom: 50%;
  background-color: var(--bg-color);
}

.socicon {
  width: 2rem;
  height: 2rem;
}

footer {
  background-color: var(--bg-color);
  padding: 1.25rem;
  text-align: center;
  margin: 2rem 0 0;
}



.back-to-top {
  position: fixed;
  right: 2rem;
  bottom: 2rem;
  cursor: pointer;
  border-radius: 100%;
  background: var(--bg-color);
  padding: 0.5rem;
  border: none;
  opacity: 100%;
  transition: opacity 0.5s;
}

.back-to-top:hover {
  opacity: 40%;
}
.up-button-icon {
  width: 1.5rem;
  bottom: 1.5rem;
  color: var(--primary-color); 
}
.hidden {
  opacity: 0%;
}

.frade {
  background-color: var(--bg-color);
  opacity: 1;
}

/* Blog Section */
.blog-section {
  text-align: center;
  padding: 50px 20px;
  background-color: #f9f9f9;
}

.blog-header {
  font-size: 2rem;
  color: #333;
}

.blog-description {
  font-size: 1.2rem;
  margin: 10px 0;
  color: #666;
}

.blog-button {
  display: inline-block;
  padding: 10px 20px;
  font-size: 1rem;
  color: #fff;
  background-color: #4756df;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.blog-button:hover {
  background-color: #3748c7;
}

/* Blog Page */
.blog-page {
  padding: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.blog-entry {
  margin-bottom: 20px;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  background-color: #fff;
  box-shadow: 0 0 15px 4px rgba(128, 0, 128, 0.6); /* Purple glow on hover */
  transition: box-shadow 0.3s ease-in-out;
}

.blog-entry:hover {
  box-shadow: 0 0 10px 2px rgba(255, 165, 0, 0.5); /* Orange glow */
}

.blog-entry h2 {
  margin: 0 0 10px;
  font-size: 1.5rem;
}

.blog-entry p {
  margin: 0 0 5px;
  color: #555;
}