/* --- Merged and Optimized Stylesheet from main.css, style.css, and new.css --- */

/* --- Base Styles, Variables, and Resets --- */
/* Smooth theme transitions */
body,
.container,
.nav-bar,
.banner .banner-content,
.banner-mobile .banner-content,
.about .about-content,
.skills .skill-content .skill-set,
.skills .skill-content .skill-set .skill-card,
.projects .project-content .project-card,
.contact .contact-form,
.contact .contact-form .text-box input,
.contact .contact-form .text-box textarea {
  transition: var(--theme-transition);
}
:root {
  --bg-dark: #111828;
  --bg-medium: #1F2937;
  --text-light: #ffffff;
  --text-dark: #111828;
  --accent-purple: #6000e7;
  --accent-green: #22C55E;
  --text-gray: #7e7f80;
  --theme-transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Inter, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-light);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Light theme */
body.light-theme {
  --bg-dark: #f8fafc;
  --bg-medium: #e2e8f0;
  --text-light: #0f172a;
  --text-dark: #ffffff;
  --accent-purple: #7c3aed;
  --text-gray: #64748b;
  position: relative;
  min-height: 100vh;
}

/* --- Scrollbar Styles --- */
::-webkit-scrollbar {
  display: none;
}

::-webkit-scrollbar-thumb {
  width: 1px;
  background-color: var(--bg-medium);
  border-radius: 100px;
}

/* --- Mobile-only Gradient Background --- */
@media (max-width: 768px) {
  body {
    background-image: none;
    /* Subtle purple and white lights for mobile view */
    background:
      /* White light */
      radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.08) 0%, transparent 40%),
      /* Purple light */
      radial-gradient(circle at 85% 30%, rgba(96, 0, 231, 0.15) 0%, transparent 50%),
      /* Original base gradient */
      radial-gradient(ellipse at bottom, #1b2735 0%, #090a0f 100%);
  }
  
  body.light-theme {
    background:
      radial-gradient(circle at 15% 20%, rgba(124, 58, 237, 0.08) 0%, transparent 40%),
      radial-gradient(circle at 85% 30%, rgba(124, 58, 237, 0.12) 0%, transparent 50%),
      radial-gradient(ellipse at bottom, #f8fafc 0%, #e0e7ff 100%);
  }
}

/* --- Global & Utility Classes --- */
button:not(.theme-toggle) {
  background-color: var(--accent-purple);
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button:not(.theme-toggle):hover {
  transform: translateY(-2px); /* Subtle lift effect */
  box-shadow: 0 4px 15px rgba(96, 0, 231, 0.4); /* Glowing effect */
}

.container {
  margin: 0 auto;
  position: relative;
  z-index: 1;
  width: 100%;
}

@media (min-width: 1080px) {
  .container {
    width: 1080px;
  }
}

@media (max-width: 1080px) {
  .container {
    padding: 0 20px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 10px;
  }
}

.page-wrapper {
  background: transparent;
  padding-top: 80px; /* Push content below fixed navbar */
}

/* --- Page Load Transitions --- */
main, footer {
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

main.visible, footer.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.page-wrapper {
  background: transparent;
  padding-top: 80px; /* Push content below fixed navbar */
}


/* --- 3D Background Canvas --- */
#three-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
}

/* --- Section Title Styles --- */
.title-container {
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.title-container.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.title-main {
  font-weight: 700;
  font-size: clamp(28px, 5vw, 32px); /* Responsive font size */
  text-align: center;
  margin: 80px 0;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-light);
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
  cursor: pointer;
}

.title-main::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #8b5cf6, #a855f7);
  left: 0;
  bottom: 0;
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1) 0.2s;
}

.title-container.is-visible .title-main::after {
  transform: scaleX(1);
}

/* --- Navigation Bar --- */.nav-bar {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  padding: 0 30px 0 20px;
  border-radius: 12px 12px 0 0;
  font-family: "Poppins", sans-serif;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

.nav-bar .logo {
  font-size: 28px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  color: var(--text-light);
  transition: color 0.3s ease;
}

.nav-bar .logo:hover {
  color: var(--accent-purple);
}

.nav-bar ul {
  list-style: none;
  justify-content: inherit;
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-bar .nav-links {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  gap: 30px;
}

.nav-bar ul li a {
  position: relative;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-light);
  padding: 5px 0;
  transition: color 0.3s ease;
}

.nav-bar ul li a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--accent-purple);
  transition: width 0.3s ease-in-out;
}

