/* Modern Effects CSS - Cursor, Social Media, Animations */

/* Cursor Styling */
* {
  cursor: url("/media/cursors/auto.png"), auto;
}

input:hover,
textarea:hover {
  cursor: url("/media/cursors/text.png"), text !important;
}

a:hover,
button:hover,
input[type="submit"]:hover,
#close_pv_btn:hover,
button > i:hover,
button > span:hover,
a > i:hover {
  cursor: url("/media/cursors/pointer.png"), pointer !important;
}

/* Hide custom cursor on mobile */
#cursor_outer,
#cursor_inner {
  display: none;
}

/* Hide cursors on touch devices */
body.touch-device #cursor_outer,
body.touch-device #cursor_inner {
  display: none !important;
}

/* Cursor Elements */
#cursor_outer {
  position: fixed;
  top: -9999px;
  left: -9999px;
  z-index: 9999;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid #00f7ff;
  box-shadow: 0px 0px 5px #00c3ff;
  transform: translate(-50%, -50%);
  transition: width 0.2s ease-out, height 0.2s ease-out, opacity 0.2s ease-out, transform 0.1s linear;
  mix-blend-mode: difference;
  pointer-events: none;
}

#cursor_outer.active {
  width: 35px;
  height: 35px;
  border-color: rgba(0, 247, 255, 0.5);
  transition: all 0.1s linear;
}

#cursor_inner {
  position: fixed;
  top: -9999px;
  left: -9999px;
  z-index: 9999;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: none;
  background: #40E0D0; /* Turquoise color */
  transform: translate(-50%, -50%) scale(1);
  transition: width 0.2s ease-out, height 0.2s ease-out, opacity 0.2s ease-out, 
              background-color 0.2s ease-out, box-shadow 0.2s ease-out, transform 0.07s linear;
  mix-blend-mode: normal; /* For solid color */
  pointer-events: none;
  box-shadow: 0 0 8px #40E0D0, 0 0 15px rgba(64, 224, 208, 0.5);
}

#cursor_inner.active {
  transform: translate(-50%, -50%) scale(2.2); /* Scale up on click */
  opacity: 0.9;
  background-color: #66fff0; /* Slightly brighter on click */
  box-shadow: 0 0 10px #66fff0, 0 0 20px #66fff0, 0 0 30px #66fff0;
  animation: pulseEffect 0.5s ease-out;
}

@keyframes pulseEffect {
  0% {
    transform: translate(-50%, -50%) scale(2.2);
    opacity: 0.9;
  }
  50% {
    transform: translate(-50%, -50%) scale(2.5);
    opacity: 0.7;
  }
  100% {
    transform: translate(-50%, -50%) scale(2.2);
    opacity: 0.9;
  }
}

/* Social Media Styling */
.social_handles_container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  column-gap: 30px;
}

.social_handles_container h4 {
  font-family: "Satisfy", sans-serif;
  font-size: 4rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.1);
  position: relative;
  margin-bottom: 0;
}

.social_handles_container h4::before {
  content: "Social";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: "Ubuntu Mono", sans-serif;
  font-size: 3rem;
  font-weight: bold;
  letter-spacing: 6px;
  color: #25afff;
}

.social_handles {
  width: 80%;
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
}

.social_handles a {
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  font-size: 2rem;
  color: #25afff;
  transition: all 0.3s ease;
}

.social_handles a:hover {
  background: #25afff;
  color: rgba(0, 0, 0, 0.7);
  transform: translateY(-5px);
}

.social-logo {
  transition: all 0.3s ease;
}

.social_handles a:hover .social-logo {
  transform: scale(1.1);
}

/* Portfolio Items Styling */
.portfolio_item {
  border: 3px solid #00f7ff;
  background: #00f7ff;
  transition: all 0.3s ease;
  overflow: hidden;
  border-radius: 8px;
}

.portfolio_item:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 247, 255, 0.3);
}

.portfolio_item img {
  height: 200px;
  object-fit: cover;
  transition: all 0.5s ease;
}

.portfolio_item:hover img {
  transform: scale(1.05);
}

.portfolio_item h4 {
  font-size: 28px;
  font-weight: 600;
  color: #030303;
  margin: 10px 0px;
  text-align: center;
}

