/* Import Google font - Poppins */
@import url("https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,100..900;1,100..900&family=Roboto+Mono:ital,wght@0,100..700;1,100..700&display=swap");

/* Hero Section with Creative Design */
.hero-section {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  background: linear-gradient(135deg, #0066cc, #1e88e5, #0082e6, #3498db);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
}

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

.hero-parallax {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.hero-content {
  position: relative;
  padding: 2rem;
  text-align: center;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
}

/* Floating animation circles */
.hero-section::before,
.hero-section::after {
  content: '';
  position: absolute;
  width: 40vw;
  height: 40vw;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  animation: float 10s infinite alternate ease-in-out;
}

.hero-section::before {
  top: -20%;
  right: -10%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, rgba(46, 134, 222, 0.05) 100%);
  animation-delay: -5s;
}

.hero-section::after {
  bottom: -20%;
  left: -10%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(54, 162, 235, 0.05) 100%);
}

@keyframes float {
  0% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-30px) scale(1.05) rotate(5deg);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

/* Particle animation */
.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.particle {
  position: absolute;
  display: block;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  pointer-events: none;
}

.particle:nth-child(1) {
  width: 6px;
  height: 6px;
  top: 20%;
  left: 20%;
  animation: particle-animation-1 60s linear infinite;
  opacity: 0.7;
  box-shadow: 0 0 10px 2px rgba(255, 255, 255, 0.7);
}

.particle:nth-child(2) {
  width: 4px;
  height: 4px;
  top: 60%;
  left: 70%;
  animation: particle-animation-2 50s linear infinite;
  opacity: 0.5;
  box-shadow: 0 0 8px 2px rgba(255, 255, 255, 0.6);
}

.particle:nth-child(3) {
  width: 8px;
  height: 8px;
  top: 80%;
  left: 10%;
  animation: particle-animation-3 70s linear infinite;
  opacity: 0.6;
  box-shadow: 0 0 12px 2px rgba(255, 255, 255, 0.7);
}

.particle:nth-child(4) {
  width: 5px;
  height: 5px;
  top: 30%;
  left: 85%;
  animation: particle-animation-4 55s linear infinite;
  opacity: 0.8;
  box-shadow: 0 0 9px 2px rgba(45, 156, 219, 0.8);
}

.particle:nth-child(5) {
  width: 7px;
  height: 7px;
  top: 70%;
  left: 40%;
  animation: particle-animation-5 65s linear infinite;
  opacity: 0.7;
  box-shadow: 0 0 11px 2px rgba(255, 255, 255, 0.7);
}

@keyframes particle-animation-1 {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(100vw, -50vh, 0);
  }
}

@keyframes particle-animation-2 {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-100vw, 100vh, 0);
  }
}

@keyframes particle-animation-3 {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(80vw, -80vh, 0);
  }
}

@keyframes particle-animation-4 {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-70vw, 70vh, 0);
  }
}

@keyframes particle-animation-5 {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(90vw, 60vh, 0);
  }
}

/* Text container with 3D effect */
.hero-text-container {
  animation: fadeInUp 1.5s forwards 0.5s;
  position: relative;
  perspective: 1000px;
  transform-style: preserve-3d;
}

.hero-main-text {
  font-size: 5.5rem;
  font-weight: 700;
  font-family: "Roboto Mono", monospace;
  color: white;
  margin-bottom: 0.5rem;
  text-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  letter-spacing: -1px;
  position: relative;
  animation: textFloat 5s ease-in-out infinite;
}

@keyframes textFloat {
  0% {
    transform: translateY(0px) rotate3d(1, 1, 1, 0deg);
  }
  50% {
    transform: translateY(-10px) rotate3d(1, 1, 1, 3deg);
  }
  100% {
    transform: translateY(0px) rotate3d(1, 1, 1, 0deg);
  }
}