.nav-bar ul li a:hover {
  color: var(--accent-purple);
}

.nav-bar ul li a:hover::after,
.nav-bar ul li a.active::after {
  width: 100%;
}

.nav-bar ul:not(.nav-links) li a:hover {
  color: var(--accent-purple);
}


.nav-bar ul li a i {
  font-size: 24px;
}

.nav-bar ul li a.active {
  color: var(--accent-purple);
}

.nav-bar ul li a:hover i {
  color: var(--accent-purple);
}

@media (max-width: 768px) {
  .nav-bar {
    display: none;
  }
  footer .nav-bar {
    display: flex;
    justify-content: flex-end;
  }
  footer .nav-bar .logo {
    display: none;
  }
  footer .nav-bar ul li:first-child {
    display: none;
  }
  footer .nav-bar ul {
    justify-content: flex-end;
  }
}

body.light-theme .bubble {
  background: linear-gradient(135deg, #7c3aed, #a78bfa, #c4b5fd);
}

/* --- Home Section & Banners --- */
.home {
  position: relative;
}

/* Desktop Banner */
.banner {
  position: relative;
  min-height: calc(100vh - 80px);
  width: 100%;
  display: flex;
  align-items: center;
  padding: 0 0 40px 0;
}

.banner .banner-content {
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-around;
  align-items: center;
  width: 100%;
  border-radius: 12px;
  padding: 20px;
  background: rgba(17, 24, 40, 0.3);
  backdrop-filter: blur(2px);
  margin: 0 auto;
}

.banner .banner-content .banner-left {
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  font-size: 16px;
  font-weight: 500;
  padding: 20px;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 10;
}

.banner .banner-content .banner-left:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(96, 0, 231, 0.3);
  background: rgba(17, 24, 40, 0.7);
}

.banner .banner-content .banner-left h1 {
  font-size: 38px;
  font-weight: 900;
  color: var(--accent-purple);
  line-height: 60px;
}

.banner .banner-content .banner-left h1 span {
  color: var(--accent-purple);
}

.banner .banner-content .banner-left button {
  margin-top: 20px;
}

.banner .banner-content .banner-right .profile-container {
  border-radius: 50%;
  overflow: hidden;
  width: 280px;
  height: 280px;
}

.banner .banner-content .banner-right {
  position: relative;
  border-radius: 50%;
  overflow: visible;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 5px solid var(--bg-medium);
  width: 320px;
  height: 320px;
  border-radius: 1000px;
}

.banner .banner-content .banner-right .profile-container {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: breathing 4s ease-in-out infinite;
  width: 280px;
  height: 280px;
}

.banner .banner-content .banner-right .profile-container img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  transform: rotate(-5deg);
}

@media (min-width: 768px) and (max-width: 1080px) {
  .banner .banner-content .banner-left h1 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    line-height: 50px;
  }
}

@media (max-width: 768px) {
  .banner .banner-content .banner-left {
    text-align: center;
  }
  .banner .banner-content .banner-left h1 {
    font-size: 32px;
    line-height: 1.2;
  }
}

/* Mobile Banner */
.banner-mobile {
  display: none;
  position: relative;
  width: 100%;
  padding: 60px 0 40px 0;
}

.banner-mobile .banner-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 40px;
  text-align: center;
  background: rgba(17, 24, 40, 0.3); /* Reduced blur for dark mode */
  backdrop-filter: blur(5px);
  padding: 30px 15px;
  border-radius: 12px;
}

.banner-mobile .banner-right {
  position: relative;
  border-radius: 50%;
  overflow: visible;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 5px solid var(--bg-medium);
  width: 250px;
  height: 250px;
}

.banner-mobile .banner-right .profile-container {
  border-radius: 50%;
  overflow: hidden;
  width: 90%;
  height: 90%;
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: breathing 4s ease-in-out infinite;
}

.banner-mobile .banner-right .profile-container img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  transform: rotate(-5deg);
}

.banner-mobile .banner-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 15px;
  width: 100%;
}

@media (max-width: 768px) {
  .banner {
    display: none;
  }
  .banner-mobile {
    display: block;
  }
  .bubble:nth-child(1) {
    width: 45px;
    height: 45px;
  }
  .banner .banner-content .banner-right {
    width: 80vw;
    height: 80vw;
    max-width: 250px;
    max-height: 250px;
  }
  .banner .banner-content .banner-right .profile-container {
    width: 90%;
    height: 90%;
  }
  .bubble:nth-child(2) {
    width: 30px;
    height: 30px;
  }
  .bubble:nth-child(4) {
    width: 25px;
    height: 25px;
  }
}

