/* elements */
:root {
  --dblue: #1a3a4a;
  --mblue: #ff7f50;
  --secondary-color: #8e969d;
  --accent-color: #6e6e6e;
  --background-color: #f6f1e9;
  --text-color: #524d4d;
}

body {
  max-width: 940px;
  margin-left: auto;
  margin-right: auto;
  overflow: scroll;
  background-color: var(--background-color);
  padding: 0 15px;
  width: 100%;
}

h1 {
  font-family: "Archivo Black";
  z-index: 1;
  position: absolute;
  padding-top: 20px;
  color: var(--dblue);
}

h2 {
  z-index: 1;
  font-family: "work sans";
  color: var(--dblue);
}

h3,
label {
  font-family: "open sans";
  color: var(--dblue);
}

p,
a,

button {
  font-family: "space mono";
  color: var(--dblue);
}

a {
  background-color: #0000;
  text-decoration: none;
  color: var(--dblue);
}

* {
  box-sizing: border-box;
}

/* navbar */
.navsection {
  padding-top: 32px;
  max-width: 940px;
  margin-left: auto;
  margin-right: auto;
  height: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 20px;
}

.nameLogo {
  float: left;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.nameLogo img {
  width: 52px;
  height: auto;
  transition: transform 0.3s ease;
}

.nameLogo h2 {
  margin: 0;
  font-size: 30px;
  color: var(--dblue);
  transition: 0.3s ease;
}

.nameLogo:hover h2 {
  color: var(--mblue);
}

.nameLogo:hover img {
  transform: rotate(15deg);
}

.nav-p {
  text-align: center;
}

.nav-link {
  padding: 10px 15px;
  text-decoration: none;
  border-right: 2px solid #6e6e6e;
  transition:
    color 0.3s ease,
    transform 0.3s ease;
  transform-origin: center;
  font-weight: 600;
  font-size: clamp(14px, 3vw, 18px);
}

.nav-link:last-child {
  border-right: none;
}

.nav-link:hover {
  color: var(--mblue);
}

.navigation {
  float: right;
  max-width: fit-content;
}

.mycontain {
  padding-top: 70px;
  padding-bottom: 50px;
}

/* hero of my main page! */
.hero-andre {
  border-radius: 50%;
  transition:
    transform 0.5s ease,
    box-shadow 0.5s ease;
  border: 10px solid var(--mblue);
  width: clamp(150px, 40vw, 300px);
  height: auto;
  max-width: 100%;
  animation: pop 1.5s ease;
}

.hero-andre:hover {
  box-shadow: 0 12px 24px rgba(255, 127, 80, 0.45);
  /* Soft coral */
  transform: scale(1.05);
}

.hero-part1 {
  display: flex;
  text-align: right;
  gap: 1rem;
}

.hero-h2 {
  font-size: clamp(28px, 6vw, 50px);
  opacity: 0;
  animation: fadeInUp 1s ease;
  animation-fill-mode: forwards;
  animation-delay: 0.9s;
}

.hero-h1 {
  font-size: clamp(48px, 12vw, 90px);
  font-weight: 800;
  opacity: 0;
  animation: fadeIndown 1s ease;
  animation-fill-mode: forwards;
}

.hero-home-h3 {
  font-size: clamp(18px, 5vw, 30px);
  animation: fadeinRight 1s ease;
}

.hero-p {
  font-size: clamp(14px, 4vw, 22px);
  opacity: 0;
  animation: fadeinRight 1s ease;
  animation-fill-mode: forwards;
  animation-delay: 0.5s;
}

.hero-part2 {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.hero-social img {
  width: clamp(40px, 10vw, 60px);
  border-radius: 50%;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  position: relative;
}

.social1 {
  opacity: 0;
  animation: fadeinRight 1s ease;
  animation-fill-mode: forwards;
  animation-delay: 0.7s;
}

.social2 {
  opacity: 0;
  animation: fadeinRight 1s ease;
  animation-fill-mode: forwards;
  animation-delay: 0.9s;
}

.social3 {
  opacity: 0;
  animation: fadeinRight 1s ease;
  animation-fill-mode: forwards;
  animation-delay: 1.1s;
}

.hero-social:hover img {
  transform: translateX(5px);
  box-shadow: 0 12px 24px rgba(255, 127, 80, 0.3);
  /* Soft coral glow */
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* footer */
.ft-social {
  width: clamp(35px, 8vw, 45px);
  height: auto;
  border-radius: 50%;
  transition:
    transform 0.5s ease,
    box-shadow 0.5s ease;
  display: flex;
  justify-content: center;
  align-items: center;
}

.ft-social:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(255, 127, 80, 0.3);
  /* Soft coral glow */
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.ft-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: clamp(1rem, 5vw, 2.5rem);
  margin: 0 auto;
  max-width: 1100px;
  margin-bottom: 2.5rem;
  padding: 0 1rem;
}

.ft-content a {
  transition: color 0.3s ease;
}

.ft-content a:hover {
  color: var(--mblue);
}

.ftbox {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 0;
}

.email-c {
  text-align: center;
}

.contact-form {
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.contact-lbl {
  font-weight: 600;
}

.cta-button-2 {
  margin: 10px;
  padding: 5px 0px;
  border-radius: 10px;
  font-weight: 600;
  background-color: var(--dblue);
  border: 2px solid;
  opacity: 1;
  color: white;
}

.ft-h3 li {
  list-style: none;
}

.text {
  border-radius: 7px;
  margin: 0.5em 0;
  border: 1.5px solid;
  padding: 0.3em 0.2em;
}

.footer-bottom {
  font-size: small;
  font-weight: 100;
  text-align: center;
}

/* hero of my resume page! */
.hero-res {
  align-items: center;
  text-align: center;
  animation: fadepop 1.5s ease;
  animation-fill-mode: forwards;
  animation-delay: 0.2s;
}

.cv {
  width: clamp(120px, 50vw, 200px);
  height: auto;
  border-radius: 10px;
  border: 2px solid #ccc;
  transition:
    box-shadow 0.3s ease,
    transform 0.5s ease;
  animation: wiggle 2s infinite;

}

.cv-page {
  padding: 140px 0;
}


.cv:hover {
  box-shadow: 0 12px 24px rgba(255, 127, 80, 0.77);
  /* Soft coral glow */
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform: translateY(-5px);
}

/* hero of my projects page! */

.pgproject {
  padding: 1rem 0 4rem;
}

.constr-box {
  margin: 0;
  padding: 1.5rem 0 1rem;
  display: flex;
  justify-content: left;
  align-items: center;

  opacity: 0;
  animation: fadeInUp 0.8s ease;
  animation-fill-mode: forwards;
  animation-delay: 0.2s;
  background-color: var(--background-color);
}

.h3-constr {
  background-color: orange;
  text-align: center;
  padding: 4px 8px;
  display: inline-block;
  border-radius: 5px;
  line-height: 1.2;
}

.space {
  padding: clamp(50px, 10vw, 320px);
}

.space-res {
  padding: clamp(50px, 10vw, 300px);
}

.project-card {
  position: relative;
  display: flex;
  align-items: center;
  border: 1px solid rgba(26, 58, 74, 0.12);
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  gap: 20px;
  padding: 52px 20px 20px;
  margin-bottom: 1.5rem;
}

.org {
  color: grey;
  font-size: 12px;
}

.project-card-content {
  flex: 1 1 0;
  padding: 20px;
  min-width: 0;
}

.project-card>a {
  flex: 0 1 45%;
  min-width: 0;
}

.project-card-img {
  transition: transform 0.6s ease;
  display: block;
  width: 100%;
  max-width: 450px;
  height: auto;
  border-radius: 10px;
}

.project-card-img:hover {
  transform: scale(1.03);
}

.status-badge {
  position: absolute;
  top: 16px;
  right: 20px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  font-family: "Space Mono", monospace;
  font-size: 0.75rem;
  font-weight: 700;
}

.status-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  flex: 0 0 auto;
}

.status-badge.completed {
  background-color: rgba(16, 185, 129, 0.1);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.status-badge.completed .status-dot {
  background-color: #10b981;
}


.status-badge.in-progress {
  background-color: rgba(59, 130, 246, 0.1);
  color: #2563eb;
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.status-badge.in-progress .status-dot {
  background-color: #3b82f6;
  animation: pulse-ring 1.8s infinite ease-in-out;
}


.status-badge.on-hold {
  background-color: rgba(245, 158, 11, 0.1);
  color: #d97706;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.status-badge.on-hold .status-dot {
  background-color: #f59e0b;
}


@keyframes pulse-ring {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 5px rgba(59, 130, 246, 0);
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
  }
}

/* RESPONSIVE DESIGN FOR TABLET & MOBILE */

/* Keep project cards stacked until there is enough room for the image. */
@media (max-width: 900px) {
  .project-card {
    align-items: stretch;
    flex-direction: column;
    gap: 0.5rem;
    padding: 3.5rem 1rem 1rem;
  }

  .project-card-content {
    padding: 0.75rem;
  }

  .project-card-img {
    width: 100%;
    max-width: none;
  }

  .project-card>a {
    flex-basis: auto;
  }
}

/* Tablets (768px and below) */
@media (max-width: 768px) {
  body {
    padding: 0 10px;
  }

  .navsection {
    flex-direction: column;
    padding-top: 20px;
    padding-bottom: 15px;
    height: auto;
    gap: 15px;
  }

  .nameLogo {
    width: 100%;
    justify-content: center;
    margin-bottom: 10px;
  }

  .nameLogo h2 {
    font-size: 24px;
  }

  .nameLogo img {
    width: 40px;
  }

  .navigation {
    width: 100%;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    float: none;
  }

  .nav-link {
    padding: 8px 12px;
    font-size: 14px;
    border-right: 2px solid #6e6e6e;
  }

  .mycontain {
    padding-top: 30px;
    padding-bottom: 50px;
  }

  .hero-part1 {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }

  .hero-h2 {
    font-size: 28px;
  }

  .hero-h1 {
    font-size: 50px;
  }

  .hero-home-h3 {
    font-size: 20px;
  }

  .hero-p {
    font-size: 16px;
  }

  .hero-part2 {
    flex-direction: column;
    gap: 1.5rem;
  }

  .hero-andre {
    width: clamp(140px, 40vw, 250px);
  }

  .hero-social img {
    width: clamp(40px, 10vw, 50px);
  }

  .ft-content {
    gap: 1.5rem;
    flex-direction: column;
  }

  .ftbox {
    flex: 1 1 100%;
    text-align: center;
  }

  .cv {
    width: clamp(100px, 40vw, 180px);
  }

  .constr-box {
    padding-top: 1rem;
  }

}

.project-card {
  opacity: 0;
  animation: fadeIndown 1s ease;
  animation-fill-mode: forwards;
}

/* Mobile Phones (480px and below) */
@media (max-width: 480px) {
  body {
    padding: 0 8px;
  }

  h1 {
    padding-top: 10px;
    position: relative;
  }

  .navsection {
    padding-top: 15px;
    padding-bottom: 10px;
    gap: 10px;
  }

  .nameLogo {
    font-size: 14px;
    margin-bottom: 5px;
  }

  .nameLogo h2 {
    font-size: 18px;
  }

  .nameLogo img {
    width: 32px;
  }

  .navigation {
    gap: 0;
    width: 100%;
  }

  .nav-link {
    padding: 6px 8px;
    font-size: 12px;
    border-right: 1px solid #6e6e6e;
  }

  .nav-p {
    text-align: center;
  }

  .mycontain {
    padding-top: 20px;
    padding-bottom: 30px;
  }

  h2 {
    font-size: 18px;
  }

  h3 {
    font-size: 14px;
  }

  p,
  a {
    font-size: 12px;
  }

  .hero-part1 {
    flex-direction: column;
    text-align: center;
    gap: 0.25rem;
  }

  .hero-h2 {
    font-size: 20px;
  }

  .hero-h1 {
    font-size: 36px;
    position: relative;
  }

  .hero-home-h3 {
    font-size: 16px;
  }

  .hero-p {
    font-size: 13px;
    line-height: 1.4;
  }

  .hero-part2 {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .hero-andre {
    width: clamp(100px, 35vw, 180px);
    border: 6px solid var(--mblue);
  }

  .hero-social img {
    width: 35px;
  }

  .ft-social {
    width: clamp(30px, 8vw, 40px);
  }

  .ft-content {
    gap: 1rem;
    flex-direction: column;
  }

  .ftbox {
    flex: 1 1 100%;
    text-align: center;
  }

  .footer-bottom {
    font-size: 10px;
    margin-top: 10px;
  }

  .space {
    padding: clamp(30px, 5vw, 80px);
  }

  .space-res {
    padding: clamp(30px, 5vw, 80px);
  }

  .hero-res {
    padding: clamp(30px, 5vw, 60px) 0;
  }

  .cv {
    width: clamp(80px, 35vw, 150px);
  }

  .constr-box {
    padding: 0.75rem 0 1rem;
  }

  .h3-constr {
    font-size: 14px;
    padding: 3px 6px;
  }

  .pgproject {
    padding-bottom: 2rem;
  }

  .project-card {
    gap: 0.25rem;
    padding: 3.25rem 0.75rem 0.75rem;
    margin-bottom: 1rem;
  }

  .status-badge {
    top: 0.75rem;
    right: 0.75rem;
    font-size: 0.65rem;
  }

  .project-card-content {
    padding: 0.5rem;
  }

  .project-card-content h3 {
    line-height: 1.35;
  }

  .project-card-content p {
    line-height: 1.5;
  }
}

/* Extra small devices (under 360px) */
@media (max-width: 360px) {
  .nameLogo h2 {
    font-size: 16px;
  }

  .hero-h1 {
    font-size: 28px;
  }

  .hero-h2 {
    font-size: 16px;
  }

  .hero-home-h3 {
    font-size: 14px;
  }

  .hero-p {
    font-size: 12px;
  }

  .nav-link {
    padding: 5px 6px;
    font-size: 11px;
  }

  .h1-about {
    font-size: 22px;
  }
}

@keyframes pop {
  0% {
    transform: scale(0.5);
  }

  50% {
    transform: scale(1.1);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes fadepop {
  0% {
    opacity: 0;
    transform: scale(0.2);
  }

  50% {
    opacity: 0.8;
    transform: scale(1.1);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fadeinRight {
  0% {
    opacity: 0;
    transform: translateX(100px);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeIndown {
  0% {
    opacity: 0;
    transform: translateY(50px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(-50px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes wiggle {

  0%,
  100% {
    transform: rotate(0deg);
  }

  5% {
    transform: rotate(-4deg);
  }

  10% {
    transform: rotate(4deg);
  }

  15% {
    transform: rotate(-3deg);
  }

  20% {
    transform: rotate(3deg);
  }

  25% {
    transform: rotate(0deg);
  }
}

.wave-text span {
  display: inline-block;
  font-size: 1.8rem;
  animation: wave 2s ease-in-out infinite;
}

.wave-text span:nth-child(1) {
  animation-delay: 0s;
}

.wave-text span:nth-child(2) {
  animation-delay: 0.2s;
}

.wave-text span:nth-child(3) {
  animation-delay: 0.4s;
}

.wave-text span:nth-child(4) {
  animation-delay: 0.6s;
}

.wave-text span:nth-child(5) {
  animation-delay: 0.8s;
}

.wave-text span:nth-child(6) {
  animation-delay: 1s;
}

@keyframes wave {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}