@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700;800;900&family=DM+Sans:wght@400;500;600;700&family=Outfit:wght@400;500;600;700;800;900&family=Manrope:wght@400;500;600;700;800&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  outline: none;
  border: none;
  text-transform: capitalize;
  transition: all 0.2s linear;
}

/* Prevent horizontal scroll globally */
*:not(canvas) {
  max-width: 100%;
}

html {
  font-size: 62.5%;
  overflow-x: hidden;
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100vw;
}

body {
  background: #f7f7f7;
  font-family: "Poppins", sans-serif;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

*::selection {
  background: #2b3dda;
  color: #fff;
}

html {
  font-size: 62.5%;
  overflow-x: hidden;
}

html::-webkit-scrollbar {
  width: 0.8rem;
}

html::-webkit-scrollbar-track {
  background: rgb(235, 202, 245);
}

html::-webkit-scrollbar-thumb {
  background: #420177;
}

/* pre loader start */
.loader-container {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10000;
  background: #e6eff1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
  max-width: 100vw;
  max-height: 100vh;
  overflow: hidden;
}

.loader-container.fade-out {
  top: -120%;
}

/* pre loader end */

/* Galaxy animation starts */

/* cursor effect */
/* Smokey Cursor Effect */
#smokey-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-width: 100vw;
  max-height: 100vh;
  pointer-events: none;
  z-index: 9999;
  background: transparent;
  overflow: hidden;
}

/* Hide cursor effect on mobile */
@media (max-width: 768px) {
  #smokey-cursor {
    display: none;
  }
}


.space-objects img {
  position: absolute;
  z-index: 0;
  opacity: 0.8;
}

.moon {
  top: 10%;
  left: 80%;
  width: 80px;
  animation: float 6s ease-in-out infinite;
  filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.5));
}

.planet {
  bottom: 15%;
  left: 50%;
  width: 120px;
  animation: rotate 20s linear infinite;
  filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.5));
}

.sun {
  top: 5%;
  left: 5%;
  width: 100px;
  animation: pulse 5s infinite alternate;
  filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.5));
}

@keyframes float {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-15px);
  }

  100% {
    transform: translateY(0);
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  from {
    transform: scale(1);
    opacity: 0.8;
  }

  to {
    transform: scale(1.2);
    opacity: 1;
  }
}

/* Galaxy Container Styling */
#galaxy-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 250px;
  height: 250px;
  z-index: 1;
  border-radius: 50%;
  overflow: hidden;
  opacity: 0.9;
  transition: all 0.3s ease;
}

#galaxy-container:hover {
  transform: scale(1.1);
  opacity: 1;
}

@media (max-width: 768px) {
  .planet {
    transform: scale(0.5);
  }
}

@media (max-width: 480px) {
  .planet {
    display: none;
  }

  #galaxy-container {
    display: none;
  }

  .moon {
    display: none;
  }

  .sun {
    display: none;
  }
}

@media (max-width: 1000px) {

  .content h2 {
    margin-top: 50px;
  }

  #galaxy-container {
    width: 150px;
    height: 150px;
    bottom: 10px;
    right: 10px;
  }

  .sun {
    display: none;
  }

}



/* galaxy animation ends  */

/* tsparticles background for home section */
.home #tsparticles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Space objects scoped to home section */
.home .space-objects {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.home .space-objects img {
  position: absolute;
  z-index: 0;
  opacity: 0.8;
  max-width: none;
}


/* navbar starts */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100vw;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.7rem 5%;
  height: 6.5rem;
  background-color: #fff;
  box-shadow: 0 1px 4px rgba(146, 161, 176, 0.3);
  overflow-x: hidden;
}

@media (max-width: 768px) {
  header {
    padding: 1.7rem 3%;
  }
}

@media (max-width: 480px) {
  header {
    padding: 1.5rem 2%;
  }
}

section {
  min-height: 100vh;
  padding: 2rem 9%;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  section {
    padding: 2rem 5%;
  }
}

@media (max-width: 480px) {
  section {
    padding: 2rem 3%;
  }
}

.experience .heading {
  color: white;
}

.heading {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  color: rgb(255 0 0);
  font-weight: 800;
  text-align: center;
  word-wrap: break-word;
  overflow-wrap: break-word;
  padding: 0 1rem;
}

.heading span {
  color: rgb(115, 3, 167);
}

header .logo {
  font-size: 1.9rem;
  font-weight: 800;
  text-decoration: none;
  color: #0e2431;
}

header .logo i {
  font-size: 2.2rem;
}

header .logo:hover {
  color: #fc8c05;
}

header .navbar ul {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
}

header .navbar li {
  margin-left: 2.5rem;
}

header .navbar ul li a {
  font-size: 1.57rem;
  color: #0e2431;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.04rem;
  transition: 0.2s;
}

header .navbar ul li a.active,
header .navbar ul li a:hover {
  color: #011aff;
  border-bottom: 0.2rem solid #011aff;
  padding: 0.5rem 0;
}

/* navbar ends */

/* hamburger icon starts*/
#menu {
  font-size: 3rem;
  cursor: pointer;
  color: rgb(24, 2, 63);
  display: none;
}

@media (max-width: 768px) {
  #menu {
    display: block;
  }

  header .navbar {
    position: fixed;
    top: 6.5rem;
    right: -120%;
    width: 75%;
    height: 100%;
    text-align: left;
    align-items: flex-start;
    background-color: #0e0f31;
  }

  header .navbar ul {
    flex-flow: column;
    padding: 1rem;
  }

  header .navbar ul li {
    text-align: center;
    width: 100%;
    margin: 1rem 0;
    border-radius: 0.5rem;
    width: 26rem;
  }

  header .navbar ul li a {
    display: block;
    padding: 1rem;
    text-align: left;
    color: #fff;
    font-size: 2rem;
  }

  header .navbar ul li a.active,
  header .navbar ul li a:hover {
    padding: 1rem;
    color: #fff;
    border-radius: 0.5rem;
    border-bottom: 0.5rem solid #011aff;
  }

  .fa-times {
    transform: rotate(180deg);
  }

  header .navbar.nav-toggle {
    right: 0;
  }
}

/* hamburger icon ends */

/* hero section starts*/
.home {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  min-height: 100vh;
  align-items: center;
  overflow: hidden;
  background: #0d0c1d;
}

.home #particles-js {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
}

.home::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
}

.home .content {
  flex: 1 1 40rem;
  padding-top: 1rem;
  z-index: 1;
}

.home .image {
  flex: 1 1 40rem;
  z-index: 1;
}

.home .image img {
  width: 70%;
  max-width: 400px;
  margin-left: 6rem;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  cursor: pointer;
}

@media (max-width: 768px) {
  .home .image img {
    width: 60%;
    margin-left: 0;
    margin: 0 auto;
    display: block;
  }
}

@media (max-width: 480px) {
  .home .image img {
    width: 70%;
    max-width: 280px;
  }
}

.home .image img:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.home .content h2 {
  font-size: clamp(3rem, 5vw, 5rem);
  font-weight: 800;
  color: #cbdeff;
}

.home .content h2 span {
  font-size: clamp(3rem, 5vw, 5rem);
  font-weight: 800;
  color: #ff7b00;
}

.home .content p {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: #25efff;
  font-weight: 600;
  padding: 1rem 0;
}

.home .content p span {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: rgb(148, 8, 8);
  font-weight: 600;
  padding: 1rem 0;
}

@media (max-width: 768px) {
  .home .content {
    text-align: center;
    padding: 1rem;
  }

  .home .content h2,
  .home .content h2 span,
  .home .content p,
  .home .content p span {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
}

.home .btn {
  margin-top: 1rem;
  position: relative;
  line-height: 0;
  padding: 1.6rem 3rem;
  border-radius: 4em;
  transition: 0.5s;
  color: #fff;
  background: #2506ad;
  box-shadow: 0px 5px 18px rgba(48, 68, 247, 0.6);
  font-family: "Nunito", sans-serif;
}

@media (max-width: 768px) {
  .home .btn {
    padding: 1.4rem 2.5rem;
  }
}

@media (max-width: 480px) {
  .home .btn {
    padding: 1.2rem 2rem;
    margin-top: 2rem;
  }
}

.home .btn span {
  font-weight: 700;
  font-size: 1.7rem;
  letter-spacing: 0.1rem;
}

.home .btn i {
  margin-left: 0.3rem;
  font-size: 1.5rem;
  transition: 0.3s;
}

.home .btn:hover {
  background: #1a047e;
}

.home .btn:hover i {
  transform: translateX(5px);
}

/* social icons start */
.socials {
  position: relative;
  margin-top: 9rem;
}

@media (max-width: 768px) {
  .socials {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
  }
}

@media (max-width: 450px) {
  .socials {
    margin-top: 2rem;
  }
}

.socials .social-icons {
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
}

.socials .social-icons li {
  display: inline-block;
  margin-bottom: 14px;
}

.social-icons a {
  font-size: 2rem;
  display: inline-block;
  line-height: 44px;
  color: #00d9ff;
  background-color: #09011b;
  width: 44px;
  height: 44px;
  text-align: center;
  margin-right: 8px;
  border-radius: 100%;
  -webkit-transition: all 0.2s linear;
  -o-transition: all 0.2s linear;
  transition: all 0.2s linear;
}

.social-icons a:active,
.social-icons a:focus,
.social-icons a:hover {
  color: #fff;
  background-color: #0685da;
}

.social-icons a.github:hover {
  background-color: #0e0e0e;
}

.social-icons a.twitter:hover {
  background-color: #00aced;
}

.social-icons a.linkedin:hover {
  background-color: #007bb6;
}

.social-icons a.dev:hover {
  background-color: #070707;
}

.social-icons a.instagram:hover {
  background-color: #ee00da;
}

/* social icons end */

/* hero media queries starts*/
@media (max-width: 768px) {
  .home {
    padding: 2rem 3%;
  }

  .home .content,
  .home .image {
    flex: 1 1 100%;
  }
}

@media (max-width: 450px) {
  .home .btn {
    margin: 4rem 0;
    position: relative;
  }

  .socials {
    margin-top: 12rem;
  }

  .home .image img {
    margin-top: -12rem;
  }

  .home .content p {
    font-size: 2.2rem;
  }

  .home .content p span {
    font-size: 2.2rem;
  }
}

/* hero media queries ends*/
/* hero section end */

/* about section starts */
.about {
  background: linear-gradient(135deg, #fafbff 0%, #ffffff 50%, #f5f7ff 100%);
  position: relative;
  overflow: hidden;
  padding: 8rem 0;
}

/* Subtle Background Orbs */
.about::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.04) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
}