/* --- Bubble & Blob Animations --- */
.bubble-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.bubble {
  position: absolute;
  background: linear-gradient(135deg, #6000e7, #8b5cf6, #a855f7);
  border-radius: 50%;
  opacity: 0.6;
  box-shadow: 0 0 20px rgba(96, 0, 231, 0.3), inset 0 0 20px rgba(255, 255, 255, 0.1);
}

.bubble:nth-child(1) { width: 60px; height: 60px; top: 10%; left: 15%; animation: floatOuter1 6s infinite ease-in-out; animation-delay: 0s; }
.bubble:nth-child(2) { width: 40px; height: 40px; top: 20%; right: 20%; animation: floatOuter2 5.5s infinite ease-in-out; animation-delay: -1s; }
.bubble:nth-child(3) { width: 80px; height: 80px; bottom: 15%; left: 10%; animation: floatOuter3 7s infinite ease-in-out; animation-delay: -2s; }
.bubble:nth-child(4) { width: 35px; height: 35px; bottom: 25%; right: 15%; animation: floatOuter4 5.8s infinite ease-in-out; animation-delay: -0.5s; }
.bubble:nth-child(5) { width: 45px; height: 45px; top: 50%; left: -10%; animation: crossHorizontal 8s infinite linear; animation-delay: -1.5s; }
.bubble:nth-child(6) { width: 35px; height: 35px; top: -5%; left: 50%; animation: crossVertical 7s infinite linear; animation-delay: -2.5s; }
.bubble:nth-child(7) { width: 50px; height: 50px; top: 20%; left: -15%; animation: diagonalCross1 9s infinite linear; animation-delay: -0.8s; }
.bubble:nth-child(8) { width: 40px; height: 40px; top: 80%; left: -10%; animation: diagonalCross2 8.5s infinite linear; animation-delay: -1.8s; }

.banner .banner-content .banner-right:hover .bubble {
  animation-duration: 2s !important;
  opacity: 0.8;
}

.banner .banner-content .banner-right:hover .bubble:nth-child(odd) {
  animation-direction: reverse;
}

.blob-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.blob {
  position: absolute;
  background-color: var(--accent-purple);
  border-radius: 50%;
  opacity: 0.3;
  filter: blur(20px);
  animation: move 25s infinite alternate;
}

.blob:nth-child(1) { width: 150px; height: 150px; top: -30px; left: -30px; animation-duration: 20s; }
.blob:nth-child(2) { width: 120px; height: 120px; bottom: -20px; right: -40px; animation-duration: 25s; animation-delay: -10s; }
.blob:nth-child(3) { width: 100px; height: 100px; top: 50%; left: -50px; animation-duration: 30s; animation-delay: -15s; }

@media (max-width: 768px) {
  .banner-mobile .bubble:nth-child(n+5) { display: none; }
  .blob:nth-child(3) { display: none; }
  .bubble:nth-child(3) { width: 50px; height: 50px; }
  .bubble:nth-child(5), .bubble:nth-child(6), .bubble:nth-child(7), .bubble:nth-child(8) { display: none; }
  .bubble:nth-child(1) { animation-name: floatOuter1-mobile; }
  .bubble:nth-child(2) { animation-name: floatOuter2-mobile; }
  .bubble:nth-child(3) { animation-name: floatOuter3-mobile; }
}

/* --- Scroll Down Icon --- */
.scroll-icon {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  font-weight: 400;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.scroll-icon .mouse-icon {
  position: relative;
  height: 40px;
  width: 25px;
  border: 2px solid var(--text-light);
  border-radius: 50px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  color: var(--text-light);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.scroll-icon .mouse-icon:hover {
  border-color: var(--accent-purple);
  box-shadow: 0 0 15px rgba(96, 0, 231, 0.5);
}

.scroll-icon .mouse-icon i {
  font-size: 20px;
  animation: scroll-animation 2s infinite;
}

/* --- About Section --- */
.about {
  opacity: 1;
  transform: translateY(0);
}

.about .about-content {
  margin: 0 auto;
  max-width: 90%;
  padding: 20px 40px;
  border: 2px solid var(--bg-medium);
  border-radius: 8px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-areas: "i1 i4" "i2 i5" "i3 i6";
  grid-gap: 24px;
  place-content: center;
  background: rgba(17, 24, 40, 0.3);
  backdrop-filter: blur(5px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin: 0 50px;
}

.about .about-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(96, 0, 231, 0.3);
  background: rgba(17, 24, 40, 0.7);
}

.about .about-content .about-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 8px;
}

.about .about-content .about-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--accent-purple);
}

