* {
  box-sizing: border-box;
}

body {
  background-color: #f5f5f5;
}

@keyframes spin-line {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* Hero Section */
.container {
  text-align: center;
}
.example {
  position: relative;
  width: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin: 10px;
}
.image {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 10px;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 80px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 60px 40px;
  background-color: #f5f5f5;
  position: relative;
  background-image: url("https://images.pexels.com/photos/13934814/pexels-photo-13934814.jpeg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero .example {
  background: transparent;
  border-radius: 0;
  padding: 0;
}
.hero .image,
.hero .image img,
.card-image {
  box-shadow: none !important;
  border: none !important;
}

.quote {
  border-left: 5px solid #000;
  padding-left: 20px;
  font-style: italic;
  text-align: left;
}

.quote h3 {
  font-size: 18px;
  margin: 0 0 8px 0;
}

.text {
  color: white;
  font-size: 20px;
  position: absolute;

  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
}
/* about section */
.overlay {
  position: absolute;
  background-color: rgba(0, 0, 0, 0.5);
  transition: all 0.5s ease-in-out;
  width: 100%;
  text-align: center;
}

.overlay-3 {
  left: 0;
  bottom: 100%;
  height: 0;
  overflow: hidden;
  backdrop-filter: blur(8px) brightness(80%);
}

.beige-card:hover .overlay-3 {
  bottom: 0;
  height: 100%;
}

.feature-card {
  background-color: #e9e9e9;
  padding: 40px 0 60px 0;
  display: flex;
  justify-content: center;
}
.card {
  position: relative;
  width: 320px;
  max-width: 94%;
  height: 640px;
  background: transparent;
  border-radius: 12px;
  overflow: visible;
  margin: 0 auto;
}

.feature2 {
  background-color: #e9e9e9;
  padding: 48px 40px 64px 40px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}
.feature2-text {
  color: #fff;
  font-weight: 600;
  width: 180px;
  padding: 20px;
  background: linear-gradient(135deg, #7a7a7a 0%, #5f5f5f 100%);
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}
.feature2-text.left-text {
  text-align: left;
}
.feature2-text.left-text ul,
.feature2-text.right-text ul {
  list-style: none;
  padding: 0;
  margin: 0;
  line-height: 1.8;
}
.feature2-text.left-text ul li,
.feature2-text.right-text ul li {
  color: #fff;
}
.feature2-text.right-text {
  text-align: left;
}
.feature2-text.right-text ul li {
  margin-bottom: 12px;
  font-weight: 500;
}
.feature2-text.right-text ul li:last-child {
  margin-bottom: 0;
}
.feature2 {
  position: relative;
}

.beige-card {
  background: #dfa62ace;
  width: 320px;
  max-width: 100%;
  min-height: 560px;
  border-radius: 12px;
  box-shadow: none !important;
  border: none !important;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  padding: 20px 16px 24px;
}
.card-image {
  width: 100%;
  max-width: 280px;
  height: auto;
  border-radius: 10px;
  display: block;
  margin-bottom: 20px;
  border: none !important;
  box-shadow: none !important;
}
.card-inner-text {
  color: #222;
  font-weight: 500;
  text-align: center;
  line-height: 1.5;
}

/* Skills Section */
.interactive-cards {
  background: #f5f5f5;
  padding: 48px 20px 64px;
}
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  max-width: 1140px;
  margin: 0 auto;
  align-items: start;
  padding-bottom: 8px;
}
.card-click {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  background: #fff;
  border-radius: 18px;
  padding: 24px 14px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  cursor: pointer;
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
}
.card-click:hover {
  transform: translateY(-4px);
}
/*
.card-click[data-card="0"]:hover .card-circle {
  background: #b0b0b0;
}
.card-click[data-card="1"]:hover .card-circle {
  background: #2c3e50;
}
.card-click[data-card="2"]:hover .card-circle {
  background: #ecf0f1;
}
.card-click[data-card="3"]:hover .card-circle {
  background: #f1c40f;
} */
.card-circle {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #d9d9d9;
  transform: rotate(0deg);
  transition:
    background-color 0.35s ease,
    transform 0.6s ease;
}
.card-circle::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2px;
  height: 36px;
  background: rgba(0, 0, 0, 0.15);
  transform: translate(-50%, -50%) rotate(0deg);
  transform-origin: center center;
  transition: background 0.35s ease;
}
.card-label {
  font-weight: 600;
  color: #222;
  text-align: center;
}
.card-click.hovered .card-circle {
  box-shadow: 0 0 0 10px rgba(0, 0, 0, 0.04);
  transform: rotate(360deg);
}
.card-click.hovered .card-circle::before {
  animation: spin-line 0.8s linear infinite;
}

/*carousel section */
.carousel-section {
  background: #ffffff;
  padding: 48px 20px 64px;
}
.carousel {
  position: relative;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  overflow: hidden;
}
.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
  width: 100%;
}
.carousel-card {
  flex: 0 0 100%;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 12px;
  margin: 0;
  position: relative;
}