.hero-main-text .highlight {
  background: linear-gradient(90deg, #dfd997, #ede970);
  background-size: 400% 400%;
  animation: gradient 8s ease infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}

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

.hero-typewriter {
  margin-top: 1.5rem;
  font-size: 2.5rem;
  min-height: 3.5rem;
  font-family: "Raleway", sans-serif;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.typewriter {
  color: #bbef7a;
  font-weight: 600;
  border-right: 4px solid #81d47e;
  padding-right: 6px;
  animation: blinkCursor 0.8s step-end infinite;
  position: relative;
}

.typewriter::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(133, 218, 155, 0.5);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.typewriter:hover::after {
  transform: scaleX(1);
}

/* Mouse scroll indicator - repositioned */
.hero-scroll-indicator {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  animation: fadeIn 1s forwards 2s;
  z-index: 10;
}

.mouse {
  width: 28px;
  height: 50px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 100px;
  position: relative;
  margin-bottom: 10px;
}

.wheel {
  position: absolute;
  left: 50%;
  top: 15%;
  transform: translateX(-50%);
  width: 4px;
  height: 10px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 100px;
  animation: mouseScroll 2s ease-out infinite;
}

.scroll-arrow {
  margin-top: 5px;
  display: block;
  width: 10px;
  height: 10px;
}

.scroll-arrow span {
  display: block;
  width: 10px;
  height: 10px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.7);
  border-right: 2px solid rgba(255, 255, 255, 0.7);
  transform: rotate(45deg);
  margin: -10px 0;
  animation: mouseArrow 2s infinite;
}

.scroll-arrow span:nth-child(2) {
  animation-delay: -0.2s;
}

.scroll-arrow span:nth-child(3) {
  animation-delay: -0.4s;
}

/* Improved divider that blends sections */
.shape-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  transform: rotate(180deg);
  pointer-events: none;
}

.shape-divider svg {
  position: relative;
  display: block;
  width: calc(150% + 1.3px);
  height: 80px;
}

.shape-divider .shape-fill {
  fill: #FFFFFF;
}

/* Content sections styling for better color consistency */
.container {
  background-color: #ffffff;
  position: relative;
  padding: 80px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 60px;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
}

.container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 150px;
  pointer-events: none;
}

.text-section {
  flex: 1;
  min-width: 300px;
  font-size: 1.2rem;
  line-height: 1.6;
  padding: 60px 40px;
}

