/* General styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Red Hat Display', sans-serif;
  line-height: 1.5;
  color: #333;
}

/* Header and nav bar styles */
header {
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 10px 0;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: end;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.nav-toggle .hamburger,
.nav-toggle .hamburger::before,
.nav-toggle .hamburger::after {
  content: '';
  display: block;
  width: 100%;
  height: 3px;
  background-color: #333;
  border-radius: 5px;
  transition: all 0.3s;
}

.nav-toggle .hamburger::before {
  transform: translateY(-10px);
}

.nav-toggle .hamburger::after {
  transform: translateY(10px);
}

.nav-links {
  display: flex;
  gap: 20px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: 600;
  padding: 10px 15px;
  border-radius: 5px;
  transition: background-color 0.3s, color 0.3s;
}

.nav-links a:hover {
  background-color: #333;
  color: #fff;
}

body {
  padding-top: 40px;
  overflow-x: hidden;
}

/* Hero section styles */
.hero {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 50px 20px;
  background: linear-gradient(135deg, #e0eafc 0%, #cfdef3 100%);
  min-height: 100vh;
}

.hero .text {
  max-width: 600px;
  margin: 20px;
  text-align: left;
  font-size: 1.5rem;
  font-family: 'DM Serif Display', serif;
  animation: slideInLeft 1s ease-out;
}

.hero .head-image {
  max-width: 300px;
  margin: 20px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  animation: slideInRight 1s ease-out;
}

img {
  width: 100%;
  height: auto;
  display: block;
}

/* Keyframes for animations */
@keyframes slideInLeft {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInBottom {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideInTop {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* About section styles */
.about {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 50px 20px;
  background: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  margin: 50px auto;
  max-width: 1000px;
  border-radius: 12px;
  text-align: center;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.about.visible {
  opacity: 1;
  transform: translateY(0);
}

.about h1 {
  margin-bottom: 20px;
  font-family: 'DM Serif Display', serif;
  font-weight: 700;
  font-size: 2.5rem;
  color: #333;
}

.about p {
  text-align: justify;
  margin-top: 10px;
  font-family: 'Red Hat Display', sans-serif;
  font-weight: 400;
  color: #666;
}

.about .btn {
  display: inline-block;
  padding: 10px 20px;
  margin-top: 20px;
  border: none;
  border-radius: 5px;
  background-color: #333;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s;
}

.about .btn:hover {
  background-color: #555;
}

/* Skills section styles */
.skills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  padding: 50px 20px;
  background: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  margin: 50px auto;
  max-width: 1000px;
  border-radius: 12px;
  text-align: center;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.skills.visible {
  opacity: 1;
  transform: translateY(0);
}

.skills h1 {
  width: 100%;
  margin-bottom: 20px;
  font-family: 'DM Serif Display', serif;
  font-weight: 700;
  font-size: 2.5rem;
  color: #333;
}

.skills .card {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 20px;
  border-radius: 12px;
  overflow: visible;
  transition: transform 0.3s;
  opacity: 1;
  transform: translateY(0);
}

.skills .card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.skills .card:hover {
  transform: scale(1.1);
}

.skills .card .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.skills .card:hover .overlay {
  opacity: 1;
}

.skills .card .overlay h2 {
  font-family: 'DM Serif Display', serif;
  font-weight: 700;
  font-size: 1.8rem;
  margin: 0;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

/* Service card entrance animation */
@keyframes serviceCardFadeIn {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* service section style */
.services {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 50px 20px;
  background: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  margin: 50px auto;
  max-width: 1000px;
  border-radius: 12px;
  opacity: 0;
  text-align: center;
  transform: translateY(100%);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.services.visible {
  opacity: 1;
  transform: translateY(0);
}

.service-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  width: 100%;
  gap: 20px;
  margin-top: 10px;
}

.service {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.service-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 50px;
  height: fit-content;
  border: 1px solid #121212;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: transform 0.25s cubic-bezier(0.4, 2, 0.6, 1),
    box-shadow 0.25s cubic-bezier(0.4, 2, 0.6, 1), border-color 0.25s;
  opacity: 1;
  animation: serviceCardFadeIn 0.7s cubic-bezier(0.4, 2, 0.6, 1) forwards;
}

.service-description {
  display: none;
  text-align: left;
  padding: 15px;
  margin-top: 10px;
  border-top: 1px solid #eee;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 2, 0.6, 1), opacity 0.3s,
    margin-top 0.3s, padding 0.3s;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.service-image-f,
.service-image {
  width: 35px;
  padding: 4px;
}

/* Projects section styles */
.projects {
  display: grid;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 50px 20px;
  background: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  margin: 50px auto;
  max-width: 1000px;
  border-radius: 12px;
  text-align: center;
  opacity: 0;
  transform: translateX(-100%);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.projects.visible {
  opacity: 1;
  transform: translateX(0);
}

.projects h1,
.services h1 {
  margin-bottom: 20px;
  font-family: 'DM Serif Display', serif;
  font-weight: 700;
  font-size: 2.5rem;
  color: #333;
}

.projects .card-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  justify-content: center;
  gap: 20px;
}

.projects .card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  padding: 20px;
  margin: 20px;
  max-width: 300px;
  text-align: left;
  transition: transform 0.3s, box-shadow 0.3s;
}

.projects .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.projects .card .image {
  max-width: 100%;
  height: auto;
  margin-bottom: 20px;
}

.projects .card img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  max-height: 150px;
  object-fit: cover;
}

.projects .card h2 {
  font-family: 'DM Serif Display', serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 10px;
}

.projects .card p {
  font-family: 'Red Hat Display', sans-serif;
  font-weight: 400;
  color: #666;
}

#view-project-btn {
  display: inline-block;
  padding: 10px 20px;
  margin-top: 20px;
  width: 100%;
  border: none;
  border-radius: 5px;
  background-color: #333;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.3s;
}

#view-project-btn:hover {
  background-color: #555;
  transform: translateY(-2px);
}

/* Certifications section styles */
.certifications {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 50px 20px;
  background: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  margin: 50px auto;
  max-width: 1000px;
  border-radius: 12px;
  text-align: center;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.certifications.visible {
  opacity: 1;
  transform: translateY(0);
}

.certifications h1 {
  margin-bottom: 20px;
  font-family: 'DM Serif Display', serif;
  font-weight: 700;
  font-size: 2.5rem;
  color: #333;
}

.certifications .card-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  justify-content: center;
  gap: 20px;
}

.certifications .card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  padding: 20px;
  margin: 20px;
  max-width: 300px;
  text-align: left;
}
.certifications .card .image {
  max-width: 100%;
  height: auto;
  margin-bottom: 20px;
}

.certifications .card img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  max-height: 150px;
  object-fit: cover;
  cursor: pointer;
}

.certifications .card h2 {
  font-family: 'DM Serif Display', serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 10px;
}

.certifications .card p {
  font-family: 'Red Hat Display', sans-serif;
  font-weight: 400;
  color: #666;
}

/* Contact section styles */
.contact {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 50px 20px;
  background: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  margin: 50px auto;
  max-width: 1000px;
  border-radius: 12px;
  text-align: center;
  opacity: 0;
  transform: translateX(100%);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.contact.visible {
  opacity: 1;
  transform: translateX(0);
}

.contact h1 {
  margin-bottom: 20px;
  font-family: 'DM Serif Display', serif;
  font-weight: 700;
  font-size: 2.5rem;
  color: #333;
}

.contact p {
  margin-top: 10px;
  font-family: 'Red Hat Display', sans-serif;
  font-weight: 400;
  color: #666;
}

.contact form {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 600px;
}

.contact input,
.contact textarea {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-family: 'Red Hat Display', sans-serif;
}

.contact textarea {
  resize: none;
}

.contact input:focus,
.contact textarea:focus {
  border-color: #333;
  outline: none;
}

.contact button {
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  background-color: #333;
  color: #fff;
  font-family: 'Red Hat Display', sans-serif;
  cursor: pointer;
  transition: background-color 0.3s;
}

.contact button:hover {
  background-color: #555;
}

/* Footer styles */
footer {
  background-color: #333;
  color: #fff;
  padding: 20px 0;
  text-align: center;
  font-family: 'Lilita One', sans-serif;
  font-size: 1rem;
  width: 100%;
}

footer p {
  font-family: 'Cambria';
  color: #fff;
  margin: 10px 0;
}

.contact-fa .fa,
.contact-fa {
  margin-top: 20px;
  text-decoration: none;
  transition: color 0.3s, transform 0.3s;
  text-decoration: none;
  font-size: 1.5rem;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 50px;
}

footer .fa {
  margin: 0 10px;
  color: #fff;
  transition: color 0.3s, transform 0.3s;
  text-decoration: none;
  font-size: 1.5rem;
}

footer .fa:hover,
.contact-fa .fa:hover {
  color: #f72c5b;
  transform: scale(1.2);
}

/* Fullscreen styles */
.fullscreen-container {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.fullscreen-container img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
}

/* Media queries for responsiveness */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    padding: 20px;
  }

  .hero .text {
    text-align: center;
    font-size: 1.2rem;
  }

  .hero .image {
    max-width: 300px;
  }

  .about,
  .skills,
  .projects,
  .certifications,
  .contact {
    padding: 20px;
    margin: 20px auto;
    width: 90%;
  }

  .about h1,
  .skills h1,
  .projects h1,
  .certifications h1,
  .contact h1 {
    font-size: 2rem;
  }

  .skills .card {
    display: grid;
    height: auto;
    margin: 5px;
  }
  .projects .card,
  .certifications .card {
    width: 100%;
    height: auto;
    margin: 5px;
    display: grid;
  }

  .projects .card,
  .certifications .card {
    max-width: 100%;
  }

  .projects .card-container {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
  }

  .certifications .card-container {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
  }

  .contact form {
    width: 100%;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    gap: 10px;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-toggle.active .hamburger {
    transform: rotate(45deg);
  }

  .nav-toggle.active .hamburger::before {
    transform: rotate(90deg) translateX(10px);
  }

  .nav-toggle.active .hamburger::after {
    transform: rotate(90deg) translateX(-10px);
  }

  .service-container {
    grid-template-columns: repeat(1, 1fr);
  }
}

@media (max-width: 480px) {
  nav ul {
    flex-direction: column;
    gap: 10px;
  }

  .hero .text {
    font-size: 1rem;
  }

  .hero .image {
    max-width: 300px;
  }

  .about h1,
  .skills h1,
  .projects h1,
  .certifications h1,
  .contact h1 {
    font-size: 1.5rem;
  }

  .skills .card {
    display: grid;
  }
  .projects .card {
    width: 90%;
    height: auto;
  }
  .certifications .card {
    width: 100%;
    height: auto;
    margin: 5px;
    display: grid;
  }

  .projects .card-container {
    grid-template-columns: repeat(1, 1fr);
    align-items: center;
  }

  .certifications .card-container {
    grid-template-columns: repeat(1, 1fr);
    align-items: center;
  }

  .about,
  .skills,
  .projects,
  .certifications,
  .contact,
  .services {
    width: 90%;
  }

  .service-container {
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
  }

  .service {
    height: 50px;
    width: 100%;
  }
}

/* Service animations */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
    max-height: 0;
  }
  to {
    opacity: 1;
    transform: translateY(0);
    max-height: 200px;
  }
}

@keyframes slideUp {
  from {
    opacity: 1;
    transform: translateY(0);
    max-height: 200px;
  }
  to {
    opacity: 0;
    transform: translateY(-10px);
    max-height: 0;
  }
}
