@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");
::selection {
  color: #fff;
  background: #ea580c;
}

body {
  /* font-family: 'Poppins', sans-serif; */
  font-family: "Montserrat", sans-serif;
}

.social-button {
  text-wrap: wrap;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-radius: 50%;
  width: 3.6rem;
  height: 3.6rem;
  padding: 10px;
  transition: 0.3s cubic-bezier(0.58, -0.2, 0.59, 1.21);
  border: 2px solid transparent;
  border: 2px solid var(--bg-color);
  &:hover {
    border: 2px solid var(--bg-color);
    box-shadow: 0 0 16px 1px var(--bg-color);
  }
}
.social-button i {
  font-size: 22px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.58, -0.2, 0.65, 1.62);
}
.social-button::after {
  content: attr(data-socialLink);
  position: absolute;
  top: -5px;
  left: 50%;
  opacity: 0;
  transform: translateX(-50%);
  background-color: var(--bg-color);
  color: white;
  padding: 10px 12px;
  border-radius: 25px;
  min-width: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s cubic-bezier(0.58, -0.2, 0.65, 1.62);
}
.social-button::before {
  content: "";
  position: absolute;
  top: 0;
  opacity: 0;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 20px;
  height: 20px;
  background-color: var(--bg-color);
  transition: 0.3s cubic-bezier(0.58, -0.2, 0.65, 1.62);
}

.social-button:hover::after {
  top: -64px;
  opacity: 1;
}
.social-button:hover::before {
  top: -35px;
  opacity: 1;
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes blink {
  50% {
    border-color: transparent;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fadeIn {
  animation: fadeIn 1s ease-out;
}

.mobile-menu {
  display: none;
  transition: transform 0.3s ease-in-out;
}

.mobile-menu.active {
  display: flex;
}

.project-card {
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: translateY(-10px);
}

.skill-card {
  transition: all 0.3s ease;
}

.dark-mode-transition {
  transition: background-color 0.3s ease, color 0.3s ease;
}

.form-input-error {
  border: 2px solid red;
  animation: shake 0.5s ease-in-out;
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-10px);
  }
  75% {
    transform: translateX(10px);
  }
}

/* Profile Image Animation */
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Update primary color throughout the site */
.text-green-600 {
  color: #e1790a !important;
}

.dark .text-green-600 {
  color: #60a5fa !important;
}

.bg-green-600 {
  background-color: #e1790a !important;
}

.dark .bg-green-600 {
  background-color: #60a5fa !important;
}

.hover\:bg-green-500:hover {
  background-color: #2563eb !important;
}

.dark .hover\:bg-green-500:hover {
  background-color: #e1790a !important;
}

.hover\:text-green-600:hover {
  color: #e1790a !important;
}

.dark .hover\:text-green-600:hover {
  color: #60a5fa !important;
}

.focus\:border-green-600:focus {
  border-color: #e1790a !important;
}

.dark .focus\:border-green-600:focus {
  border-color: #60a5fa !important;
}

.focus\:ring-green-500:focus {
  --tw-ring-color: #e1790a !important;
}

.dark .focus\:ring-green-500:focus {
  --tw-ring-color: #60a5fa !important;
}

.toast.success .toast-icon {
  color: #ea580c;
}

.toast.success .toast-progress-bar {
  background-color: #ea580c;
}

.tab-btn::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #ea580c;
  transition: width 0.3s ease;
}

.tab-btn.tab-active,
.tab-btn.dark .tab-active {
  color: #ea580c;
}

.tab-btn.tab-active::after {
  width: 100%;
}

.tab-content {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.3s ease;
}

.tab-content.hidden {
  display: none;
  opacity: 0;
  transform: translateY(10px);
}

/* Responsive adjustments for social bar */
@media (max-width: 768px) {
  .fixed-social-bar {
    right: 1rem;
  }

  .social-icon {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1rem;
  }
}

/* Hide social bar when scrolling on mobile */
@media (max-width: 640px) {
  .fixed-social-bar {
    transition: opacity 0.3s ease;
  }

  .fixed-social-bar.hidden {
    opacity: 0;
    pointer-events: none;
  }
}

/* Add these new styles */
.social-link {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: #f3f4f6;
  color: #ea580c;
  font-size: 1.25rem;
  transition: all 0.3s ease;
}

.dark .social-link {
  background-color: #f7820534;
  color: #fff;
}

.social-link:hover {
  background-color: #ea580c;
  color: white;
  transform: translateY(-3px);
}

.dark .social-link:hover {
  background-color: #e1790a;
}

/* Form focus and hover effects */
input,
textarea {
  transition: all 0.3s ease;
}

/* Add these new styles */
.error-icon {
  animation: fadeIn 0.3s ease-in-out;
}

