* {
  box-sizing: border-box;
  margin: 0px;
  padding: 0px;
}

body {
  font-family: "Poppins", sans-serif;
}

.gradient-text {
    margin-left:10px;
    margin-right:10px;
    font-size:64px;
    background-image: linear-gradient(to right, #9d17eb, #11005a);
    -webkit-background-clip: text; /* For WebKit browsers */
    background-clip: text;
    -webkit-text-fill-color: transparent; /* For WebKit browsers */
    color: transparent;
    justify-self: center;
}
@media (max-width: 768px) {
  .gradient-text {
    font-size:50px;
  }
}
/*------- for mobile friendly ---------*/
/* Prevent horizontal overflow globally */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

/* -------------- Main Area ------------ */
/* Second row (text left, images right) */
.mainarea {
  background: linear-gradient(to right, #9d17eb, #11005a);
  color: white;
  display: flex;
  flex-direction: row; /* or column depending on your layout */
  justify-content: space-around;
  align-items: center;

  min-height: 70vh; /* make it tall enough to show properly */
  margin: 0;        /* remove unwanted pushing down */
  padding: 40px 20px; /* breathing space */
  position: relative;
  z-index: -1;
}

/* Left text */
.mainarea h1 {
  font-size: 50px;
  margin-top: 20px;
}

.flash-text{
  margin:25px;
}

.flash-text p{
  font-size:38px;
}

/* Right images */
.mainarea > span:last-child {
  display: flex;
  gap: 20px;
}

.mainarea img {
  width: 100px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

/* Desktop: normal size */
.laptop-showcase {
  display: block;
}

/* Mobile: scale down the same laptop */
@media (max-width: 768px) {
  .laptop-showcase {
    transform: scale(0.6);  /* shrink to 60% */
    transform-origin: top center;
    margin-top: 20px;
    margin-bottom: 40px;
  }
  
  .mainarea {
    flex-direction: column;
    text-align: center;
    padding: 20px;
    height:70vh;
  }

  .flash-text h1 {
    font-size: 42px;
  }
  .flash-text p {
    font-size: 24px;
  }
}





/* ---------- Hello World ----------- */
.about-sec {
  padding: 40px 20px; /* reduce horizontal padding for mobile */
  background-color: white;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Hello World container */
.helloworld {
  width: 80%;
  max-width: 800px; /* prevent overflow */
  align-self: center;
  justify-content: center;
  align-items: center;
  text-align: center;
  background-color: white;
  margin: -60px auto; /* center horizontally */
  border: 2px solid #11005a;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
}

.helloworld img.fade {
  width: 100%;
  max-width: 400px; /* cap image size */
  height: auto;
  align-self: center;
}

/* About-drop container */
.helloworld.about-drop {
  position: relative;
  margin: 100px auto 10px auto;
  padding: 30px;
  text-align: left;
  font-size: 18px;
  line-height: 28px;
  color: #000a19;
  background-color: white;
  border: 2px solid #11005a;
  border-radius: 20px;
  animation: fadeInDown 1.2s ease-out forwards;
  max-width: 900px; /* wider on large screens */
}

/* Chains */
.helloworld.about-drop::before,
.helloworld.about-drop::after {
  content: "";
  position: absolute;
  width: 50px;
  top: -40px;
  height: 50px;
  background: repeating-linear-gradient(
    to bottom,
    #333 0,
    #333 6px,
    transparent 6px,
    transparent 12px
  );
}

.helloworld.about-drop::before { left: 20%; }
.helloworld.about-drop::after { right: 20%; }

/* Button styling */
.helloworld.about-drop button {
  background-color: #9d17eb;
  color: #ffffff;
  padding: 12px 28px;
  font-size: 18px;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.helloworld.about-drop button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
}

/* ---------- Mobile adjustments ---------- */
@media (max-width: 768px) {
  .helloworld {
    width: 95%;
    margin: -20px auto;
  }

  .helloworld img.fade {
    max-width: 90%;
  }

  .helloworld.about-drop {
    padding: 20px;
    font-size: 16px;
    line-height: 24px;
    margin: 60px auto 20px auto;
    max-width: 95%;
  }

  .helloworld.about-drop::before,
  .helloworld.about-drop::after {
    width: 30px;
    height: 30px;
    top: -30px;
  }
}



/* ----------- Projects -----------*/
.projects-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top:20px;
  margin-bottom:50px;
}

.project-card {
  position: relative;
  background: linear-gradient(90deg, #000269, #9d17eb);;
  border-radius: 15px;
  width: 250px;
  height: 320px;
  padding: 20px;
  box-shadow: -1rem 0 2rem rgba(0,0,0,0.5);
  transition: 0.4s ease-out;
  color: #fff;
}

.project-card:hover {
  transform: translateY(-15px);
}

.project-card h3.title {
  margin-bottom: 10px;
  font-weight: 600;
  font-size: 20px;
  color: #fff;
}

.project-card p {
  font-size: 14px;
  color: white;
  margin-bottom: 40px;
}

.bar {
  position: absolute;
  bottom: 40px;
  left: 20px;
  height: 5px;
  width: 150px;
}

.emptybar {
  width: 100%;
  height: 100%;
  border-radius: 3px;
}

.filledbar {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: white;
  border-radius: 3px;
  transition: width 0.6s ease-out;
}

.project-card:hover .filledbar {
  width: 120px;
}

.circle {
  position: absolute;
  bottom: 50px;
  justify-content: center;
}

.stroke {
  stroke: white;
  stroke-dasharray: 360;
  stroke-dashoffset: 360;
  transition: stroke-dashoffset 0.6s ease-out;
  stroke-width: 2px;
  fill: #17141d;
}

.project-card:hover .stroke {
  stroke-dashoffset: 100;
}






/* ---------- Research ----------- */
.home-sec{
  margin-right:80px;
  margin-left:80px;
  margin-top:30px;
}
.vertical-tabs-section > h1 {
  text-align: center;
  font-size: 50px;
  font-family: "Poppins", sans-serif;
}
.vert-tab > div {
  margin-left: 15px;
  margin-right: 15px;
  width: 10%;
  cursor: pointer;
  height: 388px;
  transition: all 0.5s ease 0s;
  overflow: hidden;
}
/*
.recr-content {
  cursor: pointer;
  background: white;
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-color: #f3f3fd;
  padding: 36px 28px;
  margin-top: 36px;
  border: 1px solid;
  border: 2px solid #11005a;
}*/

/* Inactive state (not active) */
.recr-content {
  cursor: pointer;
  background: linear-gradient(90deg, #000269, #9d17eb);/* purple background */
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px 28px;
  margin-top: 36px;
  border: 2px solid #11005a;
  color: white;
  box-shadow: 0 0 10px rgba(157, 23, 235, 0.6);
  animation: pulseGlow 2s infinite; /* glowing animation */
  transition: all 0.3s ease-in-out;
}

/* Shining / glowing pulse animation */
@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 10px rgba(157, 23, 235, 0.6);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 25px rgba(157, 23, 235, 0.9);
    transform: scale(1.03); /* slight movement */
  }
  100% {
    box-shadow: 0 0 10px rgba(157, 23, 235, 0.6);
    transform: scale(1);
  }
}

/* Active state (opened) */
.recr-content.active {
  width: 100%;
  background: white;
  border: 2px solid #11005a;
  color: black;
  box-shadow: none;
  animation: none; /* remove pulse when active */
}
.recr-content.active h3 {
  display: none;
}
.recr-content.active .work_items_content {
  display: block;
}

.recr-content h3 {
  font-family: "Poppins", sans-serif;
  font-size: 30px;
  font-weight: 500;
  line-height: 24px;
  letter-spacing: 0em;
  text-align: left;
  color: white;
  white-space: nowrap;
  transform: rotate(269deg);
}
.work_items_content {
  display: none;
}
.vert_tab_image_wrrapeer {
  display: flex;
  align-items: center;
}
.vert-tab-content h2 {
  font-family: "Poppins", sans-serif;
  font-size: 74px;
  font-weight: 700;
  line-height: 81px;
  letter-spacing: 0em;
  text-align: left;
  color: #000a19;
  margin-bottom: 30px;
}
.vert-tab-content h4 {
  font-family: "Poppins", sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 24px;
  letter-spacing: 0em;
  text-align: left;
  color: #000a19;
  margin-bottom: 20px;
}
.vert-tab-content p {
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 25px;
  letter-spacing: 0em;
  text-align: left;
  max-width: 96%;
  color: #000a19;
  margin-left: 0px;
  margin-right: auto;
}
.vert-image{
  display:none;
}
/*
.recr-content.active {
width: 100%;
  background: white;
  border: 2px solid #11005a;
}
.recr-content.active h3 {
  display: none;
}
.recr-content.active .work_items_content {
  display: block;
}
*/
.recr-content img {
  max-width: 100%;
  height: 426px;
}
.vert-tab {
  display: flex;
}
/* --- Add this code for Mobile Responsiveness --- */

/* --- Updated CSS for Mobile Responsiveness --- */

@media (max-width: 768px) {

  /* 1. Stack the research items vertically */
  .vert-tab {
    flex-direction: column;
    margin-top:20px;
    gap: 20px; /* Adds space between the stacked items */
  }

  /* 2. CRITICAL FIX: Reset desktop height and set width */
  .vert-tab > div {
    width: 100%;
    margin: 0;
    height: auto; /* This fixes the height issue by overriding the desktop style */
  }
  
  /* 3. Style the inactive item's title */
  .recr-content h3 {
    transform: none;      /* Straighten the text */
    white-space: normal;  /* Allow the title to wrap */
    text-align: center;
    font-size: 24px;      
    padding: 20px 0;
  }

  /* 4. Stop the glowing animation on mobile */
  .recr-content {
    animation: none;
    transform: none !important; /* Prevents the pulse scaling effect */
  }

  /* 5. CRITICAL FIX: Change alignment in the ACTIVE panel to stop overflow */
  .recr-content.active {
    align-items: flex-start; /* Aligns content to the top */
    padding: 25px;           /* Adds some nice internal spacing */
  }

  /* 6. Hide the PDF iframe on mobile */
  .recr-content iframe {
    display: none;
  }

  /* 7. Adjust padding and text sizes for readability */
  .home-sec {
    margin: 20px; /* Reduce side margins */
  }

  .vert-tab-content h2 {
    font-size: 48px; /* Decrease the "01." number size */
    margin-bottom: 15px;
  }
  
  .vert-tab-content h4 {
    font-size: 18px; /* Decrease title size */
  }

  .vert-tab-content p {
    font-size: 15px; /* Adjust paragraph size */
  }
}



/* ---------- Youtube ------------*/
.youtube{
  margin-bottom:10px;
  display: flex;
  justify-content: center;
  align-items: center;
  /*height: 100vh;  full screen section */
  position: relative;
}
/*
@media (max-width: 768px) {
  .youtube{
    margin-top:-100px;
    margin-bottom:-100px;
  }
}*/
.mockup .part.top {
  transform: translate3d(0, 0, 0) rotateX(-90deg);
  transition: 900ms;
}

.mockup.open .part.top {
  transform: translate3d(0, 0, 0) rotateX(0deg);
}


.mockup {
  position: relative;
  transform: scale(0.9);
  z-index: 20; /* above hover zone */
}


.container {
  text-align: center;
}

.mockup {
  display: inline-block;
  position: relative;
  z-index: 20;
  text-align: center;
  font-size: 0;
  perspective: 2400px;
  perspective-origin: 50% 100%;
  opacity: 0;
  transition: 500ms opacity;
  margin: 0 auto;
}

.mockup.loaded {
  opacity: 1;
}

.mockup .part .top,
.mockup .part .bottom {
  position: absolute;
  top: 0;
  left: 0;
}

.mockup .part.top {
  transform: translate3d(0, 0, 0) rotateX(-90deg);
}

.mockup:hover .part.top {
  transform: translate3d(0, 0, 0) rotateX(0deg);
}

.mockup .part {
  display: inline-block;
  position: relative;
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
  transform-origin: 50% 100%;
  transition: 900ms;
}

.mockup.opened .part .top {
  transform: translate3d(0, 0, -11px) rotateX(90deg) scale(1, 1);
}

.mockup .part .top {
  transform-origin: 50% 0;
  transform: translate3d(0, 0, -11px) rotateX(90deg);
  transition: 900ms;
}

.mockup img {
  display: block;
  max-width: 100%;
  backface-visibility: hidden;
}

.mockup .part .cover {
  position: relative;
}

.mockup video {
  display: block;
  position: absolute;
  top: 8%;
  left: 4%;
  width: 92%;
  border-radius: 6px;
  backface-visibility: hidden;
  transform: translate3d(0, 0, 1px);
}

.mockup .part.bottom {
  position: absolute;
  top: 0;
  left: 0;
  transform: translate3d(0, 0, 0) rotateX(-90deg);
}

.mockup .part .bottom {
    transform-origin: 50% 0;
    transform: translate3d(0,0,0) rotateX(90deg);
}


.mockup-link:hover {
  cursor: alias; /* arrow with a shortcut indicator */
  /* OR use this for a hand icon: cursor: pointer; */
}




/* ------ Marquee css ---------*/
.marquee-section {
  width: 100%;
  overflow: hidden;
  background: linear-gradient(90deg, #9d17eb, #11005a);
  padding: 20px 0;
}

.marquee {
  display: flex;
  width: max-content;
  animation: scroll 12s linear infinite;
}

.marquee span {
  font-size: 64px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  margin-right: 50px; /* space between repetitions */
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-33.333%);
  }
}