.gradient-text {
  background: linear-gradient(90deg, #0082e6, #50c9ff);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes blinkCursor {
  from, to {
    border-color: transparent;
  }
  50% {
    border-color: #50c9ff;
  }
}

@keyframes mouseScroll {
  0% {
    transform: translateX(-50%) translateY(0);
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  100% {
    transform: translateX(-50%) translateY(15px);
    opacity: 0;
  }
}

@keyframes mouseArrow {
  0% {
    opacity: 0;
    transform: rotate(45deg) translate(-15px, -15px);
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: rotate(45deg) translate(0, 0);
  }
}

/* Responsive styles for hero section */
@media (max-width: 992px) {
  .hero-main-text {
    font-size: 4.5rem;
  }
  
  .hero-typewriter {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .hero-main-text {
    font-size: 3.5rem;
  }
  
  .hero-typewriter {
    font-size: 1.8rem;
  }
  
  .hero-scroll-indicator {
    bottom: 60px;
  }
}

@media (max-width: 480px) {
  .hero-main-text {
    font-size: 2.8rem;
  }
  
  .hero-typewriter {
    font-size: 1.5rem;
  }
  
  .hero-content {
    padding: 1rem;
  }
}

/* Scroll Animations */
.reveal {
  position: relative;
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Import Google font - Poppins */
@import url("https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,100..900;1,100..900&family=Roboto+Mono:ital,wght@0,100..700;1,100..700&display=swap");

nav {
  background: #0082e6;
  height: 80px;
  width: 100%;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Add a subtle shadow */
  z-index: 9999; /* Increased z-index for overlay priority */
  position: sticky; /* Make the navbar sticky */
  top: 0; /* Stick to the top of the page */
  display: flex; /* Use flexbox for alignment */
  align-items: center; /* Vertically center items */
  justify-content: space-between; /* Space between logo and menu */
  gap: 10px; /* Add spacing between the hamburger menu and the logo */
}
label.logo {
  color: white;
  font-size: 40px;
  line-height: 80px;
  font-weight: bold;
  display: flex; /* Use flexbox for alignment */
  align-items: center; /* Vertically center the text */
  justify-content: center; /* Horizontally center the text */
  padding: 0; /* Remove extra padding */
  font-family: "Roboto mono", monospace;
  padding-left: 20px; /* Added padding for large screens */
}
nav ul {
  display: flex; /* Use flexbox for horizontal alignment */
  align-items: center; /* Vertically center menu items */
  margin: 0; /* Remove default margin */
  padding: 0; /* Remove default padding */
  list-style: none; /* Remove bullet points */
}
nav ul li {
  display: inline-block;
  line-height: 80px;
  margin: 0 10px; /* Add consistent spacing between items */
}
nav ul li a {
  color: white;
  font-size: 17px;
  padding: 7px 13px;
  border-radius: 3px;
  text-transform: uppercase;
  transition: background 0.5s ease, color 0.5s ease; /* <-- apply transition here */
}

a.active,
a:hover {
  background: #1b9bff;
  text-decoration: none;
}

.checkbtn {
  font-size: 22px;
  color: white;
  float: right;
  line-height: 80px;
  margin-right: 0px;
  cursor: pointer;
  display: none;
  margin-left: 10px; /* Added margin-left for spacing */
}
#check {
  display: none;
}
@media (max-width: 1050px) {
  label.logo {
    padding-left: 0;
    font-size: 40px;
  }
  nav ul li a {
    font-size: 16px;
  }
  #check:checked ~ ul {
    left: 0;
  }
}
/* Responsive media query code for small screen */
@media (max-width: 890px) {
  nav {
    justify-content: flex-start; /* aligns items to left */
  }

  label.logo {
    margin-right: auto; /* pushes other elements away */
    font-size: 22px;
  }

  .checkbtn {
    display: block;
  }
  .ohhello {
    position: fixed;
    width: 100%;
    height: 100vh;
    background: #2c3e50;
    top: 80px;
    left: -100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    transition: all 0.5s;
    padding-top: 40px;
  }
  
  #check:checked ~ .ohhello {
    left: 0;
  }
  
  nav ul li {
    display: block;
    margin: 20px 0; /* Reduced vertical spacing */
    line-height: 25px; /* Adjusted line height */
    width: 100%; /* Make items take full width */
    text-align: center; /* Center text inside items */
  }
  nav ul li a {
    font-size: 20px;
  }
  a:hover,
  a.active {
    background: none;
    color: #0082e6;
  }
  #check:checked ~ ul {
    left: 0;
  }
}

/* Models Section Styling */
.models-section {
  padding: 4rem 0;
  background-color: #fff;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  background: linear-gradient(90deg, #0082e6, #50c9ff);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.models-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.models-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  width: 100%;
}

.model-card {
  position: relative;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: auto; /* Changed from fixed height to auto */
  min-height: 450px; /* Added minimum height instead */
  transform: perspective(1000px) rotateX(2deg) rotateY(-2deg) !important; /* Added !important to ensure it's applied */
}

.model-card:hover {
  transform: perspective(1000px) rotateX(0deg) rotateY(0deg) translateY(-5px) !important; /* Added !important */
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.model-card dotlottie-player {
  width: 100%;
  height: 300px;
  background-color: #f8f9fa;
}

.card-content {
  padding: 1.5rem;
  background-color: white;
  display: flex;
  flex-direction: column;
  flex-grow: 1; /* Allow content to grow */
  justify-content: space-between; /* Space content evenly */
}

.card-content h3 {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  color: #333;
}

.card-content p {
  margin: 0 0 1rem;
  color: #666;
}

.model-button {
  background-color: #3880df;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: auto; /* Push button to bottom of card */
  align-self: flex-start; /* Align button to the left */
}

.model-button:hover {
  background-color: #2a65b8;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .models-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .models-grid {
    grid-template-columns: 1fr;
    padding: 0 1rem;
  }
  
  .section-title {
    text-align: center;
    padding-left: 0;
  }
  
  .model-card {
    height: auto;
  }
  
  .model-card dotlottie-player {
    height: 250px;
  }
}

