@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

html {
  overflow-x: hidden;
}

body {
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  background: linear-gradient(to right, rgb(255, 255, 255), rgb(254, 215, 173));
}

nav {
  width: 100%;
  height: 10vh;
  position: sticky;
  top: 0;
  background: transparent;
  z-index: 10;
}


.nav-container {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.logo {
  color: black;
  font-size: 2rem;
  font-weight: bolder;
}

.logo span {
  color: rgb(109, 67, 0);
  text-shadow: 0 0 10px rgb(109, 67, 0);
}

.hamburg, .cancel {
  cursor: pointer;
  position: absolute;
  right: 15px;
  top: 10px;
  color: black;
  font-size: 2rem;
  display: none;
}

.nav-container .links {
  display: flex;
  gap: 3rem;
  align-items: center;
}

.nav-container .links a {
  position: relative;
  font-size: 1.2rem;
  color: black;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s ease;
}

.nav-container .links a::before {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0%;
  height: 3px;
  background-color: rgb(109, 67, 0);
  transition: 0.3s ease;
}

.nav-container .links a:hover::before {
  width: 100%;
}

.nav-container .links a:hover {
  color: rgb(109, 67, 0);
}

.nav-container .contact-btn {
  background-color: transparent;
  padding: 5px 20px;
  border-radius: 20px;
  border: 2px solid rgb(109, 67, 0);
  transition: 0.3s ease;
}

.nav-container .contact-btn a {
  color: white;
  transition: 0.3s ease;
}

.nav-container .contact-btn:hover,
.nav-container .contact-btn:hover a {
  background-color: rgb(109, 67, 0);
  color: white;
}

.dropdown {
  z-index: 100;
  position: absolute;
  top: 0;
  transform: translateY(-500px);
  width: 100%;
  backdrop-filter: brightness(40%) blur(3px);
  box-shadow: 0 0 20px black;
  transition: 0.3s ease;
}

.dropdown .links a {
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px 0;
  text-decoration: none;
  transition: 0.3s ease;
}

.dropdown .links a:hover {
  background-color: rgb(109, 67, 0);
}

section {
  width: 100%;
  padding: 80px 0;
  background-color: transparent;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

section h2 {
  font-size: 2.5rem;
  color: rgb(109, 67, 0);
  text-shadow: 0 0 5px rgb(109, 67, 0);
  margin-bottom: 20px;
}

section ul {
  list-style: circle;
  padding-left: 1.5rem;
}

.main-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
}

.main-container .image {
  flex: 1 1 40%;
}

.main-container .image img {
  width: 100%;
  height: auto;
}

.main-container .content {
  flex: 1 1 50%;
  color: black;
  min-height: 100px;
}

.content h1 {
  font-size: clamp(2rem, 5vw, 3rem);
}

.content h1 span {
  color: rgb(109, 67, 0);
  text-shadow: 0 0 10px rgb(109, 67, 0);
}

.typewriter {
  font-weight: 600;
  font-size: clamp(1.2rem, 2vw, 2rem);
}

.typewriter span {
  display: inline-block;
  min-width: 150px;
  color: rgb(109, 67, 0);
  font-size: 2.5rem;
  text-shadow: 0 0 5px rgb(109, 67, 0);
  position: relative;
  transition: 0.3s ease;
}

.content p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  margin: 10px 0;
}

.social-links i {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 3rem;
  height: 3rem;
  background-color: transparent;
  border: 2px solid rgb(109, 67, 0);
  border-radius: 50%;
  color: rgb(109, 67, 0);
  margin: 5px 10px;
  font-size: 1.5rem;
  transition: 0.3s ease;
}

.social-links i:hover {
  transform: scale(1.3);
  color: white;
  background-color: rgb(109, 67, 0);
  filter: drop-shadow(0 0 10px rgb(109, 67, 0));
}

.content button {
  width: 40%;
  height: 6vh;
  margin: 30px 0;
  background-color: rgb(109, 67, 0);
  color: white;
  border: none;
  outline: none;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 5px;
  transition: 0.3s ease;
}

