/*///////////////
// RESET & BASE//
///////////////*/

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: #1f1f1f;
  background-color: white;
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3 {
  margin: 0 0 10px;
  font-weight: 700;

  font-family: "Nunito", sans-serif;
  font-optical-sizing: auto;
  font-weight: bold;
  font-style: normal;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

p, a {
  font-family: "Nunito", sans-serif;
  font-optical-sizing: auto;
  font-weight: normal;
  font-style: normal;
}

section {
  padding: 80px 20px;
  text-align: center;
}

/*//////////
// HEADER //
//////////*/

header ul {
  width: 100%;
  height: 100%;
  position: absolute;
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

header ul li {
  margin: 15px 15px;
}

header ul li a {
  font-weight: 500;
  font-size: 1.1rem;
  text-decoration: none;
  color: rgb(231, 231, 231);
  transition: all 0.3s, transform 0.3s;
  background: rgba(255, 255, 255, 0);
  pointer-events: auto;
  padding: 10px;
}

header ul li a:hover {
  color: black;
  background: rgba(255, 255, 255, 1);
}

#portfolio-text {
  width: 90%;
  text-align: center;
}

/*////////////////
// HERO SECTION //
////////////////*/

.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: -2;
  transform: translate(-50%, -50%);
  object-fit: cover;
  filter: brightness(0.6);
}

.hero-overlay {
  position: relative;
  z-index: 2;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(2px);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
  transition: all 0.3s;
}

.hero-overlay h1 {
  font-size: 4rem;
  animation: fadeInDown 1s ease forwards;
}

.hero-overlay p {
  font-size: 1.8rem;
  margin-top: 10px;
  animation: fadeInUp 1s ease forwards;
}

.hero-overlay button {
  position: absolute;
  display: inline-block;
  bottom: 50px;
  padding: 6px 15px;
  background-color: white;
  color: black;
  text-decoration: none;
  border-radius: 50px;
  font-size: 1.2rem;
  transition: background 0.4s, transform 0.3s;
  z-index: 3;
  border: none;
}


.hero-overlay button:hover {
  background-color: lightgray;
  transform: scale(1.05);
}

.funky-title {
  position: relative;
}

.funky-title span {
  display: inline-block;
  transition: transform 0.3s ease, color 0.3s ease;
  cursor: pointer;
  user-select: none; /* Disallows text selection */
}

.funky-title span:hover {
  transform: scale(1.5);
  color: #ffffff;
}

.funky-title span:active {
  cursor: grabbing;
}

/*///////////////////////
// COMPETENCES SECTION //
///////////////////////*/

.competences {
  color: white;
  background: linear-gradient(135deg, #ff4e50, #f9d423);
}

/*////////////////////
// ABOUT ME SECTION //
////////////////////*/

.about-me {
  margin-top: 100px;
  background: linear-gradient(135deg, #6a11cb, #2575fc);
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px;
  gap: 40px;
}

.about-me-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  max-width: 1000px;
  width: 100%;
}

.about-me-info {
  flex: 1;
  min-width: 250px;
  text-align: left;
}

.about-me img {
  border-radius: 50%;
  width: 180px;
  height: 180px;
  object-fit: cover;
  flex-shrink: 0;
  order: 2;
}

/*////////////////////
// PROJECTS SECTION //
////////////////////*/

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
  grid-auto-flow: dense;
}

.project-card {
  background-color: white;
  overflow: hidden;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  transition: transform 0.4s, box-shadow 0.4s;
}

.project-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.project-card:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 24px rgba(0,0,0,0.3);
}

.project-card.featured {
  grid-column: span 2;
  grid-row: span 2;
}

/*//////////////////
// SKILLS SECTION //
//////////////////*/

.skills-list {
  list-style: none;
  padding: 20px;
  margin-top: 50px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.skills-list li {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 30px;
  padding: 12px 24px;
  font-size: 1.2rem;
  backdrop-filter: blur(10px);
  transition: background 0.3s, transform 0.3s;
  margin: 20px;
}

.skills-list li:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-5px);
}

/*//////////////
// CV SECTION //
//////////////*/

.cv-button {
  display: inline-block;
  margin-top: 30px;
  padding: 12px 30px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-size: 1.2rem;
  transition: background 0.4s, transform 0.3s;
}

.cv-button:hover {
  background: linear-gradient(135deg, #43cea2, #185a9d);
  transform: scale(1.05);
}

/*///////////////////
// CONTACT SECTION //
///////////////////*/

.contact-me {
  background: linear-gradient(135deg, #00ff87, #009f4d);
  color: white;
  padding: 60px 20px;
  text-align: center;
}

.contact-me p {
  font-size: 1.2rem;
  margin-bottom: 40px;
}

.contact-me form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: 600px;
  width: 80%;
  margin: 0 auto;
}

.contact-me label {
  font-size: 1rem;
  font-weight: bold;
  align-self: flex-start;
}

.contact-me label {
  width: 100%;
}

.contact-me input,
.contact-me textarea {
  width: 100%;
  padding: 12px 0px;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s, transform 0.3s;
}

.contact-me input:focus,
.contact-me textarea:focus {
  outline: none;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

.contact-me textarea {
  resize: none;
}

.contact-me button {
  padding: 12px 30px;
  background: linear-gradient(135deg, #43cea2, #185a9d);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.4s, transform 0.3s;
}

.contact-me button:hover {
  background: linear-gradient(135deg, #00c6ff, #0072ff);
  transform: scale(1.05);
}

/*//////////
// FOOTER //
//////////*/

.footer {
  background-color: #1f1f1f;
  backdrop-filter: blur(10px);
  color: white;
  text-align: center;
  padding: 30px 20px;
  font-size: 1rem;
  margin-top: 60px;
  display: flex;
  flex-direction: row;
}

.footer .footer-content {
  flex: 1;
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer p {
  font-weight: bold;
  margin-bottom: 20px;
}

.footer a {
  color: white;
  margin: 0;
  filter: brightness(0.7);
  transition: all 0.3s;
}

.footer a img {
  height: 20px;
  position: relative;
  left: 5px;
  top: 5px;
  transition: all 0.3s;
}

.footer a:hover {
  text-decoration: none;
  filter: brightness(1);
}

/*//////////////
// ANIMATIONS //
//////////////*/

@keyframes fadeInDown {
  from {opacity: 0; transform: translateY(-50px);}
  to {opacity: 1; transform: translateY(0);}
}

@keyframes fadeInUp {
  from {opacity: 0; transform: translateY(50px);}
  to {opacity: 1; transform: translateY(0);}
}

/*//////////////
// RESPONSIVE //
//////////////*/

@media (max-width: 768px) {
  header ul {
    margin-top: 10px;
    flex-direction: column;
  }

  header ul li {
    margin: 5px 15px;
  }
  
  .about-me-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .about-me img {
    order: 0;
  }

  .about-me-info {
    text-align: center;
  }

  .hero-overlay h1 {
    font-size: 3rem;
  }
  
  .hero-overlay p {
    font-size: 1.5rem;
  }

  .skills-list {
    width: 90%;
  }

  .project-card.featured {
    grid-column: span 1;
    grid-row: span 1;
  }
}

@media (max-width: 480px) {
  .hero-overlay h1 {
    font-size: 2.5rem;
  }

  .hero-overlay p {
    font-size: 1.2rem;
  }

  .footer {
    flex-direction: column;
    gap: 30px;
  }
}