.loading-spinner {
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Style for disabled button */
button[type="submit"]:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.form-input-error {
  border-color: #ef4444 !important;
}

/* Add these loading state styles */
.loading-state {
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.loading-state.show {
  transform: translateY(0);
}

.submit-text {
  transform: translateY(0);
  transition: transform 0.3s ease;
}

.submit-text.hide {
  transform: translateY(-100%);
}

button[type="submit"] {
  transition: all 0.3s ease;
}

button[type="submit"]:disabled {
  opacity: 0.7;
  cursor: wait;
}

/* Updated back to top button styles */
#backToTop {
  opacity: 0;
  transform: translateY(20px);
  z-index: 50;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#backToTop.visible {
  opacity: 1;
  transform: translateY(0);
}

#backToTop:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

/* Pulse animation */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
  }
}

#backToTop.visible {
  animation: pulse 2s infinite;
}

.dark #backToTop:hover {
  background-color: #e1790a;
  box-shadow: 0 8px 20px rgba(234, 75, 7, 0.3);
}

/* Updated Section Heading Styles with Better Mobile Responsiveness */
.section-heading {
  position: relative;
  display: inline-block;
  padding: 0 20px;
}

.section-heading::before,
.section-heading::after {
  content: "";
  position: absolute;
  top: 50%;
  height: 2px;
  background: #e1790a;
  transform: translateY(-50%);
  transition: all 0.3s ease;
}

/* Responsive widths for the lines */
@media (min-width: 768px) {
  .section-heading::before,
  .section-heading::after {
    width: 50px;
  }

  .section-heading::before {
    right: 100%;
    background: linear-gradient(to right, transparent, #e1790a);
  }

  .section-heading::after {
    left: 100%;
    background: linear-gradient(to left, transparent, #e1790a);
  }

  .section-heading-container:hover .section-heading::before,
  .section-heading-container:hover .section-heading::after {
    width: 100px;
  }
}

/* Mobile styles */
@media (max-width: 767px) {
  .section-heading::before,
  .section-heading::after {
    width: 30px;
  }

  .section-heading::before {
    right: calc(100% - 10px);
    background: linear-gradient(to right, transparent, #e1790a);
  }

  .section-heading::after {
    left: calc(100% - 10px);
    background: linear-gradient(to left, transparent, #e1790a);
  }

  .section-heading-container:hover .section-heading::before,
  .section-heading-container:hover .section-heading::after {
    width: 40px;
  }
}

.section-heading-container {
  text-align: center;
  position: relative;
  margin-bottom: 3rem;
}

/* Adjust background text size for mobile */
.section-heading-container::before {
  content: attr(data-text);
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: clamp(3rem, 10vw, 5rem); /* Responsive font size */
  font-weight: bold;
  opacity: 0.05;
  white-space: nowrap;
  z-index: 0;
}

/* Dark mode styles */
.dark .section-heading::before {
  background: linear-gradient(to right, transparent, #ea580c);
}

.dark .section-heading::after {
  background: linear-gradient(to left, transparent, #ea580c);
}

/* Decorative dots with responsive spacing */
.section-heading-container::after {
  content: "• • •";
  display: block;
  text-align: center;
  color: #ea580c;
  font-size: clamp(1rem, 4vw, 1.5rem);
  margin-top: 0.5rem;
  letter-spacing: clamp(0.25rem, 2vw, 0.5rem);
  opacity: 0.7;
}

.dark .section-heading-container::after {
  color: #ea580c;
}

/* Technology tag styles */
.tech-tag {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background-color: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: all 0.3s ease;
  position: relative;
  cursor: pointer;
}

.dark .tech-tag {
  background-color: hsl(216, 18%, 29%);
}

.tech-tag:hover {
  transform: translateY(-2px);
  /* background-color: #ffffff; */
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.dark .tech-tag:hover {
  background-color: #1f2937;
  box-shadow: 0 4px 12px rgba(96, 165, 250, 0.25);
}

/* Specific icon colors */
.tech-tag .fa-html5 {
  color: #e34f26;
}
.tech-tag .fa-css3-alt {
  color: #1572b6;
}
.tech-tag .fa-js {
  color: #f7df1e;
}
.tech-tag .fa-react {
  color: #61dafb;
}
.tech-tag .fa-node-js {
  color: #339933;
}

/* Updated tooltip styles */
.tech-tag::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #ea580c;
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.tech-tag::after {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top: 5px solid #ea580c;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  /* margin-bottom: 5px; */
}

.tech-tag:hover::before {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-5px);
}

.tech-tag:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-5px);
}

@keyframes tooltipBounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(-5px);
  }
  50% {
    transform: translateX(-50%) translateY(-7px);
  }
}

.tech-tag:hover::before,
.tech-tag:hover::after {
  animation: tooltipBounce 1s ease infinite;
}

/* Form error styles */
.form-input-error {
  border-color: #ef4444 !important;
}

.error-icon {
  animation: fadeIn 0.3s ease-in-out;
}

.error-message {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: #ef4444;
}

.error-message i {
  font-size: 0.875rem;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

input.form-input-error:focus {
  border-color: #ef4444;
}

.dark input.form-input-error:focus {
  border-color: #ef4444;
}

@keyframes float-slow {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-10px, -10px);
  }
}

@keyframes float-slower {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(10px, -10px);
  }
}