.about .about-content .about-text {
  font-size: 16px;
  font-weight: 500;
}

.about .about-content .about-item-1 { grid-area: i1; }
.about .about-content .about-item-2 { grid-area: i2; }
.about .about-content .about-item-3 { grid-area: i3; }
.about .about-content .about-item-4 { grid-area: i4; }
.about .about-content .about-item-5 { grid-area: i5; }
.about .about-content .about-item-6 { grid-area: i6; }

@media (max-width: 768px) {
  .about .about-content {
    grid-template-columns: 1fr;
    grid-template-areas: "i1" "i2" "i3" "i4" "i5" "i6";
    text-align: center;
    margin: 0 10px;
  }
  .about .about-content .about-item {
    align-items: center;
  }
}

@media (max-width: 400px) {
  .about .about-content {
    margin: 0 20px;
  }
}

/* --- Skills Section --- */
.skills {
  margin: 0 50px;
}

.skills {
  padding: 0 20px;
  margin: 0 auto;
}

.skills .skill-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 30px;
}

.skills .skill-content .skill-set-1 {
  grid-row-end: span 2;
}

.skills .skill-content .skill-set {
  position: relative;
  border: 2px solid var(--bg-medium);
  border-radius: 8px;
  padding: 40px 20px;
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  align-items: center;
  gap: 20px;
  background: rgba(17, 24, 40, 0.3); /* Reduced blur for dark mode */
  backdrop-filter: blur(5px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  flex-wrap: wrap;
}

.skills .skill-content .skill-set:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(96, 0, 231, 0.3);
}
.skills .skill-content .skill-set label {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -60%);
  background-color: var(--bg-dark);
  padding: 0 20px;
}

.skills .skill-content .skill-set h2 {
  width: 100%;
  text-align: center;
  margin-bottom: 20px;
  font-size: 20px;
  font-weight: 600;
  color: #e5e7eb;
}

.skills .skill-content .skill-set .skill-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 78px;
  height: 78px;
  border: 2px solid var(--bg-medium);
  background-color: var(--bg-medium);
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.skills .skill-content .skill-set .skill-card:hover {
  background-color: var(--text-light);
  color: var(--text-dark);
  transform: translateY(-5px);
}

.skills .skill-content .skill-set .skill-card p {
  margin-top: 10px;
  font-size: 10px;
  font-weight: 400;
  text-align: center;
}

.skills .skill-content .skill-set .skill-card img {
  width: 32px;
}

@media (max-width: 768px) {
  .skills {
    padding: 0;
  }
  .skills .skill-content {
    grid-template-columns: 1fr;
  }
  .skills .skill-content .skill-set label {
    padding: 0 0px;
  }
}

/* --- Projects Section --- */
.projects .project-content {
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  align-items: center;
  gap: 50px;
}

.projects .project-content .project-card {
  position: relative;
  border: 2px solid var(--bg-medium);
  width: 300px;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-bottom-right-radius 0.3s;
  align-self: flex-start;
  max-height: 500px;
  background: rgba(17, 24, 40, 0.3);
  backdrop-filter: blur(5px);
}

