@import url(https://fonts.googleapis.com/css?family=Raleway:100,200,300,regular,500,600,700,800,900);

:root {
  --primary-color: #ffcd42;
  --secondary-color: #ffd35c;
  --bg-primary: #ffffff;
  --text-color: #222222;
  --text-color-two: #ffffff;
  --bg-secondary: #000000;
  --card-background: #f4f4f4;
  --bg-secondary-two: #111111;

  --shadow: 0 10px 40px rgba(0, 0, 0, 0.2);

  --weight-small: 400;
  --weight-semibold: 600;
  --weight-bold: 800;

  --width-small: 600px;
  --width-medium: 1100px;
  --width-large: 1300px;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

ul {
  list-style: none;
}

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

body {
  background: var(--bg-primary);
  color: var(--text-color);
  font-family: "Raleway", sans-serif;
  line-height: 1.5;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  background: var(--bg-primary);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 20;
  height: 80px;
  width: 100%;
}

.navbar .nav-menu {
  display: flex;
  align-items: center;
  background: var(--bg-primary);
}

.navbar .nav-link {
  margin: 0 1rem;
  font-size: 0.8rem;
  font-weight: var(--weight-semibold);
  position: relative;
  transition: color 0.3s ease;
}

.navbar .nav-link.active {
  color: var(--primary-color);
}

.navbar .nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
}

.navbar #logo a {
  font-size: 1.4rem;
  font-weight: var(--weight-bold);
  color: var(--text-color);
  letter-spacing: -0.5px;
}

.navbar .btn {
  margin-right: 1.5rem;
}

.fas.fa-arrow-right {
  margin-left: 0.5rem;
  font-size: 0.9rem;
}

.hamburger {
  margin-bottom: 0.1rem;
  display: none;
}

.bar {
  display: block;
  width: 23px;
  height: 3px;
  margin: 4px auto;
  transition: all 0.3s ease-in-out;
  border-radius: 30px;
  background-color: var(--bg-secondary);
}

#hero {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.profile-img-container {
  width: 150px;
  height: 150px;
  margin: 0 auto;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--primary-color);
  box-shadow: var(--shadow);
}

.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-social {
  margin-top: 1.5rem;
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

.hero-social a {
  font-size: 1.8rem;
  color: var(--text-color);
  transition: transform 0.3s ease, color 0.3s ease;
}

.hero-social a:hover {
  transform: translateY(-5px);
  color: var(--secondary-color);
}

.about-container {
  margin-top: 6rem;
  margin-bottom: 8rem;
}

.about-container p {
  line-height: 1.8;
  max-width: 900px;
  margin: 0 auto;
}

.division {
  width: 100%;
  height: 2px;
  background-color: var(--card-background);
  margin: 5.5rem 0;
}

.skills-container {
  display: flex;
  flex-direction: column;
  margin: 2rem auto 5rem;
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.skill-card {
  width: 150px;
  background: var(--card-background);
  padding: 1.5rem;
  border-radius: 5px;
  text-align: center;
  transition: 0.3s ease-in-out;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px solid transparent;
}

.skill-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-color);
  box-shadow: var(--shadow);
}

.skill-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.skill-name {
  font-size: 0.9rem;
  font-weight: var(--weight-semibold);
  color: var(--text-color);
}

.project-container,
.certifications-container {
  display: flex;
  flex-direction: column;
  margin: 0 auto 5rem;
}

.detailed-projects-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2rem;
}

.detailed-card {
  display: flex;
  flex-direction: column;
  background: var(--card-background);
  border-radius: 8px;
  padding: 2rem;
  gap: 1.5rem;
  border: 1px solid #eaeaea;
  transition: 0.3s ease-in-out;
}

.detailed-card.with-arch {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 3.5rem;
}

.project-details-column {
  min-width: 0;
}

.project-arch-container {
  width: 100%;
  min-width: 0;
}

.project-arch-img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  cursor: zoom-in;
  transition: transform 0.3s ease;
}

.project-arch-img:hover {
  transform: scale(1.02);
}

