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 7 — Theme Integration
   ===================================================== */

/* Remove default CF7 margin */
.wpcf7 {
  margin: 0;
}

/* CF7 wraps every field in <span> — make it block so Bootstrap columns work */
.wpcf7-form-control-wrap {
  display: block;
}

.wpcf7-form-control-wrap .form-control {
  width: 100%;
}

/* Inline validation error text */
.wpcf7-not-valid-tip {
  display: block;
  font-size: 12px;
  color: #dc3545;
  margin-top: 4px;
  padding-left: 15px;
}

/* Invalid field highlight */
.wpcf7-not-valid.form-control {
  border-color: #dc3545;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.15);
}

/* Form-level response banner */
.wpcf7-response-output {
  border-radius: 10px;
  padding: 12px 18px;
  margin: 15px 0 0;
  font-size: 14px;
  border: 1px solid transparent;
}

.wpcf7-mail-sent-ok {
  background-color: #d4edda;
  border-color: #c3e6cb;
  color: #155724;
}

.wpcf7-mail-sent-ng,
.wpcf7-aborted {
  background-color: #f8d7da;
  border-color: #f5c6cb;
  color: #721c24;
}

.wpcf7-spam-blocked {
  background-color: #fff3cd;
  border-color: #ffeeba;
  color: #856404;
}

.wpcf7-validation-errors,
.wpcf7-acceptance-missing {
  background-color: #fff3cd;
  border-color: #ffeeba;
  color: #856404;
}

/* Spinner next to submit button */
.wpcf7-spinner {
  display: inline-block;
  vertical-align: middle;
  margin-left: 10px;
}

/* 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: #02a8f5;
  color: white;
}

#portfolio-filters li.active {
  background-color: #02a8f5;
  color: white;
  border-color: #02a8f5;
}

/* Ensure equal height columns */
.portfolio .row {
  display: flex;
  flex-wrap: wrap;
}

.portfolio .row > [class*='col-'] {
  display: flex;
  flex-direction: column;
}