.about::after {
  content: '';
  position: absolute;
  bottom: -15%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
}

.about .row {
  display: flex;
  flex-direction: row;
  gap: 6rem;
  flex-wrap: wrap;
  padding: 4rem 2rem;
  max-width: 1500px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  align-items: center;
  box-sizing: border-box;
}

@media (max-width: 1200px) {
  .about .row {
    padding: 3rem 1.5rem;
  }
}

@media (max-width: 768px) {
  .about .row {
    padding: 2rem 1rem;
    gap: 3rem;
  }
}

/* Image Section */
.about .row .image {
  text-align: center;
  flex: 1 1 40rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Glowing Ring Behind Image */
.about .row .image::before {
  content: '';
  position: absolute;
  width: 38rem;
  height: 38rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #a855f7, #ec4899);
  filter: blur(40px);
  opacity: 0.25;
  z-index: -1;
}

.about .row .image img {
  width: 35rem;
  height: 35rem;
  border-radius: 50%;
  object-fit: cover;
  box-shadow:
    0 25px 70px rgba(0, 0, 0, 0.15),
    0 0 0 20px rgba(255, 255, 255, 1),
    0 0 0 24px rgba(99, 102, 241, 0.12);
  transition: all 0.4s ease;
  cursor: pointer;
  position: relative;
  z-index: 2;
}

.about .row .image img:hover {
  transform: translateY(-10px);
  box-shadow:
    0 35px 90px rgba(0, 0, 0, 0.2),
    0 0 0 20px rgba(255, 255, 255, 1),
    0 0 0 24px rgba(99, 102, 241, 0.25),
    0 0 50px rgba(99, 102, 241, 0.3);
}

/* Content Section */
.about .row .content {
  flex: 1 1 55rem;
  padding: 2rem 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Bold Heading - Monolito Style */
.about .row .content h3 {
  font-family: 'Outfit', 'Space Grotesk', sans-serif;
  font-size: 5.5rem;
  font-weight: 900;
  color: #0a0a0a;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

/* Gradient Name - Simple No Animation */
.about .row .content h3 span {
  background: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-weight: 900;
}

/* Professional Tag Badge */
.about .row .content .tag {
  font-family: 'Manrope', 'DM Sans', sans-serif;
  font-size: 1.7rem;
  color: #ffffff;
  font-weight: 700;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
  padding: 1.2rem 3rem;
  border-radius: 60px;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  width: fit-content;
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
  margin-bottom: 3rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.about .row .content .tag .tag-icon {
  font-size: 2rem;
  display: inline-block;
}

.about .row .content .tag .typewriter-text {
  display: inline-block;
  min-width: 200px;
  text-align: left;
}

.about .row .content .tag::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.about .row .content .tag:hover::after {
  left: 100%;
}

.about .row .content .tag:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(99, 102, 241, 0.45);
}

/* Body Text - Clean and Readable */
.about .row .content p,
.about .row .content .info {
  font-family: 'Manrope', 'Inter', sans-serif;
  font-size: 1.75rem;
  line-height: 1.85;
  color: #4b5563;
  font-weight: 500;
  text-transform: none;
  margin-bottom: 3rem;
  max-width: 700px;
}

/* Info Cards Container */
.about .row .content .box-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 3.5rem;
}

/* Glassmorphism Info Cards */
.about .row .content .box-container .box {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  padding: 2.5rem 3rem;
  border-radius: 20px;
  border: 2px solid rgba(99, 102, 241, 0.1);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.about .row .content .box-container .box::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.04), transparent);
  transition: left 0.5s ease;
}

.about .row .content .box-container .box:hover::before {
  left: 100%;
}

.about .row .content .box-container .box:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 45px rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.25);
}

.about .row .content .box-container .box p {
  font-family: 'Manrope', 'DM Sans', sans-serif;
  font-size: 1.6rem;
  color: #6b7280;
  font-weight: 600;
  text-transform: none;
  margin: 0.8rem 0;
}

.about .row .content .box-container .box p span {
  color: #6366f1;
  font-weight: 800;
  font-size: 1.7rem;
}

/* Resume Button */
.resumebtn {
  margin-top: 1rem;
}

.resumebtn .btn {
  font-family: 'Manrope', 'DM Sans', sans-serif;
  padding: 1.8rem 4rem;
  border-radius: 60px;
  transition: all 0.3s ease;
  color: #ffffff;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
  box-shadow: 0 12px 35px rgba(99, 102, 241, 0.3);
  font-weight: 700;
  font-size: 1.7rem;
  letter-spacing: 0.05rem;
  border: none;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
}

.resumebtn .btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.5s ease, height 0.5s ease;
}

.resumebtn .btn:hover::before {
  width: 400px;
  height: 400px;
}

.resumebtn .btn span {
  font-weight: 700;
  font-size: 1.7rem;
  letter-spacing: 0.08rem;
  position: relative;
  z-index: 1;
}

.resumebtn .btn i {
  margin-left: 1rem;
  font-size: 1.6rem;
  transition: transform 0.3s ease;
  position: relative;
  z-index: 1;
}

.resumebtn .btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 50px rgba(99, 102, 241, 0.45);
}

.resumebtn .btn:hover i {
  transform: translateX(6px);
}

.resumebtn .btn:active {
  transform: translateY(-2px);
}

/* Responsive Media Queries */
@media (max-width: 1200px) {
  .about .row {
    gap: 4rem;
    padding: 3rem 2rem;
  }

  .about .row .content h3 {
    font-size: 4.5rem;
  }

  .about .row .image img {
    width: 30rem;
    height: 30rem;
  }
}

@media (max-width: 992px) {
  .about {
    padding: 6rem 0;
  }

  .about .row {
    gap: 3rem;
  }

  .about .row .content h3 {
    font-size: 3.8rem;
  }

  .about .row .image img {
    width: 26rem;
    height: 26rem;
  }

  .about .row .content p,
  .about .row .content .info {
    font-size: 1.6rem;
  }
}

