/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

div {
  box-sizing: border-box;
}

body {
  background-color: #1e1e1e;
  color: #fff;
  font-family: 'Courier New', Courier, monospace;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Scroll Progress Bar */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, #4285f4, #ea4335, #fbbc04, #34a853);
  width: 0%;
  z-index: 10000;
  transition: width 0.1s ease-out;
  box-shadow: 0 2px 10px rgba(66, 133, 244, 0.5);
}

/* Content Sections */
.content {
  padding-bottom: 60px; /* Space for the fixed terminal input */
}

.section {
  padding: 100px 20px;
  min-height: auto; /* Changed from 100vh for less spacing */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin-bottom: 40px;
}

/* First section (About) gets more vertical space */
#about {
  min-height: 100vh;
}

/* Subtle section dividers */
.section:not(#about)::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #0f0, transparent);
  opacity: 0.3;
}

.section {
  position: relative;
}

.section h1 {
  font-size: 2rem;
  margin-bottom: 20px;
}

/* Fade-up animation for content */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Section Title Typewriter Styling */
.section-title {
  color: #0f0;
  text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "|";
  color: #0f0;
  animation: blink 0.75s infinite;
  margin-left: 5px;
}

.section-title.typed::after {
  animation: none;
  opacity: 0;
}

.section p, .section ul {
  font-size: 1rem;
  max-width: 600px;
}

/* Fixed Terminal Input */
.terminal-input {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #2d2d2d;
  padding: 10px;
  display: flex;
  align-items: center;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.5);
}

.prompt {
  margin-right: 10px;
  color: #0f0;
}

#command-input {
  background: none;
  border: none;
  color: #fff;
  outline: none;
  font-family: inherit;
  font-size: inherit;
  flex-grow: 1;
}

/* Stepper Styles */
.stepper {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
  padding: 0 20px;
}

/* Vertical Line Connecting Steps */
.stepper::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 20px;
  width: 2px;
  background-color: #444;
  z-index: -1;
}

.step, .relocation-bubble {
  display: flex;
  align-items: center; /* Vertically align items */
  gap: 20px;
  position: relative;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: translateX(-50px); /* Start from left, less distance */
  width: 100%;
  max-width: 100%;
}

.step.active, .relocation-bubble.active {
  transform: translateX(0); /* Slide to center */
  opacity: 1; /* Fade in */
}

.step-icon, .bubble-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  z-index: 1;
  @media screen and (max-width: 480px) {
    width: 80px !important;    
  }
}

.step-icon {
  background-color: #444;
  color: #fff;
}

.bubble-icon {
  background-color: #007bff; /* Blue for relocations */
  color: #fff;
}

/* Make relocation bubble icons pulse when active */
.relocation-bubble.active .bubble-icon {
  animation: pulseBubble 2s ease-in-out infinite;
}

@keyframes pulseBubble {
  0%, 100% {
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.6);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 25px rgba(0, 123, 255, 1);
    transform: scale(1.15);
  }
}

.step-content, .bubble-content {
  flex-grow: 1;
  text-align: left;
}

.step-content h3, .bubble-content h4 {
  margin-bottom: 5px;
  font-size: 1.2rem;
  color: #0f0;
}

/* Special styling for relocation bubble titles */
.relocation-bubble.active .bubble-content h4 {
  color: #007bff;
  animation: blueTextGlow 2s ease-in-out infinite;
}

@keyframes blueTextGlow {
  0%, 100% {
    text-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
  }
  50% {
    text-shadow: 0 0 20px rgba(0, 123, 255, 1);
  }
}

.step-content p, .bubble-content p {
  font-size: 1rem;
  color: #ccc;
}

/* Highlight Current Step - smooth animation */
.step.current.active {
  transform: translateX(0);
  opacity: 1;
}

.step.current .step-icon {
  background-color: #0f0;
  color: #000;
  box-shadow: 0 0 20px rgba(0, 255, 0, 0.8); /* Stronger glow effect */
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.8);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 30px rgba(0, 255, 0, 1);
    transform: scale(1.1);
  }
}

.step.current .step-content h3 {
  color: #0f0;
  animation: textGlow 2s ease-in-out infinite;
}

