svg {
  width: 60px;
  height: 60px;
  fill: currentColor;
  vertical-align: text-bottom;
}

.yo-hover {
  transition: all 0.5s;
  border-radius: 10px;
}

.yo-hover:hover {
  background-color: #d0ceced2;
}

.polygon {
  clip-path: polygon(0% 0%, 100% 0%, 50% 100%);
  background-color: #0bceaf;
}

/* Hero Section Styles */
.hero-profile-img {
  width: 100%;
  max-width: 300px;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50% !important;
  margin: 0 auto;
  display: block;
}

/* Mobile - smaller image */
@media (max-width: 575.98px) {
  .hero-profile-img {
    max-width: 200px;
  }

  #home .display-3 {
    font-size: 2.5rem;
  }

  #home h3 {
    font-size: 1.2rem;
  }
}

/* Tablet */
@media (min-width: 576px) and (max-width: 991.98px) {
  .hero-profile-img {
    max-width: 250px;
  }
}

/* Hero Buttons Responsive */
.hero-buttons .btn {
  min-width: 140px;
  padding: 12px 20px;
  font-size: 14px;
  white-space: nowrap;
}

@media (max-width: 575.98px) {
  .hero-buttons .btn {
    width: 100%;
    max-width: 280px;
  }
}

@media (min-width: 576px) and (max-width: 991.98px) {
  .hero-buttons .btn {
    min-width: 130px;
    padding: 10px 16px;
    font-size: 13px;
  }
}

/* About Section Buttons Responsive */
.about-buttons .btn {
  min-width: 160px;
  padding: 12px 20px;
  font-size: 14px;
  white-space: nowrap;
}

@media (max-width: 575.98px) {
  .about-buttons .btn {
    width: 100%;
    max-width: 280px;
  }
}

@media (min-width: 576px) and (max-width: 991.98px) {
  .about-buttons .btn {
    min-width: 140px;
    padding: 10px 16px;
    font-size: 13px;
  }
}

/* Contact Form Alert Styles */
.alert-warning {
  background-color: #fff3cd;
  border-color: #ffecb5;
  color: #856404;
}

.form-message {
  border-radius: 5px;
  border: 1px solid;
  padding: 12px 15px;
  margin-top: 15px;
  font-size: 14px;
  line-height: 1.4;
}

/* Contact Grid Styles */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

/* Tablet and up - 2 columns */
@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
}

/* Desktop and up - 4 columns */
@media (min-width: 992px) {
  .contact-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }
}

.contact-item {
  padding: 1.5rem;
  border-radius: 10px;
  transition: all 0.3s ease;
  background-color: #f8f9fa;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.contact-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 123, 255, 0.2);
  background-color: #fff;
}

.contact-item h5 {
  font-weight: 600;
  color: #333;
}

.contact-item p {
  font-size: 14px;
  word-break: break-word;
}

/* Portfolio Filter Styles */
.portfolio .filter {
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.portfolio .filter.isotope-hidden {
  opacity: 0;
  transform: scale(0.001);
}

.portfolio .filter .card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.portfolio .filter .card-img-top {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center;
}

.portfolio .filter .card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.portfolio .filter .card-text {
  flex: 1;
  margin-bottom: 1rem;
}

#portfolio-filters li {
  cursor: pointer;
  transition: all 0.3s ease;
}

#portfolio-filters li:hover {
  background-color: #007bff;
  color: white;
}

#portfolio-filters li.active {
  background-color: #007bff;
  color: white;
  border-color: #007bff;
}

/* Ensure equal height columns */
.portfolio .row {
  display: flex;
  flex-wrap: wrap;
}

.portfolio .row > [class*='col-'] {
  display: flex;
  flex-direction: column;
}