@media (max-width: 768px) {
  .about {
    padding: 4rem 0;
  }

  .about .row {
    flex-direction: column;
    gap: 3rem;
    padding: 2rem 1.5rem;
    width: 100%;
  }

  .about .row .image img {
    width: 24rem;
    height: 24rem;
  }

  .about .row .content {
    text-align: center;
    padding: 1rem 0;
    width: 100%;
  }

  .about .row .content h3 {
    font-size: 3.2rem;
  }

  .about .row .content p,
  .about .row .content .info {
    font-size: 1.5rem;
    text-align: left;
    max-width: 100%;
  }

  .about .row .content .tag {
    margin: 0 auto 2.5rem;
    font-size: 1.5rem;
    padding: 1rem 2.5rem;
  }

  .about .row .content .box-container {
    justify-content: center;
    width: 100%;
  }

  .resumebtn {
    text-align: center;
  }

  .resumebtn .btn {
    padding: 1.5rem 3rem;
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .about .row .content h3 {
    font-size: 2.6rem;
  }

  .about .row .image img {
    width: 20rem;
    height: 20rem;
  }
}

/* about section ends */

/* skills section starts */
.skills {
  min-height: 90vh;
  background: linear-gradient(to bottom, #57059e, #4a00e0);
}

.skills h2 {
  color: #fff;
}

.skills .heading span {
  color: rgb(255, 230, 0);
}

.skills .container {
  background: rgba(0, 0, 22, 0.4);
  color: #fff;
  border-radius: 1rem;
  padding: 2rem;
  width: 90%;
  max-width: 1400px;
  margin: 2rem auto;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .skills .container {
    width: 95%;
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .skills .container {
    width: 98%;
    padding: 1rem;
  }
}

.skills .container .row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  flex-wrap: wrap;
  gap: 1.8rem;
}

.skills .container .bar {
  margin-bottom: 15px;
  padding: 10px;
  border-radius: 1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  background: rgba(0, 0, 22, 0.9);
  transition: all 0.2s ease;
  /* Initial state - hidden and positioned off-screen */
  opacity: 0;
  transform: translate(0, 0) scale(0.3);
}

/* Animation class that will be added by JavaScript */
.skills .container .bar.fly-in {
  animation: flyInToPosition 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes flyInToPosition {
  0% {
    opacity: 0;
    transform: var(--fly-from) scale(0.3) rotate(180deg);
  }

  60% {
    opacity: 1;
  }

  80% {
    transform: translate(0, 0) scale(1.1) rotate(-5deg);
  }

  100% {
    opacity: 1;
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
}

.skills .container .bar:hover {
  /* Smooth glassmorphism hover effect */
  background: rgba(168, 85, 247, 0.15) !important;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(168, 85, 247, 0.3);
  box-shadow:
    0 8px 32px rgba(168, 85, 247, 0.3),
    0 0 20px rgba(168, 85, 247, 0.2),
    inset 0 0 20px rgba(255, 255, 255, 0.05) !important;
  transform: translateY(-8px) !important;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.skills .container .bar .info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}

.skills .container .bar .info i {
  font-size: 4rem;
}

.skills .container .bar .info span {
  font-size: 2rem;
  font-weight: 500;
  font-family: "Poppins";
  margin-left: 0.5rem;
}

/* skills media queries starts*/
@media screen and (max-width: 600px) {
  .skills .container {
    padding: 0;
    margin: 0;
  }

  .skills .container .row {
    grid-template-columns: repeat(2, 1fr);
    margin: 1rem;
    padding: 2rem 0.2rem 2rem 0.2rem;
    gap: 1rem;
  }

  .skills .container {
    margin-top: 5px;
    width: 100%;
  }
}

/* skills media queries ends*/
/* skills section ends */

/* education section starts - Rocket Trail Galaxy Theme */
.education {
  background: linear-gradient(180deg, #0a0118 0%, #1a0b3d 50%, #0f0527 100%);
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  overflow-y: visible;
  padding: 3rem 2rem 2rem;
}

@media screen and (max-width: 1024px) {
  .education {
    min-height: auto;
    overflow: visible;
  }
}

/* Animated Galaxy Background */
.education::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(2px 2px at 20% 30%, white, transparent),
    radial-gradient(2px 2px at 60% 70%, white, transparent),
    radial-gradient(1px 1px at 50% 50%, white, transparent),
    radial-gradient(1px 1px at 80% 10%, white, transparent),
    radial-gradient(2px 2px at 90% 60%, white, transparent),
    radial-gradient(1px 1px at 33% 80%, white, transparent);
  background-size: 200% 200%, 200% 200%, 150% 150%, 180% 180%, 220% 220%, 160% 160%;
  background-position: 0% 0%, 100% 100%, 50% 50%, 80% 20%, 10% 90%, 30% 60%;
  animation: twinkle-stars 20s ease-in-out infinite;
  opacity: 0.6;
  pointer-events: none;
  z-index: 1;
}

@keyframes twinkle-stars {

  0%,
  100% {
    opacity: 0.6;
  }

  50% {
    opacity: 0.9;
  }
}

.education .heading {
  position: relative;
  z-index: 10;
  color: #fff;
  text-shadow: 0 0 20px rgba(102, 126, 234, 0.8), 0 0 40px rgba(118, 75, 162, 0.6);
}

.education .qoute {
  font-size: 1.4rem;
  text-align: center;
  font-family: "Nunito", sans-serif;
  font-weight: 600;
  margin: 0.5rem auto 2rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 800px;
  position: relative;
  z-index: 10;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.education .box-container {
  position: relative;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1rem;
  min-height: 70vh;
  z-index: 5;
  display: flex;
  flex-direction: row;
  gap: 2rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  box-sizing: border-box;
}

/* Rocket Trail - Snake/Wave Path with SVG */
.education .rocket-trail-path {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.education .rocket-trail-path svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 15px rgba(102, 126, 234, 0.8));
}

.education .rocket-trail-path path {
  stroke: url(#trail-gradient);
  stroke-width: 4;
  fill: none;
  stroke-dasharray: 10 5;
  animation: trail-glow 3s ease-in-out infinite;
}

@keyframes trail-glow {

  0%,
  100% {
    filter: drop-shadow(0 0 10px rgba(102, 126, 234, 0.6)) drop-shadow(0 0 20px rgba(168, 85, 247, 0.4));
  }

  50% {
    filter: drop-shadow(0 0 20px rgba(102, 126, 234, 1)) drop-shadow(0 0 40px rgba(168, 85, 247, 0.8));
  }
}

/* Rocket Animation - Following Horizontal Timeline Path */
.education .rocket {
  position: absolute;
  font-size: 3rem;
  z-index: 6;
  filter: drop-shadow(0 0 20px rgba(255, 107, 107, 0.8)) drop-shadow(0 0 40px rgba(255, 200, 87, 0.6));
  animation: rocket-fly-timeline 12s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
  offset-path: path('M 100,450 Q 300,350 600,450 Q 900,550 1100,450');
  offset-distance: 0%;
  offset-rotate: auto 0deg;
  transform-origin: center;
}

@keyframes rocket-fly-timeline {
  0% {
    offset-distance: 0%;
  }

  100% {
    offset-distance: 100%;
  }
}

/* Particle Trail Behind Rocket */
.education .particle-trail {
  position: absolute;
  width: 8px;
  height: 8px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.8), rgba(102, 126, 234, 0.4));
  border-radius: 50%;
  pointer-events: none;
  animation: particle-fade 1.5s ease-out forwards;
  z-index: 2;
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.8);
}

@keyframes particle-fade {
  0% {
    opacity: 1;
    transform: scale(1);
  }

  100% {
    opacity: 0;
    transform: scale(0.2) translateY(30px);
  }
}

/* Education Cards - Clean Timeline Layout */
.education .box-container .box {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 360px;
  max-width: 95%;
  background: rgba(15, 5, 39, 0.85);
  border-radius: 1.5rem;
  overflow: hidden;
  backdrop-filter: blur(20px);
  border: 2px solid rgba(168, 85, 247, 0.3);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.7),
    0 0 40px rgba(168, 85, 247, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  z-index: 4;
  opacity: 0;
  transform: translateY(50px);
  animation: float-card 0.8s ease forwards;
  flex-shrink: 0;
  box-sizing: border-box;
}

@keyframes float-card {
  0% {
    opacity: 0;
    transform: translateY(50px) scale(0.9);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Card Positioning - Alternating Wave Timeline */
/* Card Positioning - Centered Column */
.education .box-container .box:nth-child(1) {
  animation-delay: 0.3s;
}

.education .box-container .box:nth-child(2) {
  animation-delay: 0.6s;
}

.education .box-container .box:nth-child(3) {
  animation-delay: 0.9s;
}

/* Floating Animation on Cards */
.education .box-container .box {
  animation: float-card 0.8s ease forwards, gentle-float 4s ease-in-out infinite;
}

@keyframes gentle-float {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-15px) rotate(1deg);
  }
}

.education .box-container .box:hover {
  transform: translateY(-20px) scale(1.05) rotate(-2deg);
  border-color: rgba(168, 85, 247, 0.8);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.9),
    0 0 60px rgba(168, 85, 247, 0.6),
    inset 0 2px 0 rgba(255, 255, 255, 0.2);
}

/* Card Image Section */
.education .box-container .box .image {
  width: 100%;
  height: 180px;
  position: relative;
  overflow: hidden;
  border-bottom: 2px solid rgba(168, 85, 247, 0.4);
}

.education .box-container .box .image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, transparent 0%, rgba(15, 5, 39, 0.7) 100%);
  z-index: 1;
  transition: opacity 0.3s ease;
}

.education .box-container .box:hover .image::after {
  opacity: 0.5;
}

.education .box-container .box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.education .box-container .box:hover img {
  transform: scale(1.15) rotate(2deg);
}

/* Card Content Section */
.education .box-container .box .content {
  position: relative;
  padding: 1.5rem 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  background: linear-gradient(180deg, rgba(15, 5, 39, 0.95) 0%, rgba(26, 11, 61, 0.95) 100%);
}