@keyframes textGlow {
  0%, 100% {
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
  }
  50% {
    text-shadow: 0 0 20px rgba(0, 255, 0, 1);
  }
}

/* Upcoming Step */
.step.upcoming .step-icon {
  background-color: #666;
}

.step.upcoming .step-content h3 {
  color: #666;
}

/* Relocation Bubble Styling - now aligned with steps */
/* About Section */
#about {
  background-color: #1e1e1e;
  color: #fff;
  text-align: center;
}

/* Hide about typewriter elements initially */
.about-typewriter {
  opacity: 0;
}

.about-typewriter.typing {
  opacity: 1;
}

/* Hide list items initially */
.about-list-item {
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.about-list-item.visible {
  opacity: 1;
  transform: translateX(0);
}

.about-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  position: relative;

  @media (max-width: 480px) {
    scale: 0.7
    
  }
}

.about-list i {
  font-size: 1.5rem;
  color: #0f0;
  transition: transform 0.3s ease-in-out, color 0.3s ease-in-out;
}

.about-list i:hover {
  transform: scale(1.2); /* Slightly enlarge the icon */
  color: #fff; /* Change color on hover */
}
/* Profile Image */
.profile-image img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 3px solid #0f0;
  object-fit: cover;
  margin-bottom: 20px;
  box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
  animation: float 3s ease-in-out infinite;
}

/* Highlight Text */
.highlight {
  color: #0f0;
  font-weight: bold;
}

/* About List */
.about-list {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 20px;
  justify-content: center;
  margin: 20px 0;
}

.about-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  color: #ccc;
}

.about-list i {
  font-size: 1.5rem;
  color: #0f0;
}

/* Animation for Floating Profile Image */
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Hover Effects */
.about-list li:hover {
  color: #0f0;
  transform: scale(1.1);
  transition: all 0.3s ease;
}

/* Typewriter Cursor */
.typewriter {
  position: relative;
}

.typewriter::after {
  content: "|";
  position: absolute;
  right: -10px;
  top: 0;
  animation: blink 0.75s infinite;
  color: #0f0;
}

/* Blinking Cursor Animation */
@keyframes blink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

/* Full-Screen Overlay */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000;
  color: #0f0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  overflow: hidden;
}

.terminal-animation {
  font-family: 'Courier New', Courier, monospace;
  text-align: center;
  line-height: 1.5;
  animation: fadeInOut 4s ease-in-out forwards;
}

.line {
  opacity: 0;
  animation: fadeInLine 0.5s ease-in-out forwards;
}

.line:nth-child(1) { animation-delay: 0.5s; }
.line:nth-child(2) { animation-delay: 1s; }
.line:nth-child(3) { animation-delay: 1.5s; }
.line:nth-child(4) { animation-delay: 2s; }
.line:nth-child(5) { animation-delay: 2.5s; }