.projects .project-content .project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(96, 0, 231, 0.3);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.projects .project-content .project-card .project-actions {
  position: absolute;
  bottom: -2px; /* Align with border */
  left: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 15px;
  z-index: 2;
  font-size: 18px;
  border: 2px solid var(--bg-medium);
  background-color: #111828;
  padding: 10px;
  border-radius: 0 8px 8px 0;
  border-left: none;
  visibility: hidden;
  opacity: 0;
  transform: translateX(10px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.projects .project-card:hover .project-actions {
  visibility: visible;
  opacity: 1;
  transform: translateX(0);
}

.projects .project-content .project-card .project-actions a {
  color: var(--text-light);
  opacity: 0.8;
  transition: color 0.2s ease;
}

.projects .project-content .project-card .project-actions a:hover {
  color: var(--accent-purple);
}

.projects .project-content .project-card h3 {
  font-weight: 700;
  font-size: 18px;
  color: var(--accent-purple);
}

.projects .project-content .project-card .project-img {
  position: relative;
  width: 100%;
  overflow: hidden;
  height: 150px;
  margin: 20px 0;
}

.projects .project-content .project-card .project-img .project-device {
  width: 100%;
  position: relative;
  z-index: 1;
}

.projects .project-content .project-card .project-img .project-ss {
  width: 195px;
  height: max-content;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  transition: transform 0.3s ease-out;
  z-index: 0;
}
.projects .project-content .project-card .project-img .project-ss.scrolling {
  transform: translate(-50%, calc(-100% + 150px));
  transition: transform 8s linear;
}

.projects .project-content .project-card:hover .project-img .project-ss {
  transform: translate(-50%, calc(-100% + 150px));
  transition: transform 8s linear;
}

/* Slower scroll for LinkedIn card */
.projects .project-content .project-card.linkedin-card:hover .project-img .project-ss,
.projects .project-content .project-card.linkedin-card .project-img .project-ss.scrolling {
  transition: transform 25s linear; /* Increased to 20 seconds for a much slower scroll */
}

.projects .project-content .project-card p {
  font-size: 10px;
  font-weight: 400;
  opacity: 0.8;
}

.projects .project-content .project-card h5 {
  margin-top: 20px;
  font-size: 10px;
  font-weight: 800;
  color: var(--accent-purple);
}

.projects .project-content .project-card .project-techs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  margin-top: 5px;
}

.projects .project-content .project-card .project-techs .project-tech {
  position: relative;
  width: fit-content;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.projects .project-content .project-card .project-techs .project-tech img {
  width: 20px;
  opacity: 0.75;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.projects .project-content .project-card .project-techs .project-tech img:hover {
  opacity: 1;
}

.projects .project-content .project-card .project-techs .project-tech label {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 100%;
  display: none; /* Hidden by default */
  font-size: 8px;
  font-weight: 500;
  color: var(--text-gray);
  border: 2px solid var(--bg-medium);
  padding: 3px 6px;
  background-color: var(--bg-dark);
  white-space: nowrap;
}

.projects .project-content .project-card .project-techs .project-tech:hover label {
  display: block;
}

/* --- Contact Section --- */
.contact h1 {
  margin-bottom: 90px;
}

.contact .contact-form {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  max-width: 600px;
  margin: 20px auto;
  border: 2px solid var(--bg-medium);
  padding: 40px 30px;
  border-radius: 8px;
  background: rgba(17, 24, 40, 0.3);
  backdrop-filter: blur(5px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin: 20px auto;
}

.contact .contact-form:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(96, 0, 231, 0.3);
}

.contact .contact-form p {
  position: absolute;
  top: 0;
  font-size: 54px;
  background-color: var(--bg-dark);
  transform: translate(0, -50%);
  padding: 10px;
  border-radius: 100px;
  height: 68px;
  width: 68px;
  border: 3px solid #1F2937;
}

.contact .contact-form p i {
  position: absolute;
  top: 30%;
  left: -15px;
  color: var(--accent-purple);
  transform: rotate(10deg);
}

.contact .contact-form .text-box {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.contact .contact-form .text-box input,
.contact .contact-form .text-box textarea {
  padding: 10px;
  border: 2px solid var(--bg-medium);
  border-radius: 8px;
  outline: none;
  background: none;
  color: var(--text-light);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact .contact-form .text-box input:hover,
.contact .contact-form .text-box textarea:hover,
.contact .contact-form .text-box input:focus,
.contact .contact-form .text-box textarea:focus {
  border-color: var(--accent-purple);
  box-shadow: 0 0 10px rgba(96, 0, 231, 0.3);
}

.contact .contact-form button {
  margin-top: 15px;
  padding: 10px 40px;
}

/* --- Fixed Robot Assistant --- */
.fixed-robot-container {
  position: fixed;
  bottom: 0;
  right: 10px;
  z-index: 1000;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.fixed-robot-container.visible {
  opacity: 1;
  visibility: visible;
  animation: pop-in-animation 0.8s ease-out forwards;
}

.fixed-robot-container .waving-robot {
  width: 250px;
  height: auto;
  transform-origin: 80% 90%;
  transition: transform 0.3s ease;
}

.fixed-robot-container:hover .waving-robot {
  animation: jump-animation 1.5s ease-in-out infinite;
}

@media (max-width: 768px) {
  .fixed-robot-container {
    display: block;
    right: 10px;
    bottom: 60px;
  }
  .fixed-robot-container.visible {
    animation: none;
  }
  .fixed-robot-container .waving-robot {
    width: 120px;
    animation: none !important;
  }
}

/* --- Footer --- */
footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-top: 100px;
  padding-bottom: 40px;
}

.footer-links {
  width: 100%;
  padding-top: 20px;
  border-top: 1px solid var(--text-light);
  display: flex;
  justify-content: center;
}

.footer-links ul {
  display: flex;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links ul li a {
  color: var(--text-light);
  font-size: 24px;
  transition: color 0.25s ease;
}

.footer-links ul li a:hover {
  color: var(--accent-purple);
}

footer .copyright-text {
  text-align: center;
  font-size: 10px;
  font-weight: 400;
}

/* Floating particles in the background */
.floating-particle {
  position: fixed;
  top: -10px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  animation: float-particle linear;
}

@keyframes float-particle {
  from {
    transform: translateY(0) scale(1);
    opacity: 0.8;
  }
  to {
    transform: translateY(105vh) scale(0.5);
    opacity: 0;
  }
}
/* --- Enhanced Animations & Effects --- */
.ripple {
  position: relative;
  overflow: hidden;
}

.glow-border {
  position: relative;
}

.glow-border::before {
  content: '';
  position: absolute;
  top: -2px; left: -2px;
  right: -2px; bottom: -2px;
  background: linear-gradient(45deg, #8b5cf6, #a855f7, #6000e7);
  background-size: 400% 400%;
  z-index: -1;
  filter: blur(5px);
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  animation: glowing 20s linear infinite;
}

.theme-toggle .star:nth-child(1) {
  top: 20%;
  left: 20%;
  animation-delay: 0s;
}

.theme-toggle .star:nth-child(2) {
  top: 60%;
  left: 70%;
  animation-delay: 0.7s;
}

.theme-toggle .star:nth-child(3) {
  top: 40%;
  left: 45%;
  animation-delay: 1.4s;
}

/* Light theme Three.js canvas - Full visibility with strong colors */
body.light-theme #three-canvas {
  opacity: 1;
  filter: contrast(1.2) brightness(1.1);
}

@keyframes twinkle {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.5); }
}

body.light-theme {
  color: var(--text-light);
}

/* --- Keyframes --- */
@keyframes move {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(50px, -30px) scale(1.4); }
}

@keyframes breathing {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.07); }
}

@keyframes scroll-animation {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(15px); opacity: 0; }
}