.education .box-container .box .content h3 {
  font-size: 1.7rem;
  background: linear-gradient(135deg, #667eea, #a855f7);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
  margin-bottom: 0.8rem;
  line-height: 1.3;
  text-shadow: 0 0 30px rgba(102, 126, 234, 0.5);
}

.education .box-container .box .content p {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0.3rem 0;
  font-family: "Poppins", sans-serif;
}

/* Animated Counter Styling */
.education .box-container .box .content .counter-value {
  display: inline-block;
  font-size: 2rem;
  font-weight: 900;
  background: linear-gradient(135deg, #00ff9d, #00d4ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0.5rem 0;
  position: relative;
  text-shadow: 0 0 30px rgba(0, 255, 157, 0.6);
  animation: counter-glow 2s ease-in-out infinite;
}

@keyframes counter-glow {

  0%,
  100% {
    filter: drop-shadow(0 0 10px rgba(0, 255, 157, 0.4));
  }

  50% {
    filter: drop-shadow(0 0 25px rgba(0, 212, 255, 0.8));
  }
}

.education h4 {
  font-size: 1.4rem;
  background: linear-gradient(135deg, #00ff9d, #00d4ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: left;
  margin: 0.8rem 0 0 0;
  font-family: "Nunito", sans-serif;
  font-weight: 700;
  text-shadow: 0 0 20px rgba(0, 255, 157, 0.5);
}

/* View Button Styling - Futuristic Neon */
.view-btn {
  margin-top: 1.2rem;
  padding: 1rem 2.2rem;
  font-size: 1.2rem;
  font-weight: 700;
  font-family: "Poppins", sans-serif;
  color: #fff;
  background: linear-gradient(135deg, #667eea, #a855f7);
  border: 2px solid rgba(168, 85, 247, 0.6);
  border-radius: 5rem;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 5px 25px rgba(168, 85, 247, 0.5), 0 0 30px rgba(102, 126, 234, 0.3);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  text-transform: uppercase;
  letter-spacing: 0.15rem;
  z-index: 1;
}

.view-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transition: width 0.6s ease, height 0.6s ease;
}

.view-btn:hover::before {
  width: 300%;
  height: 300%;
}

.view-btn:hover {
  background: linear-gradient(135deg, #a855f7, #667eea);
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(168, 85, 247, 0.7), 0 0 50px rgba(102, 126, 234, 0.5);
  border-color: rgba(255, 255, 255, 0.8);
}

.view-btn:active {
  transform: translateY(-2px) scale(0.95);
  box-shadow: 0 5px 20px rgba(168, 85, 247, 0.5);
}

/* Nebula Glow Effects */
.education .nebula-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
  animation: nebula-pulse 8s ease-in-out infinite;
}

.education .nebula-glow-1 {
  top: 10%;
  left: 10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(102, 126, 234, 0.4), transparent);
}

.education .nebula-glow-2 {
  top: 40%;
  right: 5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.3), transparent);
  animation-delay: 2s;
}

.education .nebula-glow-3 {
  bottom: 15%;
  left: 15%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.3), transparent);
  animation-delay: 4s;
}

@keyframes nebula-pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.4;
  }

  50% {
    transform: scale(1.2);
    opacity: 0.6;
  }
}

@keyframes nebula-pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.4;
  }

  50% {
    transform: scale(1.2);
    opacity: 0.6;
  }
}

/* education media queries starts - Responsive Design */
@media screen and (max-width: 1024px) {
  .education {
    min-height: auto;
    height: auto;
  }

  .education .box-container {
    min-height: auto;
    height: auto;
    padding: 3rem 1rem;
  }

  .education .box-container .box {
    width: 90%;
    max-width: 500px;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    margin: 2rem auto;
  }
}

@media screen and (max-width: 600px) {
  .education {
    padding: 3rem 1rem;
    min-height: auto;
    height: auto;
  }

  .education .qoute {
    font-size: 1.3rem;
    padding: 0 1rem;
  }

  .education .box-container {
    min-height: auto;
    height: auto;
    padding: 2rem 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
  }

  .education .rocket {
    font-size: 3rem;
    display: none;
  }

  .education .box-container .box {
    width: 95%;
    max-width: 400px;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    margin: 0 auto;
    animation: float-card 0.8s ease forwards;
  }

  .education .box-container .box:hover {
    transform: translateY(-10px) scale(1.02) !important;
  }

  .education .box-container .box .image {
    height: 200px;
  }

  .education .box-container .box .content {
    padding: 1.5rem;
  }

  .education .box-container .box .content h3 {
    font-size: 1.6rem;
  }

  .education .box-container .box .content p {
    font-size: 1.3rem;
  }

  .education .box-container .box .content .counter-value {
    font-size: 2rem;
  }

  .education h4 {
    font-size: 1.4rem;
  }

  .view-btn {
    padding: 1rem 2rem;
    font-size: 1.2rem;
  }

  .education .nebula-glow {
    width: 250px !important;
    height: 250px !important;
  }
}

/* education media queries ends*/
/* education section ends */

/* work section starts - Modern carousel-based project showcase */
.work {
  padding: 100px 20px;
  position: relative;
  z-index: 2;
  min-height: 100vh;
  background: #0d0c1d;
  overflow: hidden;
}

/* tsparticles background for work section */
.work #tsparticles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Work section tsparticles */
#tsparticles-work {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* Work section heading */
.work .heading {
  font-size: 3.5rem;
  text-align: center;
  margin-bottom: 80px;
  color: #fff;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
  position: relative;
  z-index: 3;
}

.work .heading i {
  color: #00d4ff;
  margin-right: 15px;
  filter: drop-shadow(0 0 10px #00d4ff);
  animation: work-heading-pulse 2s ease-in-out infinite;
}

@keyframes work-heading-pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }
}

.work .heading span {
  background: linear-gradient(45deg, #ff006e, #8338ec, #3a86ff, #00d4ff);
  background-size: 400% 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: work-gradient-shift 3s ease-in-out infinite;
}

@keyframes work-gradient-shift {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

.work .carousel-container {
  position: relative;
  max-width: 1200px;
  width: 100%;
  height: 450px;
  margin: 0 auto;
  overflow: hidden;
  padding: 0 80px;
  z-index: 3;
  box-sizing: border-box;
}

@media (max-width: 1024px) {
  .work .carousel-container {
    padding: 0 60px;
  }
}

.work .carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  gap: 30px;
  will-change: transform;
}

.work .project-card {
  flex: 0 0 380px;
  height: 520px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 25px;
  overflow: hidden;
  position: relative;
  transform-style: preserve-3d;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  will-change: transform, box-shadow;
}

.work .project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(255, 0, 110, 0.1) 50%, rgba(131, 56, 236, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 25px;
}

.work .project-card:hover::before {
  opacity: 1;
}

.work .project-card:hover {
  transform: translateY(-10px) rotateX(3deg);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 212, 255, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.work .card-image {
  height: 250px;
  overflow: hidden;
  position: relative;
  border-radius: 25px 25px 0 0;
}

.work .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.4s ease;
  filter: brightness(0.8) saturate(1.2);
}

.work .project-card:hover .card-image img {
  transform: scale(1.1);
  filter: brightness(1) saturate(1.3);
}

/* Shimmer effect - scoped to work section */
.work .card-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.6s ease;
  z-index: 2;
}

.work .project-card:hover .card-image::before {
  left: 100%;
}

.work .card-content {
  padding: 30px;
  /* height: 270px; */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  z-index: 3;
}

.work .card-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  background: linear-gradient(135deg, #00d4ff, #ff006e);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
  transform: translateY(0);
  transition: transform 0.3s ease;
}

.work .project-card:hover .card-title {
  transform: translateY(-3px);
}

.work .card-description {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
  opacity: 0.9;
  transform: translateY(0);
  transition: all 0.3s ease;
}

.work .project-card:hover .card-description {
  opacity: 1;
  transform: translateY(-2px);
}

.work .card-buttons {
  display: flex;
  gap: 12px;
  margin-top: auto;
}

.work .btn {
  flex: 1;
  padding: 12px 20px;
  border: none;
  border-radius: 15px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.2s cubic-bezier(0.23, 1, 0.320, 1);
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
  transform: translateY(0);
}

.work .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.work .btn.disabled {
  background: linear-gradient(135deg, #555, #777);
  cursor: not-allowed;
  opacity: 0.6;
}

.work .btn.disabled:hover {
  transform: translateY(0);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

/* Button shine effect - scoped to work section */
.work .btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.4s ease;
}

.work .btn:hover::before {
  left: 100%;
}

/* Hover overlay for detailed description - scoped to work section */
.work .hover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.85));
  border-radius: 25px;
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 30px;
  text-align: center;
  backdrop-filter: blur(10px);
  z-index: 10;
}

.work .project-card:hover .hover-overlay {
  opacity: 1;
  transform: scale(1);
}

.work .overlay-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #00d4ff;
  margin-bottom: 20px;
  text-shadow: 0 0 15px rgba(0, 212, 255, 0.6);
  transform: translateY(20px);
  transition: transform 0.4s ease 0.1s;
}

.work .project-card:hover .overlay-title {
  transform: translateY(0);
}

.work .overlay-description {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
  font-size: 1rem;
  margin-bottom: 25px;
  transform: translateY(20px);
  transition: transform 0.4s ease 0.2s;
}

.work .project-card:hover .overlay-description {
  transform: translateY(0);
}

.work .overlay-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  transform: translateY(20px);
  transition: transform 0.4s ease 0.3s;
}

.work .project-card:hover .overlay-tags {
  transform: translateY(0);
}