/* Fade-In Animation for Lines */
@keyframes fadeInLine {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Fade-Out Animation for Overlay */
@keyframes fadeInOut {
  0% { opacity: 1; }
  80% { opacity: 1; }
  100% { opacity: 0; visibility: hidden; }
}

/* Notification Styles */
.notification-container {
  position: fixed;
  bottom: 60px; /* Above the terminal input */
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  z-index: 1000;
}

.notification {
  background-color: #2d2d2d;
  color: #fff;
  padding: 10px 20px;
  border-radius: 5px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 1rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease-in-out;
  max-width: 800px;
  text-align: center;
}

.notification.show {
  opacity: 1;
  transform: translateY(0);
}

.notification.error {
  color: #ff5f56; /* Red for errors */
}

.notification.info {
  color: #0f0; /* Green for info */
}

.notification.google {
  background: linear-gradient(90deg, #4285f4, #ea4335, #fbbc04, #34a853);
  color: #fff;
  font-weight: bold;
  padding: 15px 25px;
}

/* Hide Typewriter Text Initially */
.typewriter-line {
  position: relative;
  display: inline-block;
  white-space: nowrap; /* Prevent wrapping */
  overflow: hidden; /* Hide overflowing text */
}

.typewriter-line::after {
  content: "|";
  position: absolute;
  right: -10px;
  top: 0;
  animation: blink 0.75s infinite;
  color: #0f0;
}

@keyframes blink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 120px;
  background-color: #000;
  color: #fff;
  text-align: center;
  border-radius: 5px;
  padding: 5px;
  position: absolute;
  z-index: 1;
  bottom: 125%; /* Position above the icon */
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

/* Stats Section with Google Colors */
#stats {
  text-align: center;
  background-color: #1e1e1e;
}

.stats-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.stat-card {
  background-color: #2d2d2d;
  border-radius: 15px;
  padding: 30px 20px;
  width: 220px;
  text-align: center;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out, opacity 0.6s ease-in-out;
  opacity: 0;
  transform: translateY(30px);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: #0f0;
  transition: background 0.3s ease-in-out;
}

/* Google Colors */
.stat-card[data-color="blue"]::before {
  background: #4285f4;
}

.stat-card[data-color="red"]::before {
  background: #ea4335;
}

.stat-card[data-color="yellow"]::before {
  background: #fbbc04;
}

.stat-card[data-color="green"]::before {
  background: #34a853;
}

.stat-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.stat-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.stat-card[data-color="blue"]:hover {
  box-shadow: 0 10px 30px rgba(66, 133, 244, 0.4);
}

.stat-card[data-color="red"]:hover {
  box-shadow: 0 10px 30px rgba(234, 67, 53, 0.4);
}

.stat-card[data-color="yellow"]:hover {
  box-shadow: 0 10px 30px rgba(251, 188, 4, 0.4);
}

.stat-card[data-color="green"]:hover {
  box-shadow: 0 10px 30px rgba(52, 168, 83, 0.4);
}

.stat-icon {
  font-size: 3rem;
  margin-bottom: 15px;
  color: #0f0;
  transition: color 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.stat-card[data-color="blue"] .stat-icon {
  color: #4285f4;
}

.stat-card[data-color="red"] .stat-icon {
  color: #ea4335;
}

.stat-card[data-color="yellow"] .stat-icon {
  color: #fbbc04;
}

.stat-card[data-color="green"] .stat-icon {
  color: #34a853;
}

.stat-card:hover .stat-icon {
  transform: scale(1.2);
}

.stat-number {
  font-size: 3rem;
  font-weight: bold;
  color: #fff;
  margin-bottom: 10px;
  font-family: 'Courier New', Courier, monospace;
}

.stat-label {
  font-size: 1rem;
  color: #fff;
  font-weight: bold;
  margin-bottom: 8px;
}

.stat-description {
  font-size: 0.85rem;
  color: #aaa;
}

/* Contact Section */
#contact {
  text-align: center;
}

.contact-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
}

.contact-item i {
  font-size: 1.5rem;
  color: #0f0; /* Green to match the terminal theme */
}

.contact-item a {
  color: #0f0;
  text-decoration: none;
  font-family: 'Courier New', Courier, monospace;
  font-size: 1rem;
}

.contact-item a:hover {
  text-decoration: underline;
  color: #fff; /* Change color on hover */
}

/* Projects Section */
/* Projects Section */
#projects {
  text-align: center;
}

.project-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 20px 0;
  justify-content: center;
}

.project-card {
  background-color: #2d2d2d;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  width: 300px; /* Fixed width for each card */
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out, opacity 0.6s ease-in-out;
  position: relative;
  flex-shrink: 0; /* Prevent cards from shrinking */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
}

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

.card-image img {
  width: 100%; /* Ensure the image takes up the full width of the card */
  height: 150px; /* Fixed height for all images */
  object-fit: cover; /* Maintain aspect ratio and crop if necessary */
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.card-content {
  padding: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-grow: 1;
}

.project-card h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
  color: #0f0;
}

.project-card p {
  font-size: 0.9rem; /* Slightly smaller font size */
  color: #ccc;
  margin-bottom: 10px;
  line-height: 1.4; /* Adjust line height for readability */
  text-align: center;
}

.project-card a {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 20px;
  background-color: #0f0;
  color: #000;
  text-decoration: none;
  border-radius: 5px;
  font-family: 'Courier New', Courier, monospace;
  transition: background-color 0.3s ease-in-out;
}

