/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 10px;
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #f8f9fa; /* White navbar */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow */
  border-radius: 30px;
  width: 45vW; 
  margin: 0 auto;
}

/* Media query for smaller screens */
@media (max-width: 768px) {
  .navbar {
    width: 90vw; /* Adjust width for smaller screens */
  }
}

.navbar-nav {
  display: flex;
  flex-wrap: wrap; /* Allow wrapping of nav items */
  justify-content: center; /* Center the nav items */
}

.navbar-nav .nav-link {
  margin: 0 15px;
  color: #FAF9F6; /* Subtle gray color for links */
  font-size: 1.1rem;
  font-weight: 500;
  text-decoration: none; /* Remove underline */
  transition: color 0.3s ease, border-bottom 0.3s ease; /* Smooth hover effects */
  padding-bottom: 5px; /* Space for underline effect */
  font-family: 'Poppins', sans-serif;
}

.navbar-nav .nav-link:hover {
  color: #d0eaec; /* Change to white on hover */
  border-bottom: 2px solid #a9e4ec; /* Underline effect */
}

.navbar-nav .nav-link.active {
  color: #d0eaec; /* Change to white for active link */
  border-bottom: 2px solid #a9e4ec; /* Underline effect for active link */
}

.navbar-toggler {
  border: none;
} 

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba(255, 255, 255, 1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

/* Sticky Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 999;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* General Section Padding */
section {
  padding: 15px 0; /* Reduced padding from the top and bottom */
  text-align: center;
  color: #f0f0f0;
}

body {
  background: url('assets/pattern.png') repeat;
  background-size: contain;
  position: relative;
  color: #333333; /* Dark text */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  background-attachment: fixed;
}

/* Section Headings */
section h2 {
  font-size: 1.8rem; /* Slightly smaller font size */
  font-weight: 500; /* Lighter weight for elegance */
  text-align: center;
  color: #f0f0f0; /* Subtle off-white color */
  margin-bottom: 20px;
  text-transform: uppercase; /* Consistent look across sections */
  letter-spacing: 1.2px; /* Slight letter spacing for sophistication */
  position: relative;
  display: inline-block;
}
/* Underline Effect */
section h2::after {
  content: '';
  position: absolute;
  width: 50%;
  height: 2px;
  background-color: #00bcd4; /* Accent color for underline */
  left: 25%; /* Center the underline */
  bottom: -5px; /* Position slightly below the text */
}

#work-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%; /* Full width of the column */
  margin-bottom: 20px;
  background-color: #101516; /* Neutral card background */
  color: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  flex-grow: 1;
}

.card-body {
  flex-grow: 1;
}

.card-details {
  font-size: 0.9rem;
  color: #cccccc; /* Subtle gray for the details text */
  margin-top: 10px;
  line-height: 1.4;
  text-align: justify;
  
}

.read-more-btn {
  background-color: transparent;
  color: #00bcd4;
  border: 2px solid #00bcd4;
  padding: 5px 15px;
  margin-top: 10px;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  display: block;
  margin-left: auto;
  margin-right: auto;
  align-self: flex-end;
  border-radius: 20px; /* Rounded corners */
  font-size: 0.9rem; /* Slightly smaller font size */
}

.read-more-btn:hover {
  background-color: #00bcd4;
  color: white;
  border-color: #00bcd4;
}

.card-text {
  font-size: 1.2rem;
  color: #ffffff; /* Subtle gray for the details text */
  margin-top: 10px;
  line-height: 1.4;
  text-align: center;
  font-size: 1.2rem; /* Bigger font size */
  font-weight: 500; /* Bold text */
  color: #FAF9F6; /* White color */
  letter-spacing: 1.5px; /* Slight spacing between letters */
  transition: color 0.3s ease; /* Smooth hover effect */
  font-family: 'Montserrat', sans-serif;
}

.card:hover {
  transform: translateY(-10px); /* Slight lift effect */
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.5); /* Stronger shadow on hover */
  background-color: #555; /* Lighter background on hover */
}

/* Card Titles */
.card h5 {
  color: #28ece2; /* Highlighted title color */
  transition: color 0.3s ease; /* Smooth color transition */
  font-weight: bold;
}

/* Card Title Hover Effect */
.card:hover h5 {
  color: #f5df18; /* Change title color on hover */
}

.company-logo {
  max-width: 150px; /* Adjust the size of the logo */
  max-height: 75px; /* Maintain aspect ratio */
  object-fit: contain; /* Ensure the logo fits within the bounds */
  display: block;
  margin: 0 auto; /* Center the logo */
}

#contact {
  padding: 30px 0;
  background-color: #1e1e1e;
  color: #ffffff;
}
.contact-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 15px;
}
.contact-item {
  text-decoration: none;
  color: #ffffff;
  text-align: center;
  transition: color 0.3s ease, transform 0.3s ease;
}

.contact-item i {
  font-size: 2.5rem;
  color: #00bcd4;
  transition: transform 0.3s ease, color 0.3s ease;
}

.contact-item p {
  margin-top: 5px;
  font-size: 1rem;
  font-weight: 500;
  color: #ffffff;
}

.contact-item:hover i {
  transform: scale(1.2);
  color: #f0f0f0;
}

.contact-item:hover p {
  color: #f0f0f0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .contact-icons {
    flex-direction: column;
    gap: 10px;
  }
}

.tool-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* Center-align icons */
  gap: 10px; /* Reduce gap between icons */
}

.tool-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 5px; /* Compact spacing for each tool */
}

.tool-item i {
  font-size: 2rem; /* Smaller icon size */
  color: #00bcd4;
  transition: transform 0.3s ease, color 0.3s ease;
}