@keyframes wave-animation {
  0%, 60%, 100% { transform: rotate(0deg); }
  10%, 30% { transform: rotate(14deg); }
  20% { transform: rotate(-8deg); }
  40% { transform: rotate(-4deg); }
  50% { transform: rotate(10deg); }
}

@keyframes jump-animation {
  0%, 50%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-20px) rotate(-5deg); }
  75% { transform: translateY(-10px) rotate(5deg); }
}

@keyframes pop-in-animation {
  from { opacity: 0; transform: translateY(50px) scale(0.5); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes glowing {
  0%, 100% { background-position: 0 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes rippleAnimation {
  to { transform: scale(4); opacity: 0; }
}

@keyframes sparkleAnimation {
  0% {
    transform: scale(0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: scale(1) rotate(180deg);
    opacity: 0;
  }
}

@keyframes trailFade {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  100% {
    transform: scale(0);
    opacity: 0;
  }
}

/* Bubble Animations */
@keyframes floatOuter1 {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.4; }
  25% { transform: translate(-15px, -20px) scale(1.1); opacity: 0.7; }
  50% { transform: translate(20px, -10px) scale(0.9); opacity: 0.5; }
  75% { transform: translate(-10px, 15px) scale(1.05); opacity: 0.6; }
}

@keyframes floatOuter2 {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.5; }
  30% { transform: translate(15px, -25px) scale(0.8); opacity: 0.7; }
  60% { transform: translate(-20px, -5px) scale(1.2); opacity: 0.4; }
  90% { transform: translate(10px, 20px) scale(0.95); opacity: 0.6; }
}

@keyframes floatOuter3 {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.6; }
  20% { transform: translate(-25px, -15px) scale(1.15); opacity: 0.8; }
  40% { transform: translate(10px, -30px) scale(0.85); opacity: 0.4; }
  80% { transform: translate(15px, 10px) scale(1.1); opacity: 0.7; }
}

@keyframes floatOuter4 {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.5; }
  35% { transform: translate(20px, -10px) scale(0.9); opacity: 0.7; }
  70% { transform: translate(-15px, -20px) scale(1.3); opacity: 0.4; }
}

@keyframes crossHorizontal {
  0% { transform: translateX(0) scale(0.8); opacity: 0; }
  10% { opacity: 0.6; }
  50% { transform: translateX(200px) scale(1.2); opacity: 0.8; }
  90% { opacity: 0.6; }
  100% { transform: translateX(400px) scale(0.8); opacity: 0; }
}

@keyframes crossVertical {
  0% { transform: translateY(0) scale(0.7); opacity: 0; }
  15% { opacity: 0.7; }
  50% { transform: translateY(180px) scale(1.1); opacity: 0.9; }
  85% { opacity: 0.7; }
  100% { transform: translateY(360px) scale(0.7); opacity: 0; }
}

@keyframes diagonalCross1 {
  0% { transform: translate(0, 0) scale(0.9); opacity: 0; }
  12% { opacity: 0.6; }
  25% { transform: translate(100px, -50px) scale(1.1); opacity: 0.8; }
  50% { transform: translate(200px, -100px) scale(1.3); opacity: 0.9; }
  75% { transform: translate(300px, -150px) scale(1.1); opacity: 0.7; }
  88% { opacity: 0.5; }
  100% { transform: translate(400px, -200px) scale(0.9); opacity: 0; }
}

@keyframes diagonalCross2 {
  0% { transform: translate(0, 0) scale(0.8); opacity: 0; }
  15% { opacity: 0.7; }
  30% { transform: translate(120px, 40px) scale(1.2); opacity: 0.8; }
  50% { transform: translate(200px, 80px) scale(1.4); opacity: 0.9; }
  70% { transform: translate(280px, 120px) scale(1.1); opacity: 0.6; }
  85% { opacity: 0.4; }
  100% { transform: translate(400px, 200px) scale(0.8); opacity: 0; }
}

/* Mobile-Specific Simplified Keyframes */
@keyframes floatOuter1-mobile {
  50% { transform: translate(-15px, -20px) scale(1.1); }
}

@keyframes floatOuter2-mobile {
  50% { transform: translate(15px, -25px) scale(0.8); }
}

@keyframes floatOuter3-mobile {
  50% { transform: translate(-25px, -15px) scale(1.15); }
}

@keyframes buttonPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

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

/* --- Theme Toggle as Nav Item --- */
.theme-toggle-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px; /* Match icon size */
  height: 24px; /* Match icon size */
}