@media (max-width: 950px) {
  .detailed-card.with-arch {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .detailed-card.with-arch .project-arch-container {
    order: -1; 
  }
}

.detailed-card:hover {
  border-color: var(--primary-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transform: translateY(-3px);
}

.cert-card {
  flex-direction: row;
  align-items: center;
}

.cert-card .cert-badge-column {
  flex: 0 0 130px;
  width: 130px;
  min-width: 130px;
  max-width: 130px;
  height: 130px;
  background: var(--bg-primary);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.03);
  border: 1px solid #eaeaea;
  overflow: hidden;
}

.cert-icon {
  font-size: 4rem;
}

.fa-aws.cert-icon {
  font-size: 4.2rem;
}

@media (max-width: 650px) {
  .cert-card {
    flex-direction: column;
    text-align: center;
  }
  .cert-card .cert-badge-column {
    margin: 0 auto;
  }
}

.detailed-card.align-center {
  align-items: center;
}

.tech-icons-column {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
}

.tech-icons-column i {
  font-size: 2.5rem;
}

.project-graphic {
  background: var(--bg-primary);
  padding: 2rem;
  border-radius: 8px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(65px, 1fr));
  gap: 1.5rem;
  justify-items: center;
  align-items: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  border: 1px solid #eaeaea;
}

.project-graphic i {
  font-size: 3.5rem;
}

.project-details-column {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-details-column h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--bg-secondary);
}

.project-details-column p {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.project-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-pill {
  border-radius: 50px !important;
  padding: 0.6rem 2rem !important;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.center-btn {
  text-align: center;
  margin-top: 3rem;
}

.cert-badge-column {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.cert-icon {
  font-size: 5rem;
}

.contact-section {
  margin-bottom: 55rem;
}

.contact-wrapper {
  max-width: 800px;
  margin: 0 auto;
  background: var(--card-background);
  padding: 3.5rem;
  border-radius: 12px;
  border: 1px solid #eee;
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.contact-form {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.input-row {
  display: flex;
  gap: 1.2rem;
}

.input-row .input-group {
  flex: 1;
}

.input-group {
  display: flex;
  flex-direction: column;
}

.input-group input,
.input-group textarea {
  width: 100%;
  padding: 1rem 1.2rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fdfdfd;
  font-family: inherit;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  color: var(--text-color);
}

.input-group input:focus,
.input-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 205, 66, 0.1);
}

.input-group textarea {
  resize: none;
}

@media (max-width: 768px) {
  .input-row {
    flex-direction: column;
    gap: 1.2rem;
  }
  .contact-wrapper {
    padding: 2rem;
  }
}

#footer {
  margin-top: 5rem;
  background: #111111;
}

#footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  min-height: 160px;
  text-align: center;
}

#footer a {
  font-size: 0.8rem;
  color: #fff;
}

#footer a:hover {
  opacity: 0.6;
}

#footer .social {
  margin: 0.9rem 0;
  display: flex;
  gap: 1rem;
}

#footer .social a {
  transition: transform 0.3s ease;
}

#footer .social a:hover {
  transform: translateY(-3px);
}

#footer p {
  font-size: 0.8rem;
}

@media (max-width: 1000px) {
  .project {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 650px) {
  .detailed-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .tech-icons-column {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1rem;
  }

  .project-buttons {
    justify-content: center;
  }
}

@media (max-width: 670px) {
  .navbar .nav-menu {
    position: fixed;
    right: -100vw;
    top: 4.5rem;
    flex-direction: column;
    width: calc(80% - 10px);
    transition: 0.3s;
    box-shadow: var(--shadow);
    padding: 2rem;
    border-radius: 5px;
    align-items: flex-start;
  }

  .navbar .btn {
    margin: 0;
    margin-top: 1rem;
  }

  .nav-menu.active {
    right: 20px;
  }

  .nav-menu .nav-link {
    font-size: 0.9rem;
    margin: 0 0.2rem;
  }

  .nav-menu li {
    margin-bottom: 0.5rem;
    width: 100%;
  }

  .nav-menu .btn {
    width: 100%;
    text-align: center;
    margin-top: 0.5rem;
  }

  .hamburger {
    display: block;
    cursor: pointer;
    padding: 0.2rem 0.4rem;
  }

  .hamburger.active {
    border: 1px dotted gray;
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

@media (max-width: 600px) {
  .project {
    display: grid;
    grid-template-columns: 1fr;
  }

  .header-container .btn {
    border-radius: 5px;
    width: 80%;
  }
}

.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: #000;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  z-index: 1000;
}

.scroll-top.show {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  transform: translateY(-5px);
  background: var(--secondary-color);
}