*{
  margin:0;
  padding:0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

body{
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: black;
    color: #e7e7e7;
    min-height: 100vh;
    line-height: 1.5;
}

.image-gradient{
    position: absolute;
    top:0;
    right:0;
    opacity:0.5;
    z-index: -1;
}

.layer-blur{
    height:0;
    width:30rem;
    position: absolute;
    top:20%;
    right:0;
    box-shadow: 0 0 700px 15px white;
    rotate:30deg;
    z-index: -1;
}

.container{
    width:100%;
    margin:0 auto;
    padding: 0 2rem;
    position:relative;
    overflow:hidden;
}

header{
    display: flex;
    justify-content:space-between;
    align-items:center;
    padding: 1rem 5rem;
    position:relative;
    z-index: 1000;
}

header h1{
  font-size: 2.8rem;
  font-weight: bold;
  background: linear-gradient(
    90deg,
    #656565,
    #7f42a7,
    #6600c5,
    #5300a0,
    #757575
  );
  background-size: 500% auto;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: textShine 5s ease-in-out infinite alternate;
}

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

nav{
    display:flex;
    align-items:center;
    gap:3rem;
    z-index: 1001;
    position:relative;
}

nav a{
    font-size: 1rem;
    letter-spacing: 0.1rem;
    transition: color 0.2s ease;
    text-decoration: none;
    color: inherit;
}

nav a:hover{
    color : #a7a7a7;
}

.nav-btn{
    background-color: #a7a7a7;
    color: black;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    border: none;
    font-size: 1rem;
    font-weight: 500;
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.nav-btn:hover{
    background-color: white;
}

main{
    display:flex;
    flex-direction: row;
    justify-content: center;
    min-height: calc(90vh - 6rem);
    margin-bottom: 3%
}

.content{
    width: 40%;
    margin-left: 10%;
    z-index: 999;
    height: calc(90vh - 6rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tag-box{
    display: block;
    position: relative;
    width: 18rem;
    height: 2.5rem;
    border-radius: 50px;
    background: linear-gradient(to right, #656565, #7f42a7, #6600c5, #5300a0, #757575, #656565);
    background-size: 200%;
    animation: animationGradient 2.5s linear infinite;
    box-shadow: 0015px rgba(255, 255, 255, 0.3);
    margin-bottom: 1.5rem;
}

@keyframes animationGradient{
    to{
        background-position: 200%;
    }
}

.tag-box .tag{
    position: absolute;
    inset: 3px 3px 3px 3px;
    background-color: black;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.5s ease;
    cursor: pointer;
}

.tag-box .tag:hover{
    color:#a7a7a7;
}

.content h1{
    font-size: 4rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    margin: 1rem 0;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(128, 128 128, 0.418);
}

.description{
    font-size:1.2rem;
    letter-spacing:0.05em;
    max-width:35rem;
    color: gray;  
}

.connect-wrapper {
  display: flex;
  align-items: center;
}

.btn-connect {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  padding: 0.3rem 1rem;
  padding-top: 0.6rem;
  padding-bottom: 0.4rem;
  padding-left: 2rem;
  border-radius: 2rem;
  background: white;
  color: black;
  font-weight: bold;
  font-size: 1.2rem;
  border: none;
  cursor: pointer;
  position: relative;
  transition: width 0.4s ease;
  overflow: hidden;
}

/* .btn-connect:hover{
    background-color: #a7a7a7;
} */


.btn-connect.expanded {
  min-width: 300px;
}

.btn-connect .arrow {
  font-size: 1.2rem;
}

.icon-container {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  transition: opacity 0.3s ease;
}

.icon-container img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}

.hidden {
  opacity: 0;
  width: 0;
  overflow: hidden;
  pointer-events: none;
}

.btn-connect.expanded .icon-container {
  opacity: 1;
  width: auto;
  pointer-events: auto;
}

.robot-3d {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 170%;
    height: 170%;
    transform: translate(-50%, -50%);
    object-fit: contain;
    padding-bottom: 12%;
}

.robot-container {
    position: relative;
    width: 40%;
    height: calc(90vh - 6rem);
    margin-right: 10%;
    display: flex;
    justify-content: center;
    align-items: center;
}


.journey-section {
  position: relative;
  height: 800vh;
  background: url('/assets/stars-bg.jpg') repeat;
  background-size: cover;
  z-index: 1;
}

.scroll-area {
  position: relative;
  width: 100%;
  height: 100%;
}

.sticky-wrapper {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.circle {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  background: linear-gradient(to right, #7f42a7, #6600c5, #5300a0); /* Linear, static */
  box-shadow: 0 0 40px 10px rgba(127, 66, 167, 0.8), 0 0 20px 5px #7f42a7 inset;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: width 0.2s cubic-bezier(0.4, 0, 0.2, 1), height 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.circle::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}

.circle.small::after {
  opacity: 1;
  background: linear-gradient(
    120deg,
    #5300a0 0%,
    #6600c5 40%,
    #7f42a7 50%,
    rgba(255,255,255,0.4) 60%,
    rgba(255,255,255,0) 100%
  );
  background-size: 200% 100%;
  animation: shimmer-move 1.8s linear infinite;
}

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

.circle.small {
  background: conic-gradient(from 0deg, #7f42a7, #6600c5, #5300a0, #7f42a7);
  animation: circleGradientSpin 2.5s linear infinite;
  width: 50px;
  height: 50px;
  font-size: 0;
}

@keyframes circleGradientSpin {
  to {
    transform: rotate(360deg);
  }
}

.circle-content .text {
  font-size: 1rem;
  color: #000;
  font-weight: bold;
}

.step-button {
  display: none;
  margin-top: 10px;
  font-size: 1.2rem;
  cursor: pointer;
}

.circle.down-btn .step-button {
  display: block;
}

.timeline-path {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
}

.timeline-path::before {
  content: "";
  position: absolute;
  left: 50%;
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, transparent 5%, #aaa 50%, transparent 95%);
}

.timeline-entry {
    position: absolute;
    width: 100%;
    display: flex;
    justify-content: center;
    transition: 0s ease-in-out;
}

.timeline-entry.current {
    z-index: 12;
}

.timeline-entry:not(.current) .entry-border-float {
  background: linear-gradient(to right, #404040, #503169, #411d61, #361b4f, #4d4d4d, #404040); /* Duller version of your gradient */
  animation: animateBorder 2s linear infinite; /* Slower animation for inactive state */
}


.entry-inner-float {
    background-color: #000000;
    /* ... other styles ... */
}

.entry-content.left {
    position: absolute;
    top: 0;
    /* right: calc(50% + 15em); */
    right: 50%;
    padding: 0 5%;
}


.timeline-entry:not(.current) .entry-inner-float h2,
.timeline-entry:not(.current) .entry-inner-float p,
.timeline-entry:not(.current) .entry-inner-float .entry-media,
.timeline-entry:not(.current) .entry-inner-float .entry-logo img {
    opacity: 0.3; /* Adjust this value as desired */
    transition: opacity 0.1s ease-in-out;
}
/* Apply a reduced opacity to the gradient border only when the card is not active */


.entry-content {
    color: white;
    /* max-width: 400px; */
    /* padding: 20px; */
    border-radius: 10px;
}



.entry-content.right {
    position: absolute;
    top: 0;
    /* right: calc(50% + 15em); */
    left: 50%;
    padding: 0 5%;
}

/* Positions */
.process-1 { top: 15%; }
.process-2 { top: 25.83%; }
.process-3 { top: 36.67%; }
.process-4 { top: 47.5%; }
.process-5 { top: 58.33%; }
.process-6 { top: 69.17%; }
.process-7 { top: 80%; }



/* === Floating Card with Animated Border === */
.entry-card-floating {
    /* position: relative; */
    /* max-width: 40rem; */
    /* min-width: 18rem; */
    /* width: 35rem; */
    /* margin: 0; */
    /* padding: 0; */
    /* box-sizing: border-box; */
    z-index: 12;
}


.entry-border-float {
  border-radius: 0.7rem;
  background: linear-gradient(to right, #656565, #7f42a7, #6600c5, #5300a0, #757575, #656565);
  background-size: 200%;
  padding: 0.2rem;
  animation: animateBorder 4s linear infinite;
  box-shadow: 0 0 0.75rem rgba(127, 66, 167, 0.25);
}

@keyframes animateBorder {
  to {
    background-position: 200%;
  }
}


.entry-inner-float {
    background-color: #000000;
    border-radius: 0.7rem;
    padding: 1.3rem 1.1rem;
    display: flex
;
    flex-direction: row;
    align-items: flex-start;
    gap: 1.1rem;
    color: white;
    /* min-height: 7.5rem; */
}

.entry-logo {
  flex-shrink: 0;
}

.entry-logo img {
  width: 3.2rem;       /* ~51px */
  height: 3.2rem;
  object-fit: cover;
  border-radius: 0.5rem;
  background: white;
  display: block;
}

.entry-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.2rem;
  text-align: left;
}

.entry-info h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.2em 0;
}

.entry-info .company,
.entry-info .meta,
.entry-info .location {
  font-size: 0.95rem;
  color: #bbb;
  margin: 0;
  line-height: 1.3;
}

.desc-short {
  display: block;
  margin-top: 0.5rem;
  font-size: 1rem;
  color: #eee;
  line-height: 1.5em;
  text-align: left;
}

.desc-full {
  display: none;
  margin-top: 0.5rem;
}

.desc-short.expanded .desc-text {
  display: none;
}

.desc-short.expanded .desc-full {
  display: block;
}

.read-more {
  color: #9a36dd;
  font-weight: 500;
  cursor: pointer;
  margin-left: 0.3rem;
  position: relative;
}

.entry-media {
  margin-top: 0.7rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.entry-media a {
  font-size: 0.9rem;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.entry-media img {
  width: 5.2rem;      /* ~51px */
  height: 3rem;     /* ~34px */
  border-radius: 0.35rem;
  border: 1px solid #999;
  object-fit: cover;
}

/* Truncate to 2 lines with ellipsis */
.desc-text {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 3em;
}

/* Read more style */
.read-more {
  color: #b360eb;
  font-weight: 500;
  cursor: pointer;
  margin-left: 0.3rem;
  position: relative;
}

/* Modal styles */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(8px); /* Blurs the background */
  align-items: center;
  justify-content: center;
}

.modal.show {
  display: flex;
}

.modal-content {
  background: #111;
  color: white;
  max-width: 600px;
  width: 90vw;
  padding: 2rem;
  border-radius: 12px;
  position: relative;
  box-shadow: 0 0 40px #7f42a7bb;
  animation: modalIn 0.3s cubic-bezier(.5,1.5,.5,1);
}

@keyframes modalIn {
  from { transform: scale(0.93) translateY(30px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

.close-btn {
  position: absolute;
  top: 12px; right: 20px;
  font-size: 2rem;
  cursor: pointer;
  color: #aaa;
  transition: color 0.2s;
  z-index: 10;
}

.close-btn:hover {
  color: #fff;
}



    .education-section {
      margin-top: -7rem; /* Added margin to prevent collision */
      padding: 18rem 2rem;
      position: relative;
      overflow: hidden;
    }
    .edu-slider-container {
      position: relative;
      max-width: 1100px;
      margin: 0 auto;
      margin-bottom: -10rem;
      overflow: visible;
    }
    .edu-slider-track {
      height: 6px;
      background: linear-gradient(
        90deg,
        #656565,
        #7f42a7,
        #6600c5,
        #5300a0,
        #757575,
        #656565
      );
      border-radius: 3px;
      margin-bottom: 4rem;
      position: relative;
    }
    .edu-slider-pointer-img {
      position: absolute;
      left: 0;
      bottom: 0;
      width: 56px;
      height: 90px;
      object-fit: contain;
      transform-origin: 0% 100%; /* Left bottom */
      transform: scale(1);
      z-index: 10;
      pointer-events: none;
      transition: transform 0.2s;
    }
    .edu-cards-container {
      display: flex;
      justify-content: center;
      gap: 2rem;
      flex-wrap: wrap;
    }
    .edu-card {
      flex: 0 0 320px;
      border-radius: 1rem;
      background: linear-gradient(120deg, #656565, #7f42a7, #6600c5, #5300a0);
      background-size: 200%;
      padding: 3px;
      padding-bottom: 0rem;
      opacity: 0;
      box-shadow: 0 0 15px rgba(127, 66, 167, 0.6);
      transform: translateY(20px);
      transition: opacity 0.6s ease, transform 0.6s ease;
    }
    .edu-card.revealed {
      opacity: 1;
      transform: translateY(0);
    }
    .edu-card-inner {
      background: #000000;
      border-radius: 1rem;
      border-bottom-left-radius: 0;
      border-bottom-right-radius: 0;
      padding: 1.5rem;
      display: flex;
      gap: 1.2rem;
      height: 130%;
    }
    .edu-logo img {
      width: 50px;
      height: 50px;
      border-radius: 8px;
      background: white;
      object-fit: cover;
    }
    .edu-info {
      flex: 1;
    }
    .edu-info h3 {
      font-size: 1.3rem;
      margin-bottom: 0.4rem;
      color: #fff;
    }
    .edu-company {
      font-size: 0.95rem;
      color: #bbb;
      margin-bottom: 0.3rem;
    }
    .edu-dates {
      font-size: 0.9rem;
      color: #a084ca;
      margin-bottom: 0.8rem;
    }
    .edu-desc {
      font-size: 0.95rem;
      color: #eee;
      line-height: 1.5;
    }

    .skills-section {
      max-width: 1100px;
      width: 100%;
      padding: 0px 16px 60px 16px;
      margin: 0 auto;
      text-align: center;
    }
    .section-title {
        font-size: 5rem;
        font-weight: bold;
        background: linear-gradient(
            90deg,
            #656565,
            #7f42a7,
            #6600c5,
            #5300a0,
            #757575
        );
        background-size: 500% auto;
        background-clip: text;
        -webkit-background-clip: text;
        color: transparent;
        -webkit-text-fill-color: transparent;
        animation: textShine 5s ease-in-out infinite alternate;
    }
    .brick-wall {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
      gap: 18px 14px;
      margin: 0 auto;
      max-width: 900px;
      padding: 8px 0 0 0;
    }
    .brick {
      position: relative;
      aspect-ratio: 6.5/4;
      border-radius: 8px;
      background: #000000;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      opacity: 0;
      transform: scale(0.85) rotate(2deg);
      box-shadow: 0 4px 24px 0 rgba(127,66,167,0.13);
      transition: all 0.5s cubic-bezier(.5,1.5,.5,1), opacity 0.45s;
      overflow: hidden;
      z-index: 1;
      border: 2px solid transparent;
      background-clip: padding-box;
      /* padding-top: 2em;
      padding-bottom: 2em; */
    }
    .brick.revealed {
      opacity: 1;
      transform: scale(1) rotate(0deg);
    }
    .brick::before {
      content: "";
      position: absolute;
      inset: 0;
      border-radius: 8px;
      z-index: 2;
      pointer-events: none;
      background: linear-gradient(to right, #7f42a7, #6600c5, #5300a0, #656565);
      -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
      mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
      -webkit-mask-composite: xor;
      mask-composite: exclude;
      padding: 2px;
      background-clip: border-box;
      opacity: 0.8;
    }
    .logo-box {
      background: #fff;
      border-radius: 0.5rem;
      padding: 7px 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 10px;
      box-shadow: 0 2px 8px 0 rgba(127,66,167,0.10);
      min-width: 44px;
      min-height: 44px;
      max-width: 60px;
      max-height: 60px;
    }
    .brick img {
      width: 36px;
      height: 36px;
      object-fit: contain;
      background: none;
      border-radius: 0.3rem;
      display: block;
      margin: 0 auto;
      box-shadow: none;
    }
    .brick span {
      font-size: 1rem;
      font-weight: 600;
      text-align: center;
      text-transform: uppercase;
      letter-spacing: 0.6px;
      color: #fff;
      text-shadow: 0 1px 8px #1a1a2e55;
      line-height: 1.2;
      z-index: 3;
      position: relative;
    }
    .brick:hover {
      transform: translateY(-6px) scale(1.04) rotate(-1deg);
      box-shadow: 0 8px 32px 0 #7f42a7cc, 0 2px 12px 0 #1e90ff33;
    }
    @media (max-width: 900px) {
      .section-title { font-size: 3rem; }
      .brick-wall { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
      .brick { padding: 12px 5px 8px 5px; }
      .logo-box { min-width: 32px; min-height: 32px; max-width: 40px; max-height: 40px; }
      .brick img { width: 22px; height: 22px; }
    }
    @media (max-width: 600px) {
      .brick-wall { grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); }
      .section-title { font-size: 2rem; }
      .brick span { font-size: 0.82rem; }
    }

    .projects-section-main {
      display: flex;
      flex-direction: column;
      align-items: center;
      width: 100%;
      margin-top: 3%;
    }

    .projects-title-main {
      width: 100%;
      text-align: center;
      user-select: none;
      letter-spacing: 0.03em;
      font-size: 5rem;
      font-weight: bold;
      background: linear-gradient(
        90deg,
        #656565,
        #7f42a7,
        #6600c5,
        #5300a0,
        #757575
      );
      background-size: 500% auto;
      background-clip: text;
      -webkit-background-clip: text;
      color: transparent;
      -webkit-text-fill-color: transparent;
      animation: textShine 5s ease-in-out infinite alternate;
      margin-bottom: 2%;
    }

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

    .projects-wrapper {
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 10%;
    }

    .projects-container {
      height: 400px;
      display: flex;
      flex-wrap: nowrap;
      justify-content: start;
    }

    .projects-card {
      width: 80px;
      border-radius: 1rem;
      background-size: cover;
      background-position: center;
      cursor: pointer;
      overflow: hidden;
      margin: 0 10px;
      display: flex;
      align-items: flex-end;
      transition: .6s cubic-bezier(.28,-0.03,0,.99);
      box-shadow: 0px 10px 30px -5px rgba(0,0,0,0.8);
      min-width: 80px;
      position: relative;
    }

    .projects-row {
      color: white;
      display: flex;
      flex-wrap: nowrap;
      width: 100%;
      height: 100%;
      align-items: flex-end;
    }

    .projects-icon {
      background: rgb(0, 0, 0);
      color: white;
      border-radius: 50%;
      width: 50px;
      height: 50px;
      display: flex;
      justify-content: center;
      align-items: center;
      margin: 15px;
      font-size: 1.3em;
      z-index: 2;
      position: relative;
    }

    /* Collapsed state: show only icon */
    .projects-description,
    .projects-image {
      display: none;
    }
    input[name="projects-slide"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

    /* Expanded card */
input[name="projects-slide"]:checked + label {
    width: 600px;
    min-width: 320px;
    box-shadow: 0px 10px 48px 0px #7f42a7aa;
    z-index: 10;
    border-radius: 2rem;
    background: none;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0;
    
    /* ADDED: This will prevent the active card from tilting */
    transform: none;
}
input[name="projects-slide"]:checked + label:hover {
  /* Enlarge the active card on hover. Adjust the scale value as needed. */
  transform: scale(1.05);

  /* Ensure the shadow remains */
  box-shadow: 0px 10px 48px 0px #7f42a7aa;

  /* Bring the card to the front */
  z-index: 15;
}
    input[name="projects-slide"]:checked + label .projects-row {
      width: 100%;
      height: 100%;
      align-items: stretch;
      display: flex;
      flex-direction: row;
      position: relative;
      padding: 0;
    }
    input[name="projects-slide"]:checked + label .projects-icon {
      display: none;
    }
    input[name="projects-slide"]:checked + label .projects-image {
      display: block;
      width: 50%;
      min-width: 200px;
      height: 100%;
      object-fit: cover;
      border-radius: 1rem 0 0 1rem;
      background: #222;
      position: relative;
      z-index: 1;
    }
input[name="projects-slide"]:checked + label .projects-description {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    width: 50%;
    height: 100%;
    padding: 38px 38px 38px 38px;
    background: rgba(10, 10, 10, 0.97);
    border-radius: 0 1rem 1rem 0;
    color: #fff;
    position: relative;
    z-index: 2;
    box-sizing: border-box;
    /* Added CSS for delayed animation */
    animation: fadeIn 0.4s forwards;
    animation-delay: 0.4s; /* Wait for 0.4s before starting the animation */
    opacity: 0; /* Ensures it's invisible before the animation starts */
}
    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(20px);}
      to   { opacity: 1; transform: translateY(0);}
    }
    .projects-description h4 {
      margin: 0 0 12px 0;
      font-size: 1.5rem;
      text-transform: uppercase;
      font-weight: 700;
      letter-spacing: 0.06em;
      color: #ebeaea;
      text-shadow: 0 0 8px #1e90ff44;
    }
    .projects-description p {
      margin: 0 0 24px 0;
      color: #eaeaea;
      font-size: 1.08rem;
      text-shadow: 0 0 8px #18182944;
    }
    .projects-explore-btn {
      margin-top: auto;
      padding: 10px 28px;
      border: none;
      border-radius: 2rem;
      background: black;
      color: #181829;
      font-weight: bold;
      font-size: 1rem;
      letter-spacing: 0.04em;
      cursor: pointer;
      box-shadow: 0 2px 12px #7f42a744;
      transition: background 0.2s, color 0.2s, transform 0.2s;
      outline: none;
    }
    .projects-explore-btn:hover, .projects-explore-btn:focus {
      background: rgba(10, 10, 10, 0.97);;
      color: #ffffff;
      transform: translateY(-2px) scale(1.04);
      box-shadow: 0 4px 24px #00000044;
    }
    .projects-card {
        /* Existing rules */
        /* ... */
        transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
        /* This will make both the enlarging and the shadow effect faster */
    }
.projects-card:hover {
    /* Existing rules */
    box-shadow: 0px 10px 48px 0px #7f42a7aa;
    z-index: 5;
    
    /* MODIFIED: Combines scale and rotate for a tilted enlarging effect */
    transform: scale(1.1) rotate(-3deg);
}
    /* Card backgrounds for collapsed state */
    .projects-card[for="projects-c1"] { background-image: url('images/best_candidate_finder.jpg'); }
    .projects-card[for="projects-c2"] { background-image: url('images/Chatbot_for_Customer_Support.jpg'); }
    .projects-card[for="projects-c3"] { background-image: url('images/Movie_Recommendation_System.jpg'); }
    .projects-card[for="projects-c4"] { background-image: url('images/Stock_Price_Prediction_Model.png'); }
    .projects-card[for="projects-c5"] { background-image: url('images/Dog_and_Cat_Classifier.jpg'); }
    .projects-card[for="projects-c6"] { background-image: url('images/Multilingual_Audio_Classifier.jpg'); }
    .projects-card[for="projects-c7"] { background-image: url('images/python_chess_game.jpg'); }
    .projects-card[for="projects-c8"] { background-image: url('images/Handwritten_Digits_Image_Cla.jpg'); }
    /* .projects-card[for="projects-c9"] { background-image: url('images/padmavati_parval.jpg'); } */

    /* Remove bg image in expanded state, show only left image */
    input[name="projects-slide"]:checked + label {
      background-image: none !important;
    }

    /* Responsive for smaller screens */
    @media (max-width: 900px) {
      .projects-container { height: 300px; }
      input[name="projects-slide"]:checked + label { width: 340px; }
      input[name="projects-slide"]:checked + label .projects-description { padding: 18px; }
      input[name="projects-slide"]:checked + label .projects-image { min-width: 100px; }
    }
    @media (max-width: 600px) {
      .projects-container { height: 180px; }
      input[name="projects-slide"]:checked + label { width: 160px; }
      input[name="projects-slide"]:checked + label .projects-description { padding: 8px; font-size: .9rem; }
      input[name="projects-slide"]:checked + label .projects-image { min-width: 60px; }
      .projects-title-main { font-size: 2rem; }
    }

.projects-explore-box {
    position: relative;
    width: 10rem;           /* Adjust width as needed */
    height: 2.2rem;         /* Adjust height as needed */
    border-radius: 50px;
    background: linear-gradient(to right, #656565, #7f42a7, #6600c5, #5300a0, #757575, #656565);
    background-size: 200%;
    animation: projectsAnimationGradient 2.5s linear infinite;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
    margin-top: 1.2rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes projectsAnimationGradient {
    to {
        background-position: 200%;
    }
}

.projects-explore-btn {
    position: absolute;
    inset: 3px 3px 3px 3px;
    background-color: rgba(10, 10, 10, 0.97);;
    border-radius: 50px;
    border: none;
    color: #ffffff;
    font-weight: bold;
    font-size: 1rem;
    letter-spacing: 0.04em;
    display: flex;
    align-items: center;
    justify-content: center;
    width: calc(100% - 6px);
    height: calc(100% - 6px);
    cursor: pointer;
    transition: 0.3s ease, color 0.3s;
    z-index: 1;
    box-shadow: 0 2px 12px #7f42a744;
    outline: none;
    padding: 0;
}

.projects-explore-btn:hover,
.projects-explore-btn:focus {
    color: #ffffff;
    background-color: rgba(10, 10, 10, 0.97);;
}


/* Contact Section Styles */
.contact-section {
  width: 100vw;
  min-height: 100vh;
  background: black;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 0 40px 0;
  box-sizing: border-box;
}

.contact-glass-card {
  background: rgba(30, 30, 50, 0.82);
  border-radius: 2.2rem;
  border-top-right-radius: 0px;
  border-bottom-left-radius: 0px;
  box-shadow: 0 16px 64px 0 #1e90ff33, 0 2px 20px 0 #7f42a7aa;
  padding: 48px 40px 40px 40px;
  max-width: 430px;
  width: 100%;
  position: relative;
  border: none;
  background-clip: padding-box;
  overflow: hidden;
}
.contact-glass-card::before {
  content: "";
  position: absolute;
  inset: -3px;
  z-index: 0;
  border-radius: 1;
    background: linear-gradient(
    120deg,
    #656565,
    #7f42a7,
    #6600c5,
    #5300a0
  );
  background-size: 300%;
  filter: blur(0.5px);
  animation: contactBorderAnim 4s linear infinite;
}
@keyframes contactBorderAnim {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}
.contact-glass-card > * {
  position: relative;
  z-index: 1;
}

.contact-title {
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
  background: rgb(255, 255, 255);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  text-align: center;
}

.contact-subtitle {
  font-size: 1.0rem;
  color: #eaeaea;
  margin-bottom: 28px;
  text-align: center;
  opacity: 0.92;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group {
  position: relative;
  margin-bottom: 8px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 18px 16px 14px 16px;
  border-radius: 0.7rem;
  border: 2px solid #7f42a7;
  background: rgba(255, 255, 255, 0.95);
  color: #000000;
  font-size: 1.07rem;
  font-family: inherit;
  outline: none;
  transition: border 0.2s, box-shadow 0.2s;
  resize: none;
  box-shadow: 0 2px 12px #7f42a744;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: #ffffff;
  box-shadow: 0 0 0 2px #ffe06655;
}
.form-group label {
  position: absolute;
  top: 18px;
  left: 18px;
  color: #b0b0ba;
  font-size: 1rem;
  pointer-events: none;
  transition: 0.2s;
  background: transparent;
  padding: 0 4px;
}
.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
  top: -10px;
  left: 12px;
  color: #ffffff;
  font-size: 0.92rem;
  background: #181829;
  padding: 0 6px;
  border-radius: 8px;
}

.contact-btn-box {
  display: flex;
  justify-content: center;
  margin-top: 12px;
}

.contact-btn {
  position: relative;
  padding: 0.7em 2.5em;
  border: none;
  border-radius: 50px;
  background: rgb(255, 255, 255);
  color: #000000;
  font-weight: bold;
  font-size: 1.08rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 0 2px 12px #7f42a744;
  transition: background 0.2s, color 0.2s, transform 0.2s;
  outline: none;
  z-index: 1;
  overflow: hidden;
}
.contact-btn:hover,
.contact-btn:focus {
  background: rgb(255, 255, 255);
  color: #000000;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 4px 24px #1e90ff44;
}

/* Responsive */
@media (max-width: 780px) {
  .contact-glass-card {
    padding: 28px 8px 24px 8px;
    max-width: 98vw;
  }
  .contact-title { font-size: 1.5rem; }
}


.circle-text {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 1.2rem;
  font-weight: bold;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.3s;
}

.circle-text-end {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 1rem;
  font-weight: bold;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.3s;
}

#circleTextEnd {
  opacity: 0;
}

/* Hide both texts when small */
.circle.small .circle-text {
  opacity: 0;
  transition: opacity 0.2s;
}

/* Show end text only when .end class is present (add/remove via JS) */
.circle.end #circleTextEnd {
  opacity: 1;
}
.circle.end #circleTextStart {
  opacity: 0;
}      
   
body {
  overflow-x: hidden;
}

.footer-glassmini {
  width: 100vw;
  padding: 0;
  margin: 0;
  background: transparent;
  position: relative;
  z-index: 10;
  border-top: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.footer-glassmini-inner {
  max-width: 700px;
  margin: 0 auto;
  padding: 12px 8px 6px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,0.05);
  border-radius: 0.8em 0.8em 0 0;
  box-shadow: 0 2px 16px 0 #7f42a722;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.footer-glassmini-social {
  display: flex;
  gap: 16px;
  margin-bottom: 2px;
}
.footer-glassmini-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.07);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  box-shadow: 0 1px 8px #7f42a744;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  border: 1.5px solid rgba(255,255,255,0.18);
}
.footer-glassmini-icon:hover {
  background: rgba(255,255,255,0.18);
  transform: translateY(-2px) scale(1.10);
  box-shadow: 0 2px 16px #1e90ff44;
}
.footer-glassmini-copy {
  color: #e6e6e6;
  font-size: 0.98rem;
  text-align: center;
  letter-spacing: 0.02em;
  opacity: 0.85;
  margin-bottom: 2px;
}
@media (max-width: 500px) {
  .footer-glassmini-inner {
    padding: 10px 2px 4px 2px;
    border-radius: 0.5em 0.5em 0 0;
  }
  .footer-glassmini-icon {
    width: 28px;
    height: 28px;
  }
  .footer-glassmini-copy {
    font-size: 0.9rem;
  }
}

.contact-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  margin-bottom: 5em;
  padding: 40px 20px;
  gap: 40px;
}

.contact-form-box {
  width: 100%;
  max-width: 450px;
}

.contact-image-box {
  flex: 1;
}

/* Hamburger button - hidden by default */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: 0.5rem;
  z-index: 1100;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  margin: 4px 0;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s;
}

/* Mobile nav - hidden by default */
.mobile-nav {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  background: #181829;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.2rem 1.5rem 1.2rem 1.5rem;
  box-shadow: 0 8px 32px #00000033;
  z-index: 1200;
}
.mobile-nav a,
.mobile-nav .nav-btn {
  color: #fff;
  text-decoration: none;
  font-size: 1.1rem;
  margin: 0.6rem 0;
  display: block;
  width: 100%;
  font-weight: 500;
  letter-spacing: 0.04em;
  background: none;
  border: none;
  text-align: left;
}
.mobile-nav .nav-btn {
  background: #a7a7a7;
  color: #181829;
  border-radius: 50px;
  padding: 0.7rem 1.2rem;
  font-size: 1.1rem;
  margin-top: 1rem;
  font-weight: bold;
}

@media (max-width: 768px) {
  .contact-container {
    flex-direction: column;
    align-items: center;
  }

  .contact-form-box,
  .contact-image-box {
    max-width: 100%;
    width: 100%;
  }
}



@media (max-width: 1200px) {
  header { gap: 2rem; padding: 1rem 1.2rem; }
  header h1 { font-size: 2rem; }
  nav { gap: 1.2rem; }
  nav a { font-size: 0.92rem; }
  .nav-btn { font-size: 0.92rem; padding: 0.6rem 1.2rem; }
}

/* 900px and below: shrink further, keep main gap */
@media (max-width: 900px) {
  header { gap: 1.2rem; padding: 0.6rem 0.6rem; }
  header h1 { font-size: 1.4rem; }
  nav { gap: 0.5rem; }
  nav a { font-size: 0.78rem; padding: 0 0.1rem; }
  .nav-btn { font-size: 0.7rem; padding: 0.4rem 0.7rem; }
}

/* 600px and below: hide nav, keep logo and button spaced */
@media (max-width: 670px) {
  nav { display: none !important; }
  .nav-btn { display: none !important; }
}

@media (max-width: 670px) {
  .main-nav {
    display: none !important;
  }
  .hamburger {
    display: flex;
  }
  .mobile-nav {
    display: none;
  }
  .mobile-nav.open {
    display: flex;
  }
  .mobile-hide {
    display: none !important;
  }
  header {
    padding-right: 0.2rem;
    padding-left: 0.2rem;
  }
  .logo, header h1 {
    font-size: 2rem;
  }
}


@media (max-width: 1300px) {

  main{
    min-height: calc(180vh - 6rem);
    display:flex;
    flex-direction:column-reverse;
    justify-content:space-between;
    align-items:center;        /* keep both blocks centred */
  }

  /* shrink the wrapper so model has room */
  .robot-container{
    width:60%;                   /* 40% → 60% so text and bot fit */
    height:80vh;                 /* a bit shorter on tablet */
    margin-right:0;
  }

  .robot-3d{
    /* keep absolute‑centre technique */
    width:200%;                  /* 170% → 140% */
    height:200%;
    top:50%;
    left:50%;
    transform:
      translate(-50%, -45%)      /* slight upward bias so base is visible */
      scale(.85);                /* overall size drop */
    object-fit:contain;
    padding-bottom: 40% ;
  }

  .content{                       /* optional: re‑centre hero text */
    width: 100%;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    text-align:center;
    margin-left: 0;
  }
}

@media(max-width:768px){
  main{
    min-height: calc(80vh - 6rem);
    max-width: none;
    display:flex;
    flex-direction:column-reverse;
    align-items:center;        /* keep both blocks centred */
  }

  /* shrink the wrapper so model has room */
  .robot-container{
    width:60%;                   /* 40% → 60% so text and bot fit */
    height:45vh;                 /* a bit shorter on tablet */
    margin-right: 0;
    padding-top: 4%;
  }

  .robot-3d{
    /* keep absolute‑centre technique */
    width:240%;                  /* 170% → 140% */
    height:240%;
    top:50%;
    left:50%;
    transform:
      translate(-50%, -45%)      /* slight upward bias so base is visible */
      scale(.85);                /* overall size drop */
    object-fit:contain;
    padding-bottom: 40%;
  }
  
  .content{
    padding-top: 5%;
    max-width: 30rem;
    height: 48%;
  }
  .content{
    display: flex;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-left: 0;
  }

  .content h1{
    font-size: 2.5rem;
    text-align: center;
  }
  .description{
    font-size: 1rem;
  }
  .btn-connect{
    font-size: 0.8rem;
    padding:0.5rem 1.2rem;
  }

}

@media(max-width:479px){
  main{
    min-height: calc(80vh - 6rem);
    max-width: none;
    display:flex;
    flex-direction:column-reverse;
    justify-content: space-between;
    align-items:center;        /* keep both blocks centred */
  }

  /* shrink the wrapper so model has room */
  .robot-container{
    width:60%;                   /* 40% → 60% so text and bot fit */
    height:35vh;                 /* a bit shorter on tablet */
    margin-right: 0;
    margin-bottom: 0%;
  }

  .robot-3d{
    /* keep absolute‑centre technique */
    width:300%;                  /* 170% → 140% */
    height:300%;
    top:50%;
    left:50%;
    transform:
      translate(-50%, -45%)      /* slight upward bias so base is visible */
      scale(.85);                /* overall size drop */
    object-fit:contain;
    padding-bottom: 100%;
  }

  .content{
    display: flex;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-left: 0;
  }

  .content h1{
    font-size: 2.5rem;
    text-align: center;
  }
  .description{
    font-size: 1rem;
    text-align: center;
  }
  .btn-connect{
    font-size: 0.8rem;
    padding:0.5rem 1.2rem;
  }

}

@media(max-width:750px){
  .entry-content.left,
  .entry-content.right {
    /* Keep existing styles, but remove opacity changes if any exist */
    right: 0;
    left: 0;
    z-index: 200;
  }
}

/* Hamburger button - hidden by default */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: 0.5rem;
  z-index: 1100;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  margin: 4px 0;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s;
}

/* Mobile nav - hidden by default */
.mobile-nav {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  background: #181829;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.2rem 1.5rem 1.2rem 1.5rem;
  box-shadow: 0 8px 32px #00000033;
  z-index: 1200;
}
.mobile-nav a,
.mobile-nav .nav-btn {
  color: #fff;
  text-decoration: none;
  font-size: 1.1rem;
  margin: 0.6rem 0;
  display: block;
  width: 100%;
  font-weight: 500;
  letter-spacing: 0.04em;
  background: none;
  border: none;
  text-align: left;
}
.mobile-nav .nav-btn {
  background: #a7a7a7;
  color: #181829;
  border-radius: 50px;
  padding: 0.7rem 1.2rem;
  font-size: 1.1rem;
  margin-top: 1rem;
  font-weight: bold;
}

/* Update the .modal-content rule */
/* Update the .modal-content rule */
.modal-content {
    background: #111;
    color: white;
    max-width: 600px;
    width: 90vw;
    padding: 2rem;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 0 40px #7f42a7bb;
    animation: modalIn 0.3s cubic-bezier(.5,1.5,.5,1);
    /* Remove overflow-y from here to prevent a double scrollbar */
    /* Adjust margin to give space from top/bottom of the screen */
    margin: 5vh auto;
}

/* Add this new rule to make the inner content scrollable */
#modalCardContent .entry-info {
    /* Set a max-height that leaves room for the card's logo and other elements */
    max-height: 70vh;
    overflow-y: auto; /* Adds a scrollbar only when needed */
    padding-right: 15px; /* Adds space for the scrollbar to prevent text overlap */
}

/* This is the new CSS rule for the scrollable description area */
.modal-scrollable-description {
    /* The max-height here is crucial. Let's make it a flexible value. */
    max-height: 40vh; /* This sets the max height to 40% of the viewport height. */
    overflow-y: auto; /* Adds a vertical scrollbar when content overflows */
    padding-right: 15px; /* Adds space for the scrollbar to prevent overlap */
    color: #eee;
    font-size: 1rem;
    line-height: 1.5em;
    text-align: left;
}

/* Keep .desc-short and .desc-text for the main layout */
.desc-short {
  display: block;
  margin-top: 0.5rem;
  font-size: 1rem;
  color: #eee;
  line-height: 1.5em;
  text-align: left;
}

.desc-text {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 3em;
}
/* Hide desktop nav and show hamburger below 664px */
@media (max-width: 664px) {
  .main-nav {
    display: none !important;
  }
  .hamburger {
    display: flex;
  }
  .mobile-nav {
    display: none;
  }
  .mobile-nav.open {
    display: flex;
  }
  .mobile-hide {
    display: none !important;
  }
  header {
    padding-right: 0.2rem;
    padding-left: 0.2rem;
  }
  .logo, header h1 {
    font-size: 1rem;
  }
}

/* Keep header horizontal at all times */
header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  position: relative;
}


@media (max-width: 1340px) {
  /* Container: stack projects vertically */
  .projects-container {
    flex-direction: column !important;
    align-items: center;
    height: auto;
    min-height: unset;
  }

  /* Each project card: full width, margin for spacing */
  .projects-card,
  input[name="projects-slide"]:checked + label {
    width: 98vw !important;
    min-width: 0 !important;
    max-width: 600px;
    margin: 16px 0;
    border-radius: 1.2rem;
    box-shadow: 0px 6px 24px -5px rgba(0,0,0,0.5);
    transition: width 0.4s, max-width 0.4s;
  }

  /* Expanded card: expand vertically, not horizontally */
    input[name="projects-slide"]:checked + label {
        flex-direction: column !important;
        width: 98vw !important;
        max-width: 600px;
        min-width: 0 !important;
        height: auto !important;
        border-radius: 1.2rem;
        padding: 0;
        /* ADDED: Re-apply the box shadow for mobile view */
        box-shadow: 0px 10px 48px 0px #7f42a7aa;
        /* ADDED: This will prevent the card from scaling on mobile */
        transform: none !important;
    }


  /* Project image: full width on top */
  input[name="projects-slide"]:checked + label .projects-image {
    width: 100% !important;
    min-width: 0 !important;
    height: 180px !important;
    border-radius: 1rem 1rem 0 0;
    object-fit: cover;
    margin-bottom: 0;
  }

  /* Project description: below image, full width */
  input[name="projects-slide"]:checked + label .projects-description {
    width: 100% !important;
    padding: 24px 18px 18px 18px;
    border-radius: 0 0 1rem 1rem;
    font-size: 1.05rem;
    box-sizing: border-box;
  }

  /* Hide horizontal-only elements if any */
  .projects-row {
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100%;
  }

  /* Adjust font sizes for smaller screens */
  .projects-title-main {
    font-size: 2.5rem;
  }
  .projects-description h4 {
    font-size: 1.2rem;
  }
  .projects-description p {
    font-size: 1rem;
  }
  .projects-explore-btn {
    font-size: 1rem;
    padding: 10px 18px;
  }
}

@media (max-width: 780px) {
  .contact-container {
    flex-direction: column;
    align-items: stretch;
    padding: 24px 0 24px 0;
    gap: 0;
  }

  .contact-image-box {
    display: none !important;
  }

  .contact-form-box {
    max-width: 100vw;
    width: 100vw;
    margin: 0;
    padding: 0 8px;
  }
}