.work .tag {
  padding: 8px 16px;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.3), rgba(255, 0, 110, 0.3));
  border-radius: 20px;
  font-size: 0.85rem;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-weight: 500;
  backdrop-filter: blur(5px);
}

/* Overlay buttons */
.work .overlay-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 20px;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s ease 0.4s;
}

.work .project-card:hover .overlay-buttons {
  transform: translateY(0);
  opacity: 1;
}

.work .overlay-buttons .btn {
  padding: 12px 20px;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.9), rgba(255, 0, 110, 0.9));
  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  gap: 8px;
}

.work .overlay-buttons .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.work .overlay-buttons .btn.disabled {
  background: linear-gradient(135deg, rgba(100, 100, 100, 0.6), rgba(150, 150, 150, 0.6));
  cursor: not-allowed;
  opacity: 0.7;
}

.work .overlay-buttons .btn.disabled:hover {
  transform: none;
  box-shadow: none;
}

/* View All Card Styles */
.work .view-all-card {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(255, 0, 110, 0.1));
  border: 2px dashed rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  backdrop-filter: blur(10px);
}

.work .view-all-content {
  text-align: center;
  padding: 40px 20px;
}

.work .view-all-icon {
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 20px;
}

.work .view-all-title {
  font-size: 1.8rem;
  color: white;
  margin-bottom: 15px;
  font-weight: 600;
}

.work .view-all-description {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 25px;
  line-height: 1.6;
}

.work .view-all-btn {
  padding: 15px 30px;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.9), rgba(255, 0, 110, 0.9));
  color: white;
  text-decoration: none;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.work .view-all-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

/* Make cards smaller */
.work .project-card {
  width: 280px;
  height: 400px;
}

/* Navigation buttons - scoped to work section */
.work .nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.9), rgba(255, 0, 110, 0.9));
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 1.8rem;
  cursor: pointer;
  z-index: 20;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 212, 255, 0.3);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.work .nav-btn:hover {
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 212, 255, 0.5);
}

.work .nav-btn.prev {
  left: 10px;
}

.work .nav-btn.next {
  right: 10px;
}

/* Indicators - scoped to work section */
.work .indicators {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 50px;
}

.work .indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.work .indicator::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00d4ff, #ff006e);
  transition: transform 0.3s cubic-bezier(0.23, 1, 0.320, 1);
}

.work .indicator.active::before {
  transform: translate(-50%, -50%) scale(1);
}

.work .indicator.active {
  background: transparent;
  border-color: #00d4ff;
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.6);
}

/* View All Section */
.work .view-all-section {
  display: flex;
  justify-content: center;
  margin-top: 60px;
  margin-bottom: 20px;
  width: auto;
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 768px) {
  .work .view-all-section {
    width: auto;
    max-width: 95%;
  }
}

@media (max-width: 480px) {
  .work .view-all-section {
    width: auto;
    max-width: 100%;
    padding: 0 1rem;
  }
}

.work .view-all-main-btn {
  padding: 1rem 2rem;
  border-radius: 3em;
  transition: all 0.3s ease;
  color: #fff;
  background: #ffae00;
  box-shadow: 0px 4px 12px rgba(255, 174, 0, 0.4);
  font-family: "Nunito", sans-serif;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 1.4rem;
  letter-spacing: 0.05rem;
  position: relative;
  overflow: hidden;
}

.work .view-all-main-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.work .view-all-main-btn:hover::before {
  left: 100%;
}

.work .view-all-main-btn:hover {
  background: #f68c09;
  transform: translateY(-1px);
  box-shadow: 0px 6px 16px rgba(255, 174, 0, 0.6);
}

.work .view-all-main-btn i {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.work .view-all-main-btn:hover i {
  transform: translateX(5px);
}

/* Optimized floating animation for work section cards */
@keyframes work-card-float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-5px);
  }
}

.work .project-card:nth-child(2n) {
  animation: work-card-float 4s ease-in-out infinite;
  animation-delay: 0s;
}

.work .project-card:nth-child(2n+1) {
  animation: work-card-float 4s ease-in-out infinite;
  animation-delay: 2s;
}

.work .project-card:hover {
  animation: none;
}

/* Responsive design for work section */
@media (max-width: 1200px) {
  .work .project-card {
    flex: 0 0 350px;
    max-width: 95%;
  }

  .work .carousel-container {
    padding: 0 60px;
  }
}