.tool-item p {
  margin-top: 4px; /* Smaller spacing between icon and text */
  font-size: 0.85rem; /* Smaller text size */
  font-weight: 500;
  color: #ffffff;
}

.tool-item i:hover {
  transform: scale(1.1); /* Slight hover effect */
  color: #f0f0f0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .tool-icons {
    justify-content: center;
  }
}

/* Social Bar */
.social-bar {
  position: fixed; /* Attach to the hero */
  right: 0; /* Stick to the right margin */
  top: 50%; /* Center vertically */
  transform: translateY(-50%); /* Adjust for exact vertical center */
  width: 80px; /* Set a width for the bar */
  background-color: #1e1d1d; /* Light background color */
  border-radius: 8px 0 0 8px; /* Rounded edges on the left */
  box-shadow: -5px 0 10px rgba(0, 0, 0, 0.2); /* Subtle shadow */
  padding: 0px 0px; /* Space around the icons */
  display: flex;
  flex-direction: column; /* Stack icons vertically */
  align-items: center; /* Center icons horizontally */
}

/* Social Media Icons */
.social-icon {
  display: block; /* Stack vertically */
  margin: 10px 0; /* Spacing between icons */
  color: #00bcd4; /* Icon color */
  font-size: 2rem; /* Icon size */
  text-align: center;
  transition: transform 0.3s ease, color 0.3s ease;
  animation: pop-up 1s ease infinite;
}

.social-icon:hover {
  transform: scale(1.3); /* Slight enlargement on hover */
  animation: none;
  color: #ff9900; /* Hover color */
}

/* Add delays for each button to pop up sequentially */
.social-icon:nth-child(1) {
  animation-delay: 0s; /* No delay for the first icon */
}
.social-icon:nth-child(2) {
  animation-delay: 0.5s; /* Half-second delay for the second icon */
}
.social-icon:nth-child(3) {
  animation-delay: 1s; /* One-second delay for the third icon */
}



@keyframes pop-up {
  0%, 100% {
    transform: scale(1); /* Original size */
  }
  50% {
    transform: scale(1.2); /* Slightly larger size */
  }
}

.highlight-link {
  color: inherit; /* Keep the original color */
  text-decoration: none; /* Remove underline */
}

.highlight-link:hover {
  color: #ff9900; /* Highlight color */
  text-shadow: 0 0 10px #ff9900; /* Add glowing effect */
  background-color: rgba(255, 255, 255, 0.2); /* Subtle background highlight */
  padding: 5px; /* Space around the text */
  border-radius: 5px; /* Optional: Rounded corners */
  transition: all 0.3s ease-in-out; /* Smooth hover effect */
}


/* Projects Section */
#projects-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.card a {
  text-decoration: none; /* Remove underline */
}

.skills-icons {
  background-color: #101516; /* Semi-transparent black background */
  padding: 10px 20px;
  border-radius: 10px; /* Rounded corners */
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
}

.skills-item {
  background-color: #101516; /* Semi-transparent black background */
  padding: 10px 20px;
  border-radius: 10px; /* Rounded corners */
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
  gap: 10px
}

.skills-item i {
  font-size: 2rem; /* Smaller icon size */
  color: #00bcd4;
  transition: transform 0.3s ease, color 0.3s ease;
}

.skills-item p {
  margin-top: 4px; /* Smaller spacing between icon and text */
  font-size: 0.85rem; /* Smaller text size */
  font-weight: 500;
  color: #ffffff;
}

.skills-item i:hover {
  transform: scale(1.1); /* Slight hover effect */
  color: #f0f0f0;
}

.tech-stack {
  margin-top: 10px;
}

.tech-stack strong {
  display: block;
  margin-bottom: 5px;
  color: #ffffff;
}

.tech-stack ul {
  list-style-type: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.tech-stack li {
  border: 1px solid #b1b1b1;
  border-radius: 5px;
  display: flex;
  align-items: center;
  padding: 5px 10px;
  font-size: 0.9rem;
  color: #ffffff;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.tech-stack li::before {
  margin-right: 5px;
  color: #ffffff;
}

/* Main Section */
.main-section {
  padding: 20px 0;
  min-height: 30vh;
}

.main-section h3 {
  font-size: 2rem;
  margin-bottom: 20px;
  font-weight: 700;
  letter-spacing: 2px;
  text-shadow: 3px 3px 5px rgba(0, 0, 0, 0.7); /* Adds shadow for text readability */
  animation: fadeIn 1.5s ease-in-out;
}

.main-section #typing-text {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: #00bcd4;
  font-weight: 400;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  animation: fadeIn 2s ease-in-out;
}

.skills-item {
  display: inline-flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.skills-item i {
  font-size: 2rem;
  color: #00bcd4;
  transition: transform 0.3s ease, color 0.3s ease;
}

.skills-item i:hover {
  transform: scale(1.2);
  color: #0097a7;
}

.img-fluid {
  max-width: 100%;
  height: auto;
  border-radius: 50%; /* Ensure the image is circular */
  width: 300px; /* Set a fixed width */
  height: 300px; /* Set a fixed height */
  object-fit: cover; /* Ensure the image covers the area without distortion */
}

/* Horizontal Line */
.cyan-line {
  height: 7px;
  background-color: #00bcd4; /* Cyan color */
  width: 40%; /* Set the width to 40% of the page width */
  margin: 40px auto; /* Center the line horizontally and add vertical margin */
}

footer .disclaimer {
  font-size: 0.9rem; /* Slightly smaller font size */
  color: #cccccc; /* Light gray text for subtle appearance */
  margin-top: 10px;
  line-height: 1.4;
  font-style: normal; /* Ensure the text is not italic */
}

footer .disclaimer strong {
  color: #ffffff; /* Make key words white for emphasis */
  font-weight: bold; /* Bold the key words */
}