.carousel-image {
  width: 80%;
  max-width: 280px;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}
.carousel-caption {
  margin-top: 10px;
  font-size: 16px;
  color: #333;
  text-align: center;
}
.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: #111;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  z-index: 20;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
  transition:
    background 0.3s ease,
    transform 0.3s ease;
}
.carousel-button:hover {
  background: rgba(255, 255, 255, 1);
  transform: translateY(-50%) scale(1.05);
}
.carousel-button.prev {
  left: 12px;
}
.carousel-button.next {
  right: 12px;
}

.site-footer {
  background: #777;
  color: #f8f8f8;
  padding: 40px 20px;
}
.footer-content {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 24px;
  align-items: start;
}
.footer-column h4 {
  margin-bottom: 10px;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.footer-column a,
.footer-column h4,
.footer-column p {
  color: #ffffff;
}
.footer-column a {
  text-decoration: none;
}
.footer-column p {
  margin: 0;
  line-height: 1.7;
}

@media (min-width: 1200px) {
  .feature2 {
    justify-content: center;
    align-items: center;
    padding: 48px 60px 64px 60px;
  }
  .feature2-text.left-text {
    position: absolute;
    top: 20px;
    left: 90px;
    width: 180px;
  }
  .feature2-text.right-text {
    position: absolute;
    bottom: 20px;
    right: 90px;
    width: 180px;
  }
  .hero {
    max-width: none;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }
}

@media (max-width: 1024px) {
  .card {
    width: 420px;
    height: 580px;
  }
  .hero {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 80px;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 60px 40px;
    text-align: left;
  }
  .quote {
    border-left: 5px solid #000;
    padding-left: 20px;
    font-style: italic;
    text-align: left;
  }
  .example {
    width: 50%;
  }
  .image {
    max-width: 500px;
  }

  .feature2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    justify-content: center;
    align-items: center;
  }
  .feature2-text {
    position: static;
    width: 100%;
    max-width: 720px;
    text-align: center;
  }
  .feature2-text.left-text,
  .feature2-text.right-text {
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
  }
  .beige-card {
    width: 100%;
    max-width: 580px;
    min-height: auto;
  }
  .card-image {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .feature2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 28px 0;
  }
  .feature2-text {
    width: 100%;
    max-width: 720px;
    text-align: center;
    position: static;
  }
  .feature2-text.left-text,
  .feature2-text.right-text {
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
  }
  .beige-card {
    width: 100%;
    min-height: auto;
    padding: 20px 16px 24px;
  }
  .card-image {
    max-width: 100%;
  }

  .feature-card {
    padding: 24px 0;
  }
  .card {
    width: 90%;
    height: auto;
  }

  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
  }
  .quote {
    border-left: none;
    border-top: 5px solid #000;
    padding-left: 0;
    padding-top: 20px;
    text-align: center;
  }
  .example {
    order: -1;
    width: 90%;
  }
  .image {
    max-width: 420px;
  }
}

@media (max-width: 700px) {
  .carousel {
    width: 100%;
    max-width: 100%;
    padding: 0 8px;
  }
  .carousel-track {
    width: 100%;
  }
  .carousel-card {
    flex: 0 0 100%;
    width: 100%;
    padding: 12px 8px;
    box-sizing: border-box;
  }
  .carousel-image {
    width: 100%;
    max-width: 240px;
    height: auto;
  }
  .carousel-caption {
    font-size: 14px;
    padding: 0 6px;
  }
}

@media (max-width: 820px) {
  .carousel-button {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
  .hero {
    padding: 40px 20px;
  }
  .example {
    width: 80%;
  }
  .cards-grid {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }
  .card-click {
    max-width: 220px;
  }
}

@media (max-width: 680px) {
  .feature2 {
    padding: 32px 0;
  }
  .feature2-text {
    width: 100%;
    max-width: 100%;
    text-align: center;
  }
  .beige-card {
    width: 92%;
    min-height: auto;
  }
  .hero {
    grid-template-columns: 1fr;
    padding: 32px 16px;
    gap: 24px;
  }
  .example {
    width: 100%;
  }
  .image {
    max-width: 100%;
  }
  .cards-grid {
    grid-template-columns: 1fr;
  }
  .card-click {
    max-width: 100%;
    width: 100%;
  }
  .carousel {
    max-width: 100%;
  }
  .carousel-button.prev {
    left: 8px;
  }
  .carousel-button.next {
    right: 8px;
  }
  .site-footer {
    padding: 32px 16px;
  }
  .footer-content {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 26px 14px;
  }
  .feature2 {
    padding: 24px 0;
  }
  .interactive-cards {
    padding: 32px 16px 48px;
  }
  .carousel-section {
    padding: 32px 16px 48px;
  }
  .carousel-button {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }
  .card-circle {
    width: 70px;
    height: 70px;
  }
  .card-click {
    padding: 20px 12px 18px;
  }
  .footer-column h4 {
    font-size: 14px;
  }
  .footer-column p {
    font-size: 14px;
  }
}