.animate-float-slow {
  animation: float-slow 6s ease-in-out infinite;
}

.animate-float-slower {
  animation: float-slower 8s ease-in-out infinite;
}

/* Add smooth transition for social links */
.social-link {
  transform: translateY(0);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-link:hover {
  transform: translateY(-5px);
}

/* Add gradient animation for profile image border */
.profile-image-border::after {
  animation: borderRotate 8s linear infinite;
}

@keyframes borderRotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.font-poppins {
  font-family: "Poppins", sans-serif;
}
.font-nunito {
  font-family: "Montserrat", sans-serif;
}
/* Mobile Sidebar Styles */
.mobile-nav-link {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  color: #4b5563;
  font-weight: 500;
  transition: all 0.3s ease;
  border-radius: 0.5rem;
  background-color: transparent;
}

.dark .mobile-nav-link {
  color: #d1d5db;
}

.mobile-nav-link:hover {
  background-color: #f3f4f6;
  color: #e1790a;
  transform: translateX(5px);
}

.dark .mobile-nav-link:hover {
  background-color: #374151;
  color: #ea580c;
}

/* Active link styles */
.mobile-nav-link.active {
  background-color: #ebf5ff;
  color: #ea580c;
}

.dark .mobile-nav-link.active {
  background-color: #ea580c;
  color: #ffffff;
}

body.sidebar-open {
  overflow: hidden;
}

.nav-link:hover {
  color: #ea580c;
}

.nav-link.active {
  color: #ec5d15;
  background-color: #ea5a0c1b;
}
/* .contactBtn {
  background: linear-gradient(45deg, #ec570d, #ca5312);
  transition: all 0.3s ease;
  &:hover {
    background: linear-gradient(45deg, #ca5312, #ec570d);
  }
} */
.code-container {
  color: #e6f5d6;
  font-family: "Consolas", "Monaco", monospace;
  padding: 14px 20px;
  border-radius: 8px;
  tab-size: 2;
}

.keyword {
  color: #b30cea;
  font-weight: 800;
}
.object {
  color: #f05c25;
  font-weight: 600;
}

.string {
  color: #09d076;
}
.dark .string {
  color: #09d076;
}

.property {
  color: #ea580c;
}

.variable {
  color: #e87045;
}

.wrapper {
  color: #0e6dea;
}

.array {
  color: #b30cea;
}
.comma {
  color: #433e3e;
}
.dark .comma {
  color: #ffffff;
}
.bracket {
  color: #5a8c4a;
}

.operator {
  color: #ff6b35;
}

.highlight {
  /* background-color: #1F2E1A; */
  padding: 2px 4px;
  border-radius: 3px;
}

.comment {
  color: #5a8c4a;
  font-style: italic;
}

.shake {
  animation: shake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes shake {
  10%,
  90% {
    transform: translate3d(-1px, 0, 0);
  }

  20%,
  80% {
    transform: translate3d(2px, 0, 0);
  }

  30%,
  50%,
  70% {
    transform: translate3d(-2px, 0, 0);
  }

  40%,
  60% {
    transform: translate3d(2px, 0, 0);
  }
}

.borderError {
  border-color: #ef4444 !important;
}

/* Disable button styles */
button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.custom-cursor {
  position: fixed;
  width: 40px;
  height: 40px;
  border: 2px solid #00ffff;
  border-radius: 50%;
  pointer-events: none;
  mix-blend-mode: difference;
  transition: transform 0.15s ease-out;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.inner-cursor {
  width: 8px;
  height: 8px;
  background: #0fd53d;
  border-radius: 50%;
  pointer-events: none;
}

@keyframes fadeOut {
  from {
    opacity: 0.7;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(0.5);
  }
}

/* typing effect */
.cursor {
  border-right: 3px solid #ed6809;
  margin-left: 2px;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

.final-message {
  border-right: none;
}

@keyframes blink-caret {
  from,
  to {
    border-color: transparent;
  }
  50% {
    border-color: #00ff00;
  }
}

.glow {
  animation: glow 1s ease-in-out infinite alternate;
}

@keyframes glow {
  from {
    background-color: #0fc70f;
    transform: scale(1);
    box-shadow: 0 0 8px 2px #0fc70f;
  }
  to {
    background-color: #0fc70f;
    transform: scale(1.04);
    box-shadow: 0 0 20px 2px #0fc70f;
  }
}