.portfolio_item button {
  display: block;
  margin: 15px auto 10px;
  padding: 3px 10px;
  background-color: transparent;
  border: 3px solid #030303;
  outline: none;
  color: #030303;
  font-size: 18px;
  transition: all 0.3s ease;
}

.portfolio_item button:hover {
  transform: scale(1.06);
  background: #00f7ff;
  border: 3px solid #fff;
  color: white;
}

/* Animation for section titles */
.section_title {
  display: inline-block;
  color: rgba(255, 255, 255, 0.9);
  font-size: 3rem;
  font-weight: 500;
  position: relative;
  margin-bottom: 20px;
  transform-origin: left;
  transition: all 0.4s;
}

.section_title::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0px;
  width: 50%;
  height: 3px;
  background: #fff;
  transform-origin: left;
  transform: scaleX(0);
  transition: all 0.3s;
}

.section_title:hover::after {
  transform: scaleX(1);
}

.section_title:hover {
  transform: scale(1.06) !important;
}

.section_title_highlight {
  font-weight: 700;
  color: #00c3ff;
}

/* Skill Cards Styling */
.skill_cards {
  display: flex;
  flex-direction: row;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.skill_card {
  width: 300px;
  min-height: 140px;
  background: linear-gradient(
    75deg,
    rgba(255, 255, 255, 0.2),
    rgba(255, 255, 255, 0.1)
  );
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 5px;
  padding: 13px;
  display: flex;
  gap: 20px;
  align-items: center;
  font-family: "Ubuntu Mono", sans-serif;
  font-size: 17px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 400;
  transition: all 0.3s ease;
}

.skill_card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 247, 255, 0.1);
}

.skill_card img {
  width: 65px;
  aspect-ratio: 1/1;
  object-fit: contain;
}

.skill_card div {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 6px;
}

.skill_card div span:nth-child(1) {
  color: #00c3ff;
  font-weight: 600;
  font-size: 25px;
}

/* Intro Section Animation */
.scroll-down-icon {
  position: absolute;
  width: 100px !important;
  height: auto !important;
  object-fit: contain !important;
  left: 50% !important;
  bottom: 0;
  z-index: 1 !important;
  transform: translateX(-50%);
  opacity: 30%;
  animation: scrollIndicatorHover 3s ease-in-out infinite;
}

@keyframes scrollIndicatorHover {
  0% {
    transform: translateX(-50%) translateY(0);
  }
  75% {
    transform: translateX(-50%) translateY(12px);
  }
  100% {
    transform: translateX(-50%) translateY(0);
  }
}

/* Contact Form Styling */
.contact_form_container {
  display: grid;
  grid-template-columns: 3fr 2fr;
  grid-gap: 50px;
  align-items: center;
}

.contact_form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  width: 100%;
  padding: 12px;
  border: 3px solid #25afff;
  border-radius: 5px;
}

.contact_form input,
.contact_form textarea {
  display: block;
  width: 100%;
  padding: 10px 15px;
  background: transparent;
  border: 2px solid #25afff;
  border-radius: 5px;
  color: #25afff;
  font-family: "Ubuntu Mono", sans-serif;
  font-size: 18px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.contact_form textarea {
  grid-column: span 2;
}

.contact_form input:focus,
.contact_form textarea:focus {
  outline: none;
  box-shadow: 0px 0px 12px #00f7ff;
}

.contact_form input::placeholder,
.contact_form textarea::placeholder {
  color: rgba(37, 175, 255, 0.5);
  font-family: "Ubuntu Mono", sans-serif;
  font-size: 18px;
}

.contact_form button {
  padding: 5px 10px;
  font-family: "Ubuntu Mono", sans-serif;
  font-size: 18px;
  font-weight: 600;
  background: #25afff;
  border: 2px solid #25afff;
  outline: none;
  grid-column: span 2;
  width: 50%;
  margin: 0 auto;
  transition: all 0.3s ease;
}

.contact_form button:hover {
  background: transparent;
  color: #25afff;
  transform: scale(1.05);
}

/* RTL Support for Arabic */
[dir="rtl"] .section_title {
  transform-origin: right;
}

[dir="rtl"] .section_title::after {
  left: auto;
  right: 0;
  transform-origin: right;
}

[dir="rtl"] .skill_card div {
  align-items: end;
  text-align: right;
}

[dir="rtl"] .social_handles {
  justify-content: flex-start;
}
