/* aboutContainer */
.aboutcontainer {
  max-width: 1300px;
  margin: auto;
  padding: 60px 20px;
  color: white;
}

/* Top text */
.about-top-text {
  text-align: center;
  font-size: 16px;
  margin-bottom: 60px;
  opacity: 0.8;
}

/* Layout */
.about-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ========================= */
/* LEFT - OVERLAPPING CARDS */
/* ========================= */
.about-img-left {
  flex: 1;
  position: relative;
  height: 420px;
}

/* Common card style */
.about-img-card {
  position: absolute;
  width: 70%;
  height: 240px;
  border-radius: 20px;
  background: #ccc;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  transition: 0.3s;
}

/* Card 1 */
.about-img1 {
  top: 0;
  left: 0;
  z-index: 1;
  transform: rotate(-2deg);
}

/* Card 2 (overlapping) */
.about-img2 {
  top: 140px;
  left: 80px;
  z-index: 2;
  transform: rotate(3deg);
}

/* Hover effect */
.about-img-card:hover {
  transform: scale(1.05) rotate(0deg);
}

/* ========================= */
/* RIGHT CONTENT */
/* ========================= */
.about-right {
  flex: 1;
  background-image: none;
}

/* Title bars */
.about-title {
  display: inline-block;
  padding: 10px 20px;
  font-weight: bold;
  margin-bottom: 15px;
}

.orange {
  background: #ff6a00;
}

.purple {
  background: linear-gradient(90deg, #b14cff, #7b2cbf);
}

.about-skills button {
  margin: 2px;
  background: linear-gradient(135deg, #8b5cf6, #3b82f6);
  color: white;
}

.about-skills button:hover{
  opacity: 0.5;
transform: translateY(-2px);
}



/* ========================= */
/* RESPONSIVE */
/* ========================= */

@media (max-width: 900px) {

  .aboutcontainer {
    padding: 15px 20px;
    font-size: 100%;
  }
  .about-row {
    flex-direction: column;
    gap: 4px;
  }

  .about-right {
    padding: 10px;
    background-image: url('../images/aboutmobile.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }

  .about-top-text {
    text-align: center;
    font-size: 90%;
    margin-bottom: 5px;
  }

  .about-img-left {
    height: 350px;
  }

  .about-img-card {
    width: 75%;
    height: 200px;
  }

  .about-img2 {
    top: 110px;
    left: 40px;
  }

  .about-skills button{
    font-size: 80%;
  }
}

@media (max-width: 500px) {

  .about-img-left {
    height: 300px;
  }

  .about-img-card {
    width: 85%;
    height: 170px;
  }

  .about-img2 {
    top: 90px;
    left: 20px;
  }

  .about-title {
    font-size: 14px;
  }
}

.about-img-left img {
  width: 100%;
  object-fit: cover;
}