.theme-toggle-link .sun-icon,
.theme-toggle-link .moon-icon {
  font-size: 24px;
  transition: opacity 0.8s ease, transform 0.8s ease;
  position: absolute;
  top: 0%;
  left: 0%;
  transform: translate(-50%, -50%);
}

.theme-toggle-link .moon-icon {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.theme-toggle-link .sun-icon {
  opacity: 0;
  transform: scale(0.5) rotate(-90deg);
  display: block !important;
}

body.light-theme .theme-toggle-link .moon-icon {
  opacity: 0;
  transform: scale(0.5) rotate(90deg);
}

body.light-theme .theme-toggle-link .sun-icon {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.theme-toggle-link:hover i {
  color: var(--accent-purple);
}

/* Remove underline effect from theme toggle button */
.theme-toggle-link::after {
  display: none !important;
}

/* Light theme adjustments */
body.light-theme .nav-bar,
body.light-theme .banner .banner-content,
body.light-theme .banner-mobile .banner-content,
body.light-theme .about .about-content,
body.light-theme .skills .skill-content .skill-set,
body.light-theme .contact .contact-form {
  background: rgba(255, 255, 255, 0.33);
  backdrop-filter: blur(2px);
  border-color: var(--bg-medium);
}

body.light-theme .skills .skill-content .skill-set .skill-card {
  background-color: var(--bg-medium);
  border-color: var(--bg-dark);
}

body.light-theme .skills .skill-content .skill-set .skill-card:hover {
  background-color: var(--text-dark);
  color: var(--text-light);
}

body.light-theme .title-main,
body.light-theme .nav-bar .logo,
body.light-theme .nav-bar ul li a {
  color: var(--text-light);
}

body.light-theme .nav-bar ul li a:hover,
body.light-theme .nav-bar .logo:hover,
body.light-theme .footer-links ul li a:hover {
  color: var(--accent-purple);
}

body.light-theme .skills .skill-content .skill-set h2 {
  color: var(--text-light);
}

body.light-theme button {
  background-color: var(--accent-purple);
  color: white;
}

body.light-theme .contact .contact-form .text-box input,
body.light-theme .contact .contact-form .text-box textarea {
  background: rgba(255, 255, 255, 0.5);
  color: var(--text-light);
  border-color: var(--bg-medium);
}

/* --- Light Theme Specific Hovers --- */
body.light-theme .banner .banner-content .banner-left:hover,
body.light-theme .banner-mobile .banner-content .banner-left:hover {
  background-color: rgba(124, 58, 237, 0.1); /* A very light purple tint */
  box-shadow: 0 8px 25px rgba(124, 58, 237, 0.2);
}

body.light-theme .projects .project-card .project-actions {
  background-color: rgba(124, 58, 237, 0.1); /* Light purple tint */
  border-color: var(--bg-medium);
}

/* --- Enhanced Light Theme Styles --- */
body.light-theme .nav-bar,
body.light-theme .banner .banner-content,
body.light-theme .banner-mobile .banner-content,
body.light-theme .about .about-content,
body.light-theme .skills .skill-content .skill-set,
body.light-theme .contact .contact-form {
  background: rgba(255, 255, 255, 0.33);
  backdrop-filter: blur(3px);
  border-color: rgba(124, 58, 237, 0.15);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

body.light-theme .skills .skill-content .skill-set .skill-card {
  background-color: rgba(226, 232, 240, 0.8);
  border-color: rgba(124, 58, 237, 0.2);
}

body.light-theme .skills .skill-content .skill-set .skill-card:hover {
  background-color: var(--accent-purple);
  color: white;
  border-color: var(--accent-purple);
}

body.light-theme .projects .project-card {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(124, 58, 237, 0.15);
}

body.light-theme .projects .project-card .project-actions {
  background-color: rgba(255, 255, 255, 0.95);
  border-color: rgba(124, 58, 237, 0.2);
}

body.light-theme .contact .contact-form .text-box input,
body.light-theme .contact .contact-form .text-box textarea {
  background: rgba(255, 255, 255, 0.8);
  color: var(--text-light);
  border-color: rgba(124, 58, 237, 0.2);
}

body.light-theme .contact .contact-form .text-box input:hover,
body.light-theme .contact .contact-form .text-box textarea:hover,
body.light-theme .contact .contact-form .text-box input:focus,
body.light-theme .contact .contact-form .text-box textarea:focus {
  background: rgba(255, 255, 255, 1);
  border-color: var(--accent-purple);
}

body.light-theme .scroll-icon .mouse-icon {
  border-color: var(--text-light);
  color: var(--text-light);
}

body.light-theme .fixed-robot-container .waving-robot {
  filter: brightness(0.95) contrast(1.1);
}
.mobile-theme-toggle {
  display: none;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1001;
  width: 30px;
  height: 30px;
  background: none;
  border: none;
  cursor: pointer;
  transition: transform 0.3s ease;
  padding: 0;
  align-items: center;
  justify-content: center;
}
.mobile-theme-toggle:hover {
  background: none;
  transform: scale(1.15);
  box-shadow: none;
}
.mobile-theme-toggle i {
  font-size: 24px;
  transition: opacity 0.8s ease, transform 0.8s ease;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.mobile-theme-toggle .moon-icon {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1) rotate(0deg);
  color: #ffffff;
}
.mobile-theme-toggle .sun-icon {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.5) rotate(-90deg);
  color: #000000;
}
body.light-theme .mobile-theme-toggle {
  background: none;
}
body.light-theme .mobile-theme-toggle:hover {
  background: none;
}
body.light-theme .mobile-theme-toggle .moon-icon {
  transform: translate(-50%, -50%) scale(0.5) rotate(90deg);
  opacity: 0;
}
body.light-theme .mobile-theme-toggle .sun-icon {
  transform: translate(-50%, -50%) scale(1) rotate(0deg);
  opacity: 1;
  color: #000000;
}
@media (max-width: 768px) {
  .mobile-theme-toggle {
    display: flex;
  }
}