@media (max-width: 768px) {
  .work {
    padding: 80px 15px;
  }

  .work .project-card {
    flex: 0 0 320px;
    max-width: 95%;
    height: 480px;
  }

  .work .carousel-container {
    padding: 0 40px;
    height: auto;
    min-height: 450px;
  }

  .work .nav-btn {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  .work .heading {
    font-size: 2.5rem;
  }

  .work .card-content {
    padding: 25px;
    height: 230px;
  }

  .work .card-image {
    height: 220px;
  }
}

@media (max-width: 480px) {
  .work {
    padding: 60px 10px;
  }

  .work .carousel-container {
    padding: 0 20px;
    height: auto;
  }

  .work .project-card {
    flex: 0 0 280px;
    max-width: 90%;
    height: 450px;
  }

  .work .nav-btn {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }

  .work .nav-btn.prev {
    left: -10px;
  }

  .work .nav-btn.next {
    right: -10px;
  }

  .work .view-all-section {
    width: auto;
    font-size: small;
    display: flex;
    margin: auto;
    margin-top: 60px;
    padding: 0 1rem;
  }

  .work .view-all-main-btn {
    font-size: 1.2rem;
    padding: 0.9rem 1.8rem;
  }
}

/* work section ends */

/* Entry animations for work section project cards */
.work .project-card {
  opacity: 0;
  transform: translateY(30px);
  animation: work-card-entry 0.8s ease-out forwards;
}

.work .project-card:nth-child(1) {
  animation-delay: 0.1s;
}

.work .project-card:nth-child(2) {
  animation-delay: 0.2s;
}

.work .project-card:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes work-card-entry {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* experience section starts */
.experience .timeline {
  position: relative;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

.experience .timeline::after {
  content: "";
  position: absolute;
  width: 6px;
  background: #020133;
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -3px;
  z-index: -2;
}

.experience .container {
  padding: 10px 40px;
  position: relative;
  background-color: inherit;
  width: 50%;
}

/*circles on timeline*/
.experience .container::after {
  content: "\f0b1";
  position: absolute;
  width: 25px;
  height: 25px;
  right: -17px;
  background-color: rgb(255, 255, 255);
  border: 4px solid #ff9f55;
  top: 15px;
  border-radius: 50%;
  z-index: 100;
  font-size: 1.89rem;
  text-align: center;
  font-weight: 600;
  color: #02094b;
  font-family: "Font Awesome\ 5 Free";
}

.experience .left {
  left: 0;
}

.experience .right {
  left: 50%;
}

/* arrows pointing right */
.experience .left::before {
  content: " ";
  height: 0;
  position: absolute;
  top: 22px;
  width: 0;
  z-index: 1;
  right: 30px;
  border: medium solid #f68c09;
  border-width: 10px 0 10px 10px;
  border-color: transparent transparent transparent #f68c09;
}

/* arrows pointing left  */
.experience .right::before {
  content: " ";
  height: 0;
  position: absolute;
  top: 22px;
  width: 0;
  z-index: 1;
  left: 30px;
  border: medium solid #f68c09;
  border-width: 10px 10px 10px 0;
  border-color: transparent #f68c09 transparent transparent;
}

.experience .right::after {
  left: -16px;
}

.experience .content {
  background: linear-gradient(135deg, #f68c09 0%, #ff7b00 100%);
  position: relative;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(246, 140, 9, 0.3);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.experience .content::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.experience .content:hover::before {
  left: 100%;
}

.experience .content:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(246, 140, 9, 0.5);
}

.experience .content .tag {
  font-size: 1.3rem;
  padding: 1.8rem 2rem 0.5rem 2rem;
}

.experience .content .tag h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: #1a1a1a;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
  position: relative;
  display: inline-block;
}

.experience .content .tag h2::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 50px;
  height: 3px;
  background: #1a1a1a;
  border-radius: 2px;
}

.experience .content .desc {
  margin-left: 2rem;
  padding-bottom: 1.8rem;
  padding-right: 2rem;
}

.experience .content .desc h3 {
  font-size: 1.6rem;
  font-weight: 600;
  color: #2d2d2d;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.experience .content .desc p {
  font-size: 1.3rem;
  color: #1a1a1a;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.experience .content .desc p::before {
  content: '📅';
  font-size: 1.4rem;
}

/* view all button */
.morebtn {
  display: flex;
  justify-content: center;
}

.morebtn .btn {
  position: relative;
  line-height: 0;
  padding: 1.6rem 3rem;
  border-radius: 0.5em;
  transition: 0.5s;
  color: #fff;
  background: #2506ad;
  box-shadow: 0px 5px 10px rgba(48, 68, 247, 0.6);
  text-align: center;
}

.morebtn .btn span {
  font-weight: 600;
  font-size: 1.7rem;
  font-family: "Nunito", sans-serif;
}

.morebtn .btn i {
  margin-left: 0.3rem;
  font-size: 1.5rem;
  transition: 0.3s;
}

.morebtn .btn:hover {
  background: #1a047e;
}

.morebtn .btn:hover i {
  transform: translateX(5px);
}

/* Media queries - Responsive timeline on screens less than 600px wide */
@media screen and (max-width: 600px) {
  .experience {
    min-height: 80vh;
    padding-bottom: 3rem;
  }

  .experience .timeline {
    margin-top: 2rem;
    padding-bottom: 2rem;
  }

  .experience .timeline::after {
    left: 31px;
  }

  .experience .container {
    width: 100%;
    padding-left: 8rem;
    padding-right: 2rem;
    margin-bottom: 3rem;
  }

  .experience .container::after {
    font-size: 2.2rem;
  }

  .experience .container::before {
    left: 61px;
    border: medium solid #f68c09;
    border-width: 10px 10px 10px 0;
    border-color: transparent #f68c09 transparent transparent;
  }

  .experience .left::after {
    left: 15px;
  }

  .experience .right::after {
    left: 15px;
  }

  .experience .right {
    left: 0%;
  }

  .experience .content {
    min-height: 120px;
  }

  .experience .content .tag {
    padding: 1.5rem 1.5rem 0.5rem 1.5rem;
  }

  .experience .content .tag h2 {
    font-size: 1.8rem;
    line-height: 1.3;
  }

  .experience .content .tag h2::after {
    width: 40px;
    height: 2px;
  }

  .experience .content .desc {
    margin-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .experience .content .desc h3 {
    font-size: 1.4rem;
    line-height: 1.3;
  }

  .experience .content .desc p {
    font-size: 1.2rem;
  }

  .experience .content .desc p::before {
    font-size: 1.2rem;
  }

  .morebtn {
    margin-top: 4rem;
    padding-bottom: 2rem;
  }
}

/* Tablet view for experience section */
@media screen and (min-width: 601px) and (max-width: 900px) {
  .experience .container {
    padding: 15px 40px;
  }

  .experience .content {
    min-height: 130px;
  }

  .experience .content .tag h2 {
    font-size: 2rem;
  }

  .experience .content .desc h3 {
    font-size: 1.5rem;
  }

  .experience .content .desc p {
    font-size: 1.25rem;
  }
}

/* experience media queries ends */
/* experience section ends */

/* contact section starts */
/* ===== CONTACT SECTION STYLES START ===== */
.contact {
  background: #f7f7f7;
  min-height: 100vh;
  padding: 8rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.contact-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  box-sizing: border-box;
}

@media (max-width: 968px) {
  .contact-container {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 0 1.5rem;
  }
}

/* Left Section - Contact Info */
.contact-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.8s ease;
}

.contact-left.fade-in {
  opacity: 1;
  transform: translateX(0);
}

.contact-info-wrapper {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border-radius: 2rem;
  padding: 3rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.contact-title {
  font-size: 3.5rem;
  font-weight: 700;
  color: #2506ad;
  margin-bottom: 1.5rem;
  font-family: "Poppins", sans-serif;
}

.contact-description {
  font-size: 1.6rem;
  color: #555;
  line-height: 1.8;
  margin-bottom: 3rem;
  text-transform: none;
}

.contact-info-items {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 1.2rem;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
}

.contact-info-item.fade-in {
  opacity: 1;
  transform: translateY(0);
}

.contact-info-item:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(37, 6, 173, 0.15);
}

.contact-icon {
  width: 5rem;
  height: 5rem;
  background: linear-gradient(135deg, #2506ad, #421cec);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 5px 15px rgba(37, 6, 173, 0.3);
}

.contact-icon i {
  font-size: 2rem;
  color: #fff;
}

.contact-details h4 {
  font-size: 1.8rem;
  font-weight: 600;
  color: #2506ad;
  margin-bottom: 0.5rem;
}

.contact-details p {
  font-size: 1.5rem;
  color: #666;
  text-transform: none;
}

/* Right Section - Contact Form */
.contact-right {
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.8s ease;
  transition-delay: 0.2s;
}

.contact-right.fade-in {
  opacity: 1;
  transform: translateX(0);
}

.contact-form-wrapper {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border-radius: 2rem;
  padding: 3rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.form-title {
  font-size: 3.5rem;
  font-weight: 700;
  color: #2506ad;
  margin-bottom: 2.5rem;
  font-family: "Poppins", sans-serif;
}

#contact-form .form-group {
  margin-bottom: 2rem;
}

#contact-form label {
  display: block;
  font-size: 1.5rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.8rem;
  text-transform: capitalize;
}

#contact-form input,
#contact-form textarea {
  width: 100%;
  padding: 1.4rem 1.8rem;
  font-size: 1.5rem;
  font-family: "Poppins", sans-serif;
  color: #333;
  background: rgba(255, 255, 255, 0.6);
  border: 2px solid rgba(37, 6, 173, 0.1);
  border-radius: 1rem;
  outline: none;
  transition: all 0.3s ease;
  resize: none;
}

#contact-form input::placeholder,
#contact-form textarea::placeholder {
  color: #999;
  text-transform: none;
}

#contact-form input:focus,
#contact-form textarea:focus {
  background: rgba(255, 255, 255, 0.9);
  border-color: #2506ad;
  box-shadow: 0 0 0 4px rgba(37, 6, 173, 0.1);
}

#contact-form textarea {
  min-height: 15rem;
  resize: vertical;
}

/* Send Button */
.send-btn {
  width: 100%;
  padding: 1.6rem 3rem;
  font-size: 1.7rem;
  font-weight: 700;
  font-family: "Nunito", sans-serif;
  color: #fff;
  background: linear-gradient(135deg, #2506ad, #421cec);
  border: none;
  border-radius: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  box-shadow: 0 5px 20px rgba(37, 6, 173, 0.4);
  transition: all 0.3s ease;
  letter-spacing: 0.1rem;
  text-transform: capitalize;
}

.send-btn:hover {
  background: linear-gradient(135deg, #1a047e, #2506ad);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(37, 6, 173, 0.5);
}

.send-btn:active {
  transform: translateY(-1px);
}

.send-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.send-btn i {
  font-size: 1.6rem;
  transition: transform 0.3s ease;
}

.send-btn:hover i {
  transform: translateX(5px);
}

/* Success Message */
.success-message {
  display: none;
  margin-top: 2rem;
  padding: 1.5rem 2rem;
  background: linear-gradient(135deg, #10b981, #059669);
  border-radius: 1rem;
  color: #fff;
  font-size: 1.5rem;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 5px 20px rgba(16, 185, 129, 0.3);
  animation: slideIn 0.5s ease;
}

.success-message i {
  font-size: 2rem;
}

.success-message p {
  margin: 0;
  text-transform: none;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 968px) {
  .contact-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .contact-left,
  .contact-right {
    transform: translateY(20px);
  }

  .contact-left.fade-in,
  .contact-right.fade-in {
    transform: translateY(0);
  }

  .contact-title,
  .form-title {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  .contact {
    padding: 6rem 0 3rem;
  }

  .contact-container {
    padding: 0 1.5rem;
    gap: 2.5rem;
  }

  .contact-info-wrapper,
  .contact-form-wrapper {
    padding: 2.5rem 2rem;
  }

  .contact-title,
  .form-title {
    font-size: 2.6rem;
  }

  .contact-description {
    font-size: 1.5rem;
  }

  .contact-info-item {
    padding: 1.5rem;
    gap: 1.5rem;
  }

  .contact-icon {
    width: 4.5rem;
    height: 4.5rem;
  }

  .contact-icon i {
    font-size: 1.8rem;
  }

  .contact-details h4 {
    font-size: 1.6rem;
  }

  .contact-details p {
    font-size: 1.4rem;
  }

  #contact-form label {
    font-size: 1.4rem;
  }

  #contact-form input,
  #contact-form textarea {
    padding: 1.2rem 1.5rem;
    font-size: 1.4rem;
  }

  .send-btn {
    padding: 1.4rem 2.5rem;
    font-size: 1.6rem;
  }
}

@media (max-width: 500px) {

  .contact-title,
  .form-title {
    font-size: 2.2rem;
  }

  .contact-info-wrapper,
  .contact-form-wrapper {
    padding: 2rem 1.5rem;
  }

  .contact-info-item {
    flex-direction: column;
    text-align: center;
  }

  .success-message {
    font-size: 1.4rem;
    padding: 1.2rem 1.5rem;
  }
}

/* WhatsApp Quick Contact Button */
.whatsapp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.5rem;
  padding: 1.6rem 3rem;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #fff;
  font-size: 1.7rem;
  font-weight: 700;
  font-family: "Poppins", sans-serif;
  border-radius: 1.2rem;
  text-decoration: none;
  text-transform: capitalize;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.whatsapp-btn:hover {
  background: linear-gradient(135deg, #128C7E, #075E54);
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(37, 211, 102, 0.6);
}

.whatsapp-btn:active {
  transform: translateY(-1px);
}

.whatsapp-btn i {
  font-size: 2.4rem;
  animation: pulse 2s infinite;
}

.whatsapp-btn span {
  letter-spacing: 0.05rem;
}

/* Ripple Effect */
.whatsapp-btn .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  width: 0;
  height: 0;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.whatsapp-btn:active .ripple {
  animation: ripple-animation 0.6s ease-out;
}

@keyframes ripple-animation {
  to {
    width: 300px;
    height: 300px;
    opacity: 0;
  }
}

/* ===== INTERACTIVE HOVER EFFECTS ===== */

/* Pulse Animation for Contact Icons */
.contact-icon {
  position: relative;
  animation: icon-float 3s ease-in-out infinite;
}

.contact-icon::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, #2506ad, #421cec);
  opacity: 0;
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    opacity: 0.3;
    transform: translate(-50%, -50%) scale(1.3);
  }
}

@keyframes icon-float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

/* Enhanced Hover Effect for Contact Info Items */
.contact-info-item {
  position: relative;
  overflow: hidden;
}

.contact-info-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(37, 6, 173, 0.1), transparent);
  transition: left 0.5s ease;
}