/* Home Page Fun Cards Styling */
.home-models-section {
  padding: 4rem 0;
  background-color: #ffffff;
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.home-models-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to bottom, rgba(0, 130, 230, 0.03), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.home-models-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.home-models-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  width: 100%;
  perspective: 1000px;
}

.home-model-card {
  position: relative;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  height: auto;
  min-height: 450px;
  transform-style: preserve-3d;
  width: 100%; /* Ensure full width */
  max-width: 100%; /* Prevent overflow */
  box-sizing: border-box; /* Include padding in width calculation */
  border-top: 3px solid transparent;
  background-image: linear-gradient(white, white), linear-gradient(90deg, #0082e6, #50c9ff);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

.home-model-card:nth-child(1) {
  transform: rotateZ(5deg) !important;
}

.home-model-card:nth-child(2) {
  transform: rotateZ(-5deg) !important;
}

.home-model-card:nth-child(3) {
  transform: rotateZ(7deg) !important;
}

.home-model-card:hover {
  transform: perspective(1000px) rotateX(0deg) rotateY(0deg) translateY(-5px) !important;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.home-model-card dotlottie-player {
  width: 100%;
  height: 300px;
  background-color: #f8f9fa;
}

.home-card-content {
  padding: 1.5rem;
  background-color: white;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
  width: 100%; /* Ensure full width */
  box-sizing: border-box; /* Include padding in width calculation */
}

.home-card-content h3 {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  color: #333;
}

.home-card-content p {
  margin: 0 0 1rem;
  color: #666;
}

.home-model-button {
  background: linear-gradient(90deg, #0082e6, #50c9ff) !important;
  color: white !important;
  border: none !important;
  padding: 12px 24px !important;
  border-radius: 30px !important;
  font-family: "Roboto Mono", monospace !important;
  font-size: 1rem !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  text-decoration: none !important;
  display: inline-block !important;
  margin-top: 15px !important;
  font-weight: 500 !important;
  box-shadow: 0 4px 10px rgba(0, 130, 230, 0.2) !important;
}

.home-model-button:hover, 
.home-model-button:focus {
  background: linear-gradient(90deg, #0066cc, #0082e6) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 12px rgba(0, 130, 230, 0.3) !important;
  text-decoration: none !important;
  color: white !important;
}

/* Responsive adjustments for home cards */
@media (max-width: 992px) {
  .home-models-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .home-models-section {
    padding: 2rem 0;
  }
  
  .home-models-container {
    padding: 0 1.25rem; /* Increase padding for consistent margins */
    width: 100%;
    box-sizing: border-box;
  }
  
  .home-models-grid {
    grid-template-columns: 1fr;
    padding: 0;
    gap: 1.5rem;
    width: 100%;
  }
  
  .section-title {
    text-align: center;
    padding-left: 0;
    font-size: 2rem;
    margin-bottom: 1.5rem;
  }
  
  .home-model-card {
    height: auto;
    min-height: 400px;
    transform: none !important;
    margin: 0 auto;
    max-width: calc(100% - 20px); /* Add some margin on sides */
    width: 100%;
  }
  
  .home-model-card:nth-child(1),
  .home-model-card:nth-child(2),
  .home-model-card:nth-child(3) {
    transform: perspective(1000px) rotateX(0) rotateY(0) !important;
  }
  
  .home-model-card:hover {
    transform: translateY(-5px) !important;
  }
  
  .home-model-card dotlottie-player {
    height: 200px; /* Reduce height on mobile */
  }
  
  .home-card-content {
    padding: 1rem; /* Reduce padding */
  }
  
  .home-card-content h3 {
    font-size: 1.3rem; /* Smaller font size */
  }
  
  .home-card-content p {
    font-size: 0.9rem; /* Smaller font size */
    margin-bottom: 0.75rem;
  }
  
  .home-model-button {
    padding: 8px 16px;
    font-size: 0.9rem;
  }
}

/* Extra small devices */
@media (max-width: 480px) {
  .home-models-container {
    padding: 0 1.25rem; /* Increase padding for extra small devices */
  }
  
  .home-model-card {
    max-width: calc(100% - 10px);
  }
  
  .home-card-content h3 {
    font-size: 1.2rem;
  }
  
  .home-model-button {
    padding: 7px 15px;
    font-size: 0.85rem;
  }
}

/* Fusion Web Button Styling */
.fusion-web-button {
  background: linear-gradient(90deg, #0082e6, #50c9ff) !important;
  color: white !important;
  border: none !important;
  padding: 12px 24px !important;
  border-radius: 30px !important;
  font-family: "Roboto Mono", monospace !important;
  font-size: 1rem !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  text-decoration: none !important;
  display: inline-block !important;
  margin-top: 15px !important;
  font-weight: 500 !important;
  box-shadow: 0 4px 10px rgba(0, 130, 230, 0.2) !important;
}

.fusion-web-button:hover, 
.fusion-web-button:focus {
  background: linear-gradient(90deg, #0066cc, #0082e6) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 12px rgba(0, 130, 230, 0.3) !important;
  text-decoration: none !important;
  color: white !important;
}

.fusion-web-button:active {
  transform: translateY(0) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

/* Display controls for desktop vs mobile buttons */
.fusion-web-button.desktop {
  display: inline-block !important; /* Visible by default (on desktop) */
}

.fusion-web-button.mobile {
  display: none !important; /* Hidden by default */
}

@media (max-width: 767px) {
  .fusion-web-button.desktop {
    display: none !important; /* Hide on mobile */
  }
  
  .fusion-web-button.mobile {
    display: inline-block !important; /* Show on mobile */
  }
}

/* Skills showcase styling */
.skills-showcase {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
  justify-content: center;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.skill-pill {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 8px 16px;
  border-radius: 50px;
  color: white;
  font-family: "Raleway", sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: default;
  transform: translateY(0);
  animation: fadeInSkills 1s forwards;
  animation-delay: calc(var(--i, 0) * 0.1s + 1s);
  opacity: 0;
}

.skill-pill:nth-child(1) { --i: 1; }
.skill-pill:nth-child(2) { --i: 2; }
.skill-pill:nth-child(3) { --i: 3; }
.skill-pill:nth-child(4) { --i: 4; }
.skill-pill:nth-child(5) { --i: 5; }
.skill-pill:nth-child(6) { --i: 6; }

.skill-pill:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

/* Avatar Assistant styling */
.avatar-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  transition: all 0.3s ease;
}

.avatar-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.avatar {
  width: 100px;
  height: 100px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  backdrop-filter: blur(5px);
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: all 0.3s ease;
}

.avatar:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.avatar lottie-player,
.avatar dotlottie-player {
  width: 100%;
  height: 100%;
}

.avatar-speech-bubble {
  position: absolute;
  bottom: 110px;
  right: 10px;
  background: #FFFFFF;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  max-width: 360px;
  width: 360px;
  transform-origin: bottom right;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.3s ease;
  pointer-events: none;
  box-sizing: border-box;
  padding: 20px;
}

.avatar-speech-bubble::after {
  content: '';
  position: absolute;
  bottom: -10px;
  right: 25px;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid #FFFFFF;
}

.avatar-speech-bubble.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.avatar-speech-bubble p {
  color: #333;
  font-family: "Raleway", sans-serif;
  margin: 0 0 15px 0;
  font-size: 0.95rem;
  line-height: 1.5;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.avatar-actions {
  display: flex;
  gap: 10px;
  flex-wrap: nowrap;
  justify-content: space-between;
  width: 100%;
}

.avatar-action {
  padding: 10px 0;
  background: #4E96F9;
  color: white;
  border: none;
  border-radius: 30px;
  font-family: "Raleway", sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  flex: 1;
  text-align: center;
  min-width: 90px;
  white-space: nowrap;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.avatar-action:hover {
  background: #3b82f6;
  transform: translateY(-2px);
  box-shadow: 0 5px 10px rgba(0, 130, 230, 0.2);
}

/* Specific styling for the back button */
.back-button {
  background: #6c757d;
  min-width: 70px;
}

.back-button:hover {
  background: #5a6268;
}

/* Responsive styles for avatar */
@media (max-width: 768px) {
  .avatar {
    width: 80px;
    height: 80px;
  }
  
  .avatar-speech-bubble {
    bottom: 90px;
    max-width: 320px;
    width: 320px;
    padding: 15px;
  }
  
  .avatar-action {
    padding: 8px 0;
    font-size: 0.9rem;
    min-width: 80px;
  }
}

/* Interactive Bubbles/Drops styling */
.bubbles-container {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 40px;
  justify-content: center;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  perspective: 1000px;
  position: relative;
  height: 200px;
}

.bubble {
  position: absolute;
  background: radial-gradient(
    circle at 70% 30%,
    rgba(255, 255, 255, 0.8) 0%,
    rgba(114, 191, 236, 0.4) 40%,
    rgba(54, 162, 235, 0.6) 100%
  );
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  border-radius: 50%;
  box-shadow: 
    inset 0 0 15px rgba(255, 255, 255, 0.6),
    inset 0 0 20px rgba(255, 255, 255, 0.3),
    0 0 10px rgba(0, 99, 220, 0.5);
  backdrop-filter: blur(5px);
  font-family: "Raleway", sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  transition: transform 0.3s ease, opacity 0.3s;
  transform-style: preserve-3d;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  cursor: pointer;
  width: 80px;
  height: 80px;
  opacity: 0;
  animation: float-in 1s forwards, float-bubble 5s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 0.2s), calc(var(--i, 0) * 0.2s + 1s);
  z-index: 1;
}

.bubble::before {
  content: '';
  position: absolute;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  top: 20%;
  left: 25%;
  z-index: 2;
}

.bubble::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  top: 35%;
  left: 40%;
  z-index: 2;
}

.bubble:nth-child(1) { --i: 1; left: 15%; top: 30%; }
.bubble:nth-child(2) { --i: 2; left: 35%; top: 50%; }
.bubble:nth-child(3) { --i: 3; left: 55%; top: 20%; }
.bubble:nth-child(4) { --i: 4; left: 75%; top: 60%; }
.bubble:nth-child(5) { --i: 5; left: 25%; top: 70%; }
.bubble:nth-child(6) { --i: 6; left: 65%; top: 80%; }
.bubble:nth-child(7) { --i: 7; left: 10%; top: 10%; }
.bubble:nth-child(8) { --i: 8; left: 85%; top: 30%; }
.bubble:nth-child(9) { --i: 9; left: 5%; top: 50%; }
.bubble:nth-child(10) { --i: 10; left: 90%; top: 10%; }

.bubble-sm {
  width: 60px;
  height: 60px;
  font-size: 0.8rem;
}

.bubble-lg {
  width: 100px;
  height: 100px;
  font-size: 1.1rem;
}

/* Bubble animations */
@keyframes float-in {
  0% {
    opacity: 0;
    transform: scale(0.3) translateY(40px);
  }
  70% {
    opacity: 0.7;
    transform: scale(1.05) translateY(-5px);
  }
  100% {
    opacity: 0.9;
    transform: scale(1) translateY(0);
  }
}

@keyframes float-bubble {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  30% {
    transform: translateY(-10px) rotate(3deg);
  }
  60% {
    transform: translateY(5px) rotate(-2deg);
  }
  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

.bubble:nth-child(even) {
  animation-duration: 6s;
}

.bubble:nth-child(3n) {
  animation-delay: calc(var(--i, 0) * 0.2s + 0.5s), calc(var(--i, 0) * 0.2s + 1.5s);
}

.bubble:hover {
  transform: scale(1.08) translateY(-5px);
  box-shadow: 
    inset 0 0 20px rgba(255, 255, 255, 0.8),
    inset 0 0 30px rgba(255, 255, 255, 0.4),
    0 0 15px rgba(0, 99, 220, 0.7);
}

/* Bubble popping animation */
@keyframes bubble-pop {
  0% {
    transform: scale(1);
    opacity: 0.9;
  }
  20% {
    transform: scale(1.1);
  }
  40% {
    transform: scale(0.9);
    opacity: 0.9;
  }
  60% {
    transform: scale(1.15);
    opacity: 0.6;
  }
  100% {
    transform: scale(0.1);
    opacity: 0;
  }
}

.bubble.popping {
  animation: bubble-pop 0.5s ease-out forwards;
  pointer-events: none;
}

/* Water splash effect */
.splash {
  position: absolute;
  width: 3px;
  height: 8px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  transform-origin: bottom center;
  opacity: 0;
  z-index: 2;
}

@keyframes splash {
  0% {
    transform: scale(0.1, 0.1) rotate(0deg);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: scale(1, 3) rotate(var(--rotation));
    opacity: 0;
  }
}

/* Timeline styling */
.timeline-container {
    padding: 40px 20px;
    position: relative;
    max-width: 100%;
    overflow: hidden;
}

.timeline-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding-top: 40px;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    margin-bottom: 50px;
}

.timeline-header h1 {
    font-family: 'Raleway', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #4285f4;
    margin-top: 0;
}

.timeline-description {
    text-align: right;
    max-width: 40%;
    color: #666;
    font-size: 1rem;
    line-height: 1.5;
}

.timeline-line {
    position: absolute;
    width: 4px; /* Increased from 2px to 4px for better visibility */
    background-color: #E0E0E0;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.timeline-dot-top, 
.timeline-dot-bottom {
    position: absolute;
    width: 12px;
    height: 12px;
    background-color: #E0E0E0;
    border-radius: 50%;
    left: 50%;
    transform: translateX(-50%);
}

.timeline-dot-top {
    top: 0;
}

.timeline-dot-bottom {
    bottom: 0;
}

/* Year marker styling - fixed positioning */
.year-marker {
    width: 50px;
    height: 50px;
    background-color: #2c3e50;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    position: relative;
    margin: 50px 0;
    z-index: 3;
    margin-left: -25px; /* This centers it on the line */
    left: 50%;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.year-marker.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-project {
    position: relative;
    width: 100%;
    display: flex;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.timeline-project.visible {
    opacity: 1;
    transform: translateY(0);
}

.project-dot {
    position: absolute;
    width: 18px;
    height: 18px;
    background-color: #4285f4;
    border-radius: 50%;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    transition: all 0.3s ease;
}

.timeline-project:hover .project-dot {
    transform: translateX(-50%) scale(1.2);
    background-color: #2e73db;
}

.right-project .project-card {
    margin-left: 55%;
    width: 45%;
}

.left-project .project-card {
    margin-right: 55%;
    width: 45%;
    margin-left: 0;
}

/* Project card styling enhancements */
.project-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    padding: 25px;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    border-top: 3px solid transparent;
    background-image: linear-gradient(white, white), linear-gradient(90deg, #4285f4, #2c3e50);
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

.project-card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transform: translateY(-7px);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.project-title {
    margin: 0;
    padding: 0;
    color: #2c3e50;
    font-size: 1.25rem;
    font-weight: 600;
    position: relative;
    display: inline-block;
}

.project-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #4285f4;
    transition: width 0.3s ease;
}

.project-card:hover .project-title::after {
    width: 100%;
}

.github-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 7px;
    border-radius: 50%;
    background-color: #f5f5f5;
    color: #333;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.github-link:hover {
    background-color: #2c3e50;
    color: white;
    transform: translateY(-3px) rotate(15deg);
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0;
}

.tech {
    background-color: #f5f5f5;
    color: #555;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.project-card:hover .tech {
    background-color: #e6f2ff;
    color: #4285f4;
    transform: translateY(-2px);
}

.project-description {
    margin: 15px 0;
    color: #666;
    font-size: 1rem;
    line-height: 1.5;
}

.project-fact {
    font-size: 0.9rem;
    color: #777;
    font-style: italic;
    padding: 12px;
    border-left: 3px solid #4285f4;
    background-color: #f9f9f9;
    border-radius: 0 6px 6px 0;
    margin-top: 15px;
}

.project-links {
    display: flex;
    margin-top: 20px;
    gap: 10px;
}

.project-btn {
    padding: 8px 15px;
    background: linear-gradient(135deg, #4285f4, #3367d6);
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.project-btn:hover {
    background: linear-gradient(135deg, #3367d6, #2c3e50);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Responsive adjustments */
@media screen and (max-width: 576px) {
    .project-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .github-link {
        align-self: flex-start;
    }
    
    .project-links {
        flex-direction: column;
        width: 100%;
    }
    
    .project-btn {
        width: 100%;
        justify-content: center;
        padding: 8px 10px;
        font-size: 0.8rem;
        box-sizing: border-box;
        text-align: center;
    }

    .tech-stack {
        flex-wrap: wrap;
        gap: 6px;
    }

    .tech {
        padding: 4px 8px;
        font-size: 0.75rem;
    }
    
    .project-fact {
        padding: 10px;
        font-size: 0.85rem;
    }
}

/* Responsive timeline */
@media screen and (max-width: 900px) {
    .timeline-header {
        flex-direction: column;
    }
    
    .timeline-description {
        max-width: 100%;
        text-align: left;
        margin-top: 20px;
    }

    .timeline-line {
        left: 30px;
        width: 6px; /* Even thicker line for better visibility */
    }
    
    .timeline-dot-top, 
    .timeline-dot-bottom {
        left: 30px;
        width: 16px; /* Larger dots for better visibility */
        height: 16px;
    }
    
    .year-marker {
        margin: 40px 0;
        width: 50px;
        height: 50px;
        position: relative;
        left: 30px;
        margin-left: -25px; /* Centers it on the line */
    }
    
    .project-dot {
        left: 30px;
        width: 20px; /* Larger dots for better visibility */
        height: 20px;
    }
    
    .right-project .project-card,
    .left-project .project-card {
        margin-left: 70px; /* Increased margin to prevent overlap with the line */
        width: calc(100% - 90px); /* Adjusted width calculation */
        margin-right: 0; /* Reset right margin for left projects */
    }
    
    .timeline-header h1 {
        margin-left: 70px; /* Match with project card margin */
    }
    
    .timeline-description {
        margin-left: 70px; /* Match with project card margin */
    }
}

@media screen and (max-width: 576px) {
    .timeline-header h1 {
        font-size: 2rem;
        margin-left: 60px; /* Adjusted for smaller screens */
    }
    
    .timeline-description {
        margin-left: 60px;
        font-size: 0.95rem;
    }

    .timeline-line {
        left: 20px;
        width: 5px; /* Slightly thinner but still visible */
    }
    
    .timeline-dot-top, 
    .timeline-dot-bottom {
        left: 20px;
        width: 14px;
        height: 14px;
    }
    
    .project-dot {
        left: 20px;
        width: 18px;
        height: 18px;
    }
    
    .year-marker {
        width: 50px;
        height: 50px;
        left: 20px; /* Positions it at the timeline */
        margin-left: -25px; /* Centers it on the line */
        font-size: 1rem;
    }
    
    .right-project .project-card,
    .left-project .project-card {
        margin-left: 50px; /* Adjusted for smaller screens */
        width: calc(100% - 60px);
        padding: 15px;
    }
}

/* Special adjustments for very small screens */
@media screen and (max-width: 375px) {
    .timeline-line {
        left: 15px;
    }
    
    .timeline-dot-top, 
    .timeline-dot-bottom,
    .project-dot {
        left: 15px;
    }
    
    .year-marker {
        left: 15px;
        margin-left: -22.5px; /* Centers the 45px marker on the line */
        width: 45px;
        height: 45px;
        font-size: 0.9rem;
    }
    
    .right-project .project-card,
    .left-project .project-card {
        margin-left: 40px;
        width: calc(100% - 50px);
        padding: 12px;
    }
    
    .timeline-header h1 {
        margin-left: 40px;
        font-size: 1.8rem;
    }
    
    .timeline-description {
        margin-left: 40px;
    }
}
