body {
  background-color: #d9d9d9;
  margin: 0;
  padding: 0;
  font-family: Tahoma, sans-serif;
  color: #3a3a3a;
}

.container {
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}
.subtitle {
  font-size: 1.2rem;
  font-weight: 500;
  color: #555;
}

/* Background design */
.bg-design {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #d9d9d9 0%, #ececec 100%);
  z-index: -1;
}

/* Add abstract coding feel with pseudo elements */
.bg-design::before,
.bg-design::after {
  content: "</>";
  position: absolute;
  font-size: 8rem;
  color: rgba(0, 0, 0, 0.05);
  font-weight: bold;
}

.bg-design::before {
  top: 20%;
  left: 10%;
}

.bg-design::after {
  bottom: 15%;
  right: 10%;
}

.absolute-text {
  position: relative;
  text-align: center;
  padding: 0 1rem;
}

.absolute-text > h1 {
  font-size: 3rem;
  font-weight: normal;
}

.absolute-text > h1 > span {
  color: #f06933;
}

.absolute-text > p {
  font-size: 1.6rem;
  font-weight: bold;
}

.hero-container {
  width: 80%;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  align-items: center;
}
.col {
  width: 100%;
  line-height: 1.5;
}
.profile-pic img {
  border-radius: 50%;
  max-width: 200px;
  width: 100%;
  height: auto;
}
.hero-container h1 {
  font-size: 3rem;
  color: #f06933;
}
.hero-container p {
  font-size: 1.2rem;
}
.hero-container a {
  font-weight: bold;
  padding: 9px 14px;
  background-color: #f06933;
  color: #d9d9d9;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s;
  border-radius: 15px;
}
.hero-container a:hover {
  box-shadow: 5px 5px 3px #3a3a3a;
  opacity: 0.7;
}
.hero-container a:active {
  opacity: 0.4;
}
.skills-container {
  width: 80%;
  display: grid;
  grid-template-columns: 1fr 2fr;
  grid-template-rows: auto auto;
  gap: 1.5rem;
}
.skills-container h3 {
  color: #f06933;
  font-size: 1.5rem;
  font-weight: normal;
}
h2 {
  font-size: 2.5rem;
  text-align: center;
}

.contact-text {
  font-size: 1.3rem;
  font-weight: 800;
  text-align: center;
}

.footer {
  background-color: #3a3a3a;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  color: #fff;
}
.footer p {
  font-size: 0.9rem;
  text-align: center;
}
.footer a {
  font-size: 1.2rem;
  text-decoration: none;
  color: #d9d9d9;
}
.footer a:hover {
  opacity: 0.7;
}
.footer > div {
  display: flex;
  flex-wrap: wrap; /* wrap links if screen is small */
  gap: 2rem;
  justify-content: center;
}

.link-container {
  display: flex;
  gap: 2rem;
  margin-top: 30px;
  flex-wrap: wrap; /* responsive */
  justify-content: center;
}
.link-container a {
  text-decoration: none;
  color: #3a3a3a;
}
.link-container a:hover {
  opacity: 0.7;
}
.link-container a svg {
  transition: transform 0.3s, fill 0.3s;
}

.link-container a:hover svg {
  transform: scale(1.2);
  fill: #f06933;
}

.project-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  align-items: stretch;
  min-height: 45vh;
  padding: 20px;
}

.project-container div {
  flex: 1 1 300px; /* flexible width with minimum size */
  max-width: 350px; /* prevent cards from stretching too wide */
  padding: 20px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  text-align: center;
  line-height: 1.5;
  display: flex; /* make card content flexible */
  flex-direction: column; /* stack items top to bottom */
  justify-content: space-between; /* push button to bottom */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-container div:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.project-container ul {
  text-align: start;
  font-size: 1rem;
  opacity: 0.6;
}

.project-container a {
  text-decoration: none;
  color: #d9d9d9;
  padding: 8px 14px;
  background-color: #3a3a3a;
  border-radius: 9px;
  display: inline-block;
  margin-top: 10px;
}

.project-container a:hover {
  opacity: 0.7;
}

.project-container a:active {
  opacity: 0.4;
}

/* 🔹 Responsive Breakpoints */

/* Tablets */
@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .skills-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .project-container {
    flex-direction: column;
    align-items: center;
  }

  .project-container div {
    width: 100%;
    max-width: 90%;
    height: auto; /* let height adjust naturally */
  }
}

/* Mobile Phones */
@media (max-width: 600px) {
  .absolute-text > h1 {
    font-size: 2rem;
  }
  .absolute-text > p {
    font-size: 1rem;
  }
  .hero-container h1 {
    font-size: 2rem;
  }
  .skills-container h3 {
    font-size: 1.2rem;
  }
  h2 {
    font-size: 2rem;
  }
  .project-container div {
    padding: 15px;
  }

  .project-container h3 {
    font-size: 1.2rem;
  }

  .project-container p {
    font-size: 0.95rem;
  }

  .project-container a {
    padding: 6px 12px;
    font-size: 0.9rem;
  }
}