.contact-info-item:hover::before {
  left: 100%;
}

/* Ripple Effect for Send Button */
.send-btn {
  position: relative;
  overflow: hidden;
}

.send-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.send-btn:hover::before {
  width: 300px;
  height: 300px;
}

/* Glow Effect on Form Inputs */
#contact-form input:focus,
#contact-form textarea:focus {
  animation: input-glow 1.5s ease-in-out infinite;
}

@keyframes input-glow {

  0%,
  100% {
    box-shadow: 0 0 0 4px rgba(37, 6, 173, 0.1);
  }

  50% {
    box-shadow: 0 0 0 4px rgba(37, 6, 173, 0.2), 0 0 20px rgba(37, 6, 173, 0.1);
  }
}

/* Floating Particles Effect on Hover */
.contact-form-wrapper:hover {
  animation: float 3s ease-in-out infinite;
}

.contact-info-wrapper:hover {
  animation: float 3s ease-in-out infinite;
  animation-delay: 0.3s;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

/* Icon Rotation on Hover */
.contact-icon:hover i {
  animation: rotate-icon 0.6s ease;
}

@keyframes rotate-icon {
  0% {
    transform: rotate(0deg) scale(1);
  }

  50% {
    transform: rotate(180deg) scale(1.2);
  }

  100% {
    transform: rotate(360deg) scale(1);
  }
}

/* Success Message Animation Enhancement */
.success-message {
  animation: bounce-in 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes bounce-in {
  0% {
    opacity: 0;
    transform: scale(0.3) translateY(-20px);
  }

  50% {
    transform: scale(1.05) translateY(0);
  }

  70% {
    transform: scale(0.9);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Shimmer Effect for Headings */
.contact-title,
.form-title {
  position: relative;
  background: linear-gradient(90deg, #2506ad, #421cec, #2506ad);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
  to {
    background-position: 200% center;
  }
}

/* Mobile Responsive for WhatsApp Button */
@media (max-width: 768px) {
  .whatsapp-btn {
    padding: 1.4rem 2.5rem;
    font-size: 1.6rem;
  }

  .whatsapp-btn i {
    font-size: 2.2rem;
  }
}

@media (max-width: 500px) {
  .whatsapp-btn {
    padding: 1.2rem 2rem;
    font-size: 1.5rem;
    margin-top: 2rem;
  }

  .whatsapp-btn i {
    font-size: 2rem;
  }
}

/* ===== CONTACT SECTION STYLES END ===== */

/* footer section starts */
.footer {
  min-height: 10vh;
  padding-top: 0;
  background: rgb(0, 1, 43);
}

.footer .box-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  box-sizing: border-box;
  gap: 2rem;
}

@media (max-width: 768px) {
  .footer .box-container {
    grid-template-columns: 1fr;
    padding: 0 1.5rem;
  }
}

.footer .box-container .box {
  flex: 1 1 25rem;
  margin: 2.5rem;
}

.footer .box-container .box h3 {
  font-size: 2.5rem;
  color: #fff;
  padding-bottom: 1rem;
  font-weight: normal;
}

.footer .box-container .box p {
  font-size: 1.5rem;
  color: #ccc;
  padding: 0.7rem 0;
  text-transform: none;
}

.footer .box-container .box p i {
  padding-right: 1rem;
  color: #ffae00;
}

.footer .box-container .box a {
  font-size: 1.5rem;
  color: rgb(238, 238, 238);
  padding: 0.3rem 0;
  display: block;
}

.footer .box-container .box a:hover {
  color: #ffae00;
}

.footer .box-container .box .share {
  display: flex;
  flex-wrap: wrap;
  padding: 1rem 0;
}

.footer .box-container .box .share a {
  height: 4rem;
  width: 4rem;
  padding: 1rem;
  text-align: center;
  border-radius: 5rem;
  font-size: 1.7rem;
  margin-right: 1rem;
  transition: 0.2s;
  background: rgb(230, 230, 230);
  color: #02094b;
  border: none;
}

.footer .box-container .box .share a:hover {
  background: transparent;
  transform: scale(0.98);
  border: 0.1rem solid rgb(180, 178, 178);
  color: #ffae00;
}

.footer .credit {
  padding: 1rem 0 0 0;
  text-align: center;
  font-size: 1.5rem;
  font-family: "Nunito", sans-serif;
  font-weight: 600;
  color: #fff;
  border-top: 0.1rem solid #fff3;
}

.footer .credit a {
  color: #ffae00;
}

.footer .fa {
  color: #e90606;
  margin: 0 0.3rem;
  font-size: 1.5rem;
  animation: pound 0.35s infinite alternate;
}

@-webkit-keyframes pound {
  to {
    transform: scale(1.1);
  }
}

@keyframes pound {
  to {
    transform: scale(1.1);
  }
}

@media (max-width: 450px) {
  .footer .box-container {
    grid-template-columns: 1fr;
    margin: 0 2rem;
    gap: 2rem;
  }

  .footer .box-container .box {
    margin: 1.5rem 0;
    height: auto;
    min-height: auto;
  }

  .footer .box-container .box h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
  }

  .footer .box-container .box p {
    padding: 0.5rem 0;
    font-size: 1.4rem;
    line-height: 1.6;
    word-wrap: break-word;
  }

  .footer .box-container .box a {
    font-size: 1.4rem;
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.8rem;
  }

  .footer .box-container .box a i {
    font-size: 1.2rem;
  }

  .footer .box-container .box .share {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1.5rem 0;
    justify-content: flex-start;
  }

  .footer .box-container .box .share a {
    height: 4rem;
    width: 4rem;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-right: 0;
  }
}

/* Tablet and Medium Screen Support */
@media (max-width: 768px) and (min-width: 451px) {
  .footer .box-container {
    grid-template-columns: 1fr;
    margin: 0 3rem;
    gap: 1.5rem;
  }

  .footer .box-container .box {
    margin: 2rem 0;
    height: auto;
  }

  .footer .box-container .box h3 {
    font-size: 2.2rem;
  }

  .footer .box-container .box p {
    font-size: 1.4rem;
  }

  .footer .box-container .box .share {
    gap: 1.2rem;
  }
}

/* footer section ends */

/* common media queries starts*/
@media (max-width: 450px) {
  html {
    font-size: 55%;
  }

  body {
    padding-right: 0;
  }

  section {
    padding: 2rem;
  }
}

/* common media queries ends*/

/* scroll top starts */
#scroll-top {
  position: fixed;
  top: -140%;
  right: 2rem;
  padding: 1rem 1.5rem;
  font-size: 2rem;
  background: #ffae00;
  color: rgb(13, 0, 44);
  border-radius: 50%;
  transition: 1s linear;
  z-index: 1000;
}

#scroll-top.active {
  top: calc(100% - 12rem);
}

/* scroll top ends */
.image img {
  background: transparent;
  border: none;
  max-width: 100%;
  height: auto;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Coming Soon Image Styles */
.coming-soon-image {
  position: relative;
  width: 100%;
  height: 200px;
  background: #121fd9;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #0e1fda;
}

.coming-soon-overlay {
  text-align: center;
  z-index: 2;
}

.coming-soon-overlay h3 {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 15px;
  background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57);
  background-size: 400% 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: glow 3s ease-in-out infinite alternate, gradient-shift 4s ease infinite;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.coming-soon-overlay p {
  font-size: 1.1rem;
  color: #888;
  margin: 0;
  animation: fade-pulse 2s ease-in-out infinite;
}

/* Glowing gradient animation */
@keyframes glow {
  0% {
    filter: brightness(1) drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
  }

  100% {
    filter: brightness(1.2) drop-shadow(0 0 20px rgba(255, 255, 255, 0.6));
  }
}

/* Gradient color shift */
@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* Subtle fade pulse for subtitle */
@keyframes fade-pulse {

  0%,
  100% {
    opacity: 0.6;
  }

  50% {
    opacity: 1;
  }
}

/* Disabled button styles */
.btn.disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

.btn.disabled:hover {
  transform: none;
}

/* ===== TILT CARD ANIMATION CSS ===== */

/* Main container setup for 3D perspective */
.tilt-container {
  perspective: 1000px;
  perspective-origin: center center;
}

/* Main tilt card with 3D transforms */
.tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.1s ease-out;
  will-change: transform;
  border-radius: 20px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  overflow: hidden;
  position: relative;
}

/* Enhanced shadow and glow on hover */
.tilt-card:hover {
  box-shadow:
    0 35px 60px rgba(0, 0, 0, 0.2),
    0 0 30px rgba(139, 92, 246, 0.1);
}

/* Image container animations */
.tilt-image-container {
  transition: transform 0.3s ease;
}

.tilt-image {
  transition: all 0.3s ease;
  border-radius: 15px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.tilt-image:hover {
  transform: scale(1.02) translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Form field animations */
.tilt-field {
  position: relative;
  transition: transform 0.3s ease;
}

.tilt-field:hover {
  transform: translateY(-2px);
}

/* Input field styling and animations */
.tilt-input,
.tilt-textarea {
  transition: all 0.3s ease;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  padding-left: 3rem;
}

.tilt-input:focus,
.tilt-textarea:focus {
  border-color: #8b5cf6;
  box-shadow:
    0 0 0 3px rgba(139, 92, 246, 0.1),
    0 5px 15px rgba(139, 92, 246, 0.1);
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 1);
}

/* Icon animations */
.tilt-icon {
  transition: all 0.3s ease;
  color: #6b7280;
}

.tilt-field:hover .tilt-icon,
.tilt-message:hover .tilt-icon {
  color: #8b5cf6;
  transform: scale(1.1);
}

.tilt-input:focus+.tilt-icon,
.tilt-textarea:focus+.tilt-icon {
  color: #8b5cf6;
  transform: scale(1.1) translateX(2px);
}

/* Message field specific styling */
.tilt-message {
  position: relative;
  transition: transform 0.3s ease;
}

.tilt-message:hover {
  transform: translateY(-2px);
}

.tilt-textarea {
  resize: vertical;
  min-height: 120px;
  padding-top: 1rem;
  padding-left: 3rem;
}

/* Submit button animations */
.tilt-submit-btn {
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  color: white;
  border: none;
  padding: 1rem 2.5rem;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(139, 92, 246, 0.3);
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
}

.tilt-submit-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 30px rgba(139, 92, 246, 0.4);
}

.tilt-submit-btn:active {
  transform: translateY(-1px) scale(0.98);
}

.tilt-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Button icon animation */
.tilt-btn-icon {
  margin-left: 0.5rem;
  transition: transform 0.3s ease;
}

.tilt-submit-btn:hover .tilt-btn-icon {
  transform: translateX(3px);
}

/* Form group spacing */
.tilt-form-group {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Button area centering */
.tilt-button-area {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}

/* Heading enhancements */
.tilt-heading {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.tilt-heading:hover {
  transform: translateY(-2px);
}

/* Loading state styles */
.tilt-submit-btn.loading {
  background: linear-gradient(135deg, #6b7280, #4b5563);
  cursor: wait;
}

.tilt-submit-btn.success {
  background: linear-gradient(135deg, #10b981, #059669);
}

/* Floating animation keyframes */
@keyframes tilt-float {

  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }

  33% {
    transform: translateY(-10px) rotate(1deg);
  }

  66% {
    transform: translateY(5px) rotate(-1deg);
  }
}

/* Apply floating animation to image on hover */
.tilt-image-container:hover .tilt-image {
  animation: tilt-float 3s ease-in-out infinite;
}

/* Subtle pulse animation for the entire card */
@keyframes tilt-pulse {

  0%,
  100% {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
  }

  50% {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15),
      0 0 20px rgba(139, 92, 246, 0.1);
  }
}

.tilt-card:hover {
  animation: tilt-pulse 2s ease-in-out infinite;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .tilt-card {
    border-radius: 15px;
    margin: 1rem;
  }

  .tilt-field:hover,
  .tilt-message:hover {
    transform: none;
  }

  .tilt-submit-btn:hover {
    transform: scale(1.02);
  }
}

/* Accessibility improvements */
.tilt-input:focus,
.tilt-textarea:focus {
  outline: none;
}

.tilt-submit-btn:focus {
  outline: 2px solid #8b5cf6;
  outline-offset: 2px;
}

/* Smooth transitions for all tilt elements */
.tilt-section * {
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Additional hover effects for better UX */
.tilt-form:hover .tilt-field:not(:hover) {
  opacity: 0.8;
}

.tilt-form:hover .tilt-message:not(:hover) {
  opacity: 0.8;
}

.tilt-form .tilt-field:hover,
.tilt-form .tilt-message:hover {
  opacity: 1 !important;
}

/* Education Modal Styles - Enhanced */
.edu-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  max-width: 100vw;
  background: rgba(20, 20, 40, 0.85);
  backdrop-filter: blur(5px);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.edu-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.edu-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -40%) scale(0.8);
  min-width: 320px;
  max-width: 95vw;
  width: 550px;
  background: linear-gradient(135deg, #1e1e2e, #2d2d44);
  color: #fff;
  border-radius: 2rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(255, 217, 0, 0.3);
  z-index: 9999;
  padding: 3rem 2.5rem 2.5rem 2.5rem;
  opacity: 0;
  pointer-events: none;
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  display: flex;
  flex-direction: column;
  align-items: center;
  max-height: 90vh;
  overflow-y: auto;
}

.edu-modal.active {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.edu-modal::-webkit-scrollbar {
  width: 8px;
}

.edu-modal::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.edu-modal::-webkit-scrollbar-thumb {
  background: #ffd900;
  border-radius: 10px;
}

.edu-modal img {
  width: 100%;
  max-width: 100%;
  border-radius: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  border: 3px solid rgba(255, 217, 0, 0.2);
  transition: transform 0.3s ease;
}

.edu-modal img:hover {
  transform: scale(1.02);
}

.edu-modal h3 {
  margin: 0.5rem 0 1rem 0;
  font-size: 2.4rem;
  text-align: center;
  color: #ffd900;
  font-weight: 700;
  line-height: 1.3;
}

.edu-modal p {
  font-size: 1.6rem;
  margin-bottom: 2rem;
  text-align: center;
  line-height: 2;
  color: #ffffff;
  text-transform: none;
  font-weight: 400;
}

.edu-modal-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  background: linear-gradient(135deg, #ffd900, #ffed4e);
  color: #181c2f;
  font-weight: 700;
  font-size: 1.6rem;
  padding: 1.2rem 2.5rem;
  border-radius: 1rem;
  text-decoration: none;
  box-shadow: 0 5px 20px rgba(255, 217, 0, 0.4);
  transition: all 0.3s ease;
  text-transform: capitalize;
}

.edu-modal-link:hover {
  background: linear-gradient(135deg, #fff200, #ffd900);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 217, 0, 0.6);
}

.edu-modal-link:active {
  transform: translateY(-1px);
}

.edu-modal-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  font-size: 3rem;
  color: #ffd900;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
  line-height: 1;
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 217, 0, 0.1);
}

.edu-modal-close:hover {
  color: #fff;
  background: rgba(255, 217, 0, 0.2);
  transform: rotate(90deg);
}

@media (max-width: 600px) {
  .edu-modal {
    width: 92vw;
    min-width: 0;
    padding: 2.5rem 1.5rem 1.5rem 1.5rem;
  }

  .edu-modal img {
    max-width: 100%;
  }

  .edu-modal h3 {
    font-size: 2rem;
  }

  .edu-modal p {
    font-size: 1.4rem;
  }

  .edu-modal-link {
    font-size: 1.4rem;
    padding: 1rem 2rem;
  }

  .edu-modal-close {
    top: 1rem;
    right: 1rem;
    font-size: 2.5rem;
  }
}

/* ===== COMPREHENSIVE RESPONSIVE FIXES ===== */

/* Prevent horizontal overflow on all screen sizes */
* {
  max-width: 100%;
}

html,
body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  position: relative;
}

/* Ensure all containers respect viewport width */
.container,
.row,
.box-container,
.timeline,
.carousel-container {
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

/* Fix canvas and fixed elements */
canvas,
#tsparticles,
#tsparticles-work {
  max-width: 100% !important;
  width: 100% !important;
}

/* Responsive typography improvements */
@media (max-width: 768px) {
  html {
    font-size: 58%;
  }

  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 56%;
  }
}

@media (max-width: 360px) {
  html {
    font-size: 54%;
  }
}

/* Ensure buttons don't overflow */
.btn,
button,
a.btn {
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 480px) {

  .btn,
  button,
  a.btn {
    white-space: normal;
    word-wrap: break-word;
  }
}

/* Fix galaxy container on very small screens */
@media (max-width: 360px) {
  #galaxy-container {
    display: none;
  }

  .moon,
  .sun,
  .planet {
    display: none;
  }
}

/* Additional navbar improvements for small screens */
@media (max-width: 360px) {
  header .logo {
    font-size: 1.6rem;
  }

  #menu {
    font-size: 2.5rem;
  }
}