.project-card a:hover {
  background-color: #fff;
  color: #000;
}

/* Hover Animation */
.project-card:hover {
  transform: scale(1.05); /* Slightly enlarge the card */
  box-shadow: 0 8px 20px rgba(0, 255, 0, 0.5); /* Add a glowing effect */
}
/* Hover Animation */
.project-card:hover {
  transform: scale(1.05); /* Slightly enlarge the card */
  box-shadow: 0 8px 20px rgba(0, 255, 0, 0.5); /* Add a glowing effect */
}

/* Expertise Section */
#expertise {
  background-color: #1e1e1e;
  color: #fff;
  text-align: center;
}

.expertise-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  width: 60rem;

    @media (max-width: 480px) {
    width: unset !important;
    
  }
}

/* First Row Items (6 items) */
.expertise-item:nth-child(-n + 6) {
  width: 100px; /* Smaller size for the first row */
  height: 100px;
  flex: 0 0 auto; /* Prevent growing or shrinking */
}

/* Second Row Items (4 items) */
.expertise-item:nth-child(n + 7):nth-child(-n + 10) {
  width: 100px; /* Medium size for the second row */
  height: 100px;
}

/* Third Row Items (remaining items) */
.expertise-item:nth-child(n + 11) {
  width: 100px; /* Largest size for the third row */
  height: 100px;
}

.expertise-item {
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
  background-color: #2d2d2d;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out, opacity 0.5s ease-in-out;
  position: relative;
  cursor: pointer;
  opacity: 0;
  transform: scale(0.8);
}

.expertise-item.visible {
  opacity: 1;
  transform: scale(1);
}

.expertise-item img {
  max-width: 60%;
  max-height: 60%;
}

.expertise-item:hover {
  transform: scale(1.1);
}

/* Google-inspired hover colors for expertise items */
.expertise-item:nth-child(4n+1):hover {
  box-shadow: 0 0 20px rgba(66, 133, 244, 0.6); /* Google Blue */
}

.expertise-item:nth-child(4n+2):hover {
  box-shadow: 0 0 20px rgba(234, 67, 53, 0.6); /* Google Red */
}

.expertise-item:nth-child(4n+3):hover {
  box-shadow: 0 0 20px rgba(251, 188, 4, 0.6); /* Google Yellow */
}

.expertise-item:nth-child(4n+4):hover {
  box-shadow: 0 0 20px rgba(52, 168, 83, 0.6); /* Google Green */
}


/* Tooltip Styling */
.tooltip {
  position: relative;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 120px;
  background-color: #000;
  color: #fff;
  text-align: center;
  border-radius: 5px;
  padding: 5px;
  position: absolute;
  z-index: 1;
  bottom: 125%; /* Position above the icon */
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

/* Experience Section */
#experience {
  background-color: #1e1e1e;
  color: #fff;
  text-align: center;
}

.experience-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.experience-card {
  background-color: #2d2d2d;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  width: 300px; /* Fixed width for each card */
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out, opacity 0.6s ease-in-out;
  overflow: hidden;
  opacity: 0;
  transform: translateX(-30px);
}

.experience-card.visible {
  opacity: 1;
  transform: translateX(0);
}

.card-header {
  background-color: #333;
  padding: 20px;
  text-align: center;
}

.card-header img {
  max-width: 150px;
  height: auto;
}

.card-content {
  padding: 20px;
  text-align: left;
}

.card-content h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
  color: #0f0;
}

.card-content p {
  font-size: 1rem;
  color: #ccc;
  margin-bottom: 10px;
}

.card-content a {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 20px;
  background-color: #0f0;
  color: #000;
  text-decoration: none;
  border-radius: 5px;
  font-family: 'Courier New', Courier, monospace;
  transition: background-color 0.3s ease-in-out;
}

.card-content a:hover {
  background-color: #fff;
  color: #000;
}

/* Hover Animation */
.experience-card:hover {
  transform: scale(1.05); /* Slightly enlarge the card */
  box-shadow: 0 8px 20px rgba(0, 255, 0, 0.5); /* Add a glowing effect */
}