.content button:hover {
  transform: scale(1.1);
  color: rgb(109, 67, 0);
  border: 2px solid rgb(109, 67, 0);
  background-color: transparent;
  box-shadow: 0 0 40px rgb(109, 67, 0);
}

form input,
form textarea {
  width: 100%;
  padding: 10px;
  margin: 8px 0;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-family: 'Poppins', sans-serif;
}

form button {
  background-color: rgb(109, 67, 0);
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s ease;
}

form button:hover {
  background-color: transparent;
  color: rgb(109, 67, 0);
  border: 2px solid rgb(109, 67, 0);
  box-shadow: 0 0 15px rgb(109, 67, 0);
}

footer i {
  margin: 0 10px;
  color: white;
  transition: 0.3s ease;
}

footer i:hover {
  color: gold;
  transform: scale(1.2);
}

@keyframes cursor {
  to {
    border-left: 3px solid #b74b4b;
  }
}

@keyframes words {
  0%, 33% {
    content: "Creator";
  }
  34%, 66% {
    content: "Copywriter";
  }
  67%, 100% {
    content: "PRpractionne";
  }
}

@media (max-width: 884px) {
  body {
    overflow-y: visible;
  }

  nav .logo {
    position: absolute;
    top: 16px;
    left: 15px;
    font-size: 1.5rem;
  }

  .nav-container .links {
    display: none;
  }

  .hamburg, .cancel {
    display: block;
  }

  .main-container {
    flex-direction: column;
    padding: 20px;
  }

  .main-container .content,
  .main-container .image {
    width: 80%;
    margin-bottom: 20px;
  }

  .social-links i {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.5rem;
  }

  .cancel {
    color: white;
  }
}

#projects {
  background: transparent;
  padding: 60px 20px;
  text-align: center;
}


.projects-wrapper {
  max-width: 1100px;
  margin: auto;
}

.projects-wrapper h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.projects-wrapper p {
  margin-bottom: 30px;
  font-size: 1.1rem;
  color: #444;
}

.swiper {
  width: 100%;
  padding-bottom: 50px;
}

.swiper-slide {
  background: #f7f7f7;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  transition: 0.3s ease;
}

.swiper-slide:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.swiper-slide img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.swiper-slide h3 {
  font-size: 1.2rem;
  padding: 15px;
  background: white;
  color: #333;
}

.swiper-slide a {
  text-decoration: none;
  color: inherit;
}
.image img {
  width: 100%;
  max-width: 300px;
  height: auto;
  display: block;
  margin: 0 auto;
}
/* Blogs Section Styles */
#blogs {
  padding: 80px 20px;
  background-color: transparent;
}

.blog-container {
  max-width: 1200px;
  margin: 0 auto;
}

.blog-container h2 {
  text-align: center;
  font-size: 2.5rem;
  color: rgb(109, 67, 0);
  margin-bottom: 40px;
  text-shadow: 0 0 5px rgb(109, 67, 0);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.blog-card {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 20px rgba(109, 67, 0, 0.2);
}

.blog-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.blog-card h3 {
  font-size: 1.3rem;
  margin: 15px;
  color: rgb(109, 67, 0);
}

.blog-card p {
  font-size: 1rem;
  margin: 0 15px 15px;
  color: #333;
  flex-grow: 1;
}

.blog-card a {
  display: inline-block;
  margin: 0 15px 15px;
  align-self: flex-start;
  background-color: rgb(109, 67, 0);
  color: white;
  padding: 8px 16px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s ease;
}

.blog-card a:hover {
  background-color: transparent;
  color: rgb(109, 67, 0);
  border: 2px solid rgb(109, 67, 0);
}

@media (max-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .blog-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 20px;
    padding-bottom: 10px;
  }

  .blog-card {
    flex: 0 0 90%;
    scroll-snap-align: start;
    min-width: 280px;
  }
}
@media (min-width: 576px) {
  .related-card {
    width: calc(50% - 10px);
  }
}

@media (min-width: 768px) {
  .related-card {
    width: calc(33.333% - 13.333px);
  }
}
.dropdown.show {
  transform: translateY(0); /* kéo menu xuống hiển thị */
}
.dropdown {
  display: block;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-500px);
  transition: transform 0.4s ease, opacity 0.3s ease;
}

.dropdown.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
