/* General Styles */
body,
html {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  color: #d89090;
  background-color: #121212;
  scroll-behavior: smooth;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background-color: #1f1f1f;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.navbar .logo img {
  height: 50px;
  width: auto;
}

.navbar .nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}
.navbar .nav-links li {
  margin: 0;
}
.navbar .nav-links li a {
  color: white;
  text-decoration: none;
  font-size: 18px;
  padding: 8px 12px;
  transition: background-color 0.3s ease;
}

.navbar .nav-links li a:hover {
  background-color: #1a374d; /* Hover effect */
  border-radius: 5px;
}

/* Responsive Navbar */
@media screen and (max-width: 768px) {
  .navbar .nav-links {
    flex-direction: column;
    position: absolute;
    background-color: #333;
    top: 60px;
    right: 0;
    height: auto;
    display: none; /* Hide on smaller screens */
  }

  .navbar .nav-links.active {
    display: flex; /* Show when active */
  }

  .navbar .logo {
    margin-right: auto;
  }
}

/* Make Navbar Sticky */
.navbar.sticky {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: #333;
  z-index: 100;
}
/* Section Styles */
section {
  padding: 80px 20px; /* Add padding to account for the fixed navbar */
  background-color: #1f1f1f;
  color: #e0e0e0;
  box-sizing: border-box; /* Ensure padding is included in total height */
}

.about,
.projects,
.skills,
.contact
.certifications {
  text-align: center;
}

/* About Section */
.about {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px; /* Increased padding for better spacing */
  line-height: 1.6; /* Better line spacing for readability */
  text-align: left; /* Align text to the left for better readability */
  background-color: grey; /* Match the dark theme */
  border-radius: 10px; /* Slightly rounded corners for a smoother look */
  box-shadow: 0 10px 30px rgba(66, 65, 65, 0.5); /* Subtle shadow to create the floating effect */
  transform: translateY(-10px); /* Lift the section slightly off the page */
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth transition for hover effect */
}

.about:hover {
  transform: translateY(-15px); /* Slightly lift further on hover */
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7); /* Enhance the shadow on hover */
}

/* Additional styles for the About section */
.about h2 {
  font-size: 2em;
  margin-bottom: 20px; /* Space between the title and paragraphs */
}

.about p {
  margin-bottom: 20px; /* Space between each paragraph */
  font-size: 1.1em; /* Slightly larger font size for better readability */
  color: #e0e0e0; /* Consistent text color */
}

/* Projects Section */
.projects {
  padding: 80px 20px;
  text-align: center;
  background-color: #1f1f1f;
  position: relative;
}

.project-cards {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 50px;
  flex-wrap: wrap; /* Allows wrapping for smaller screens */
}

.project-card {
  background: #2c2c2c;
  padding: 20px;
  border-radius: 8px;
  max-width: 300px;
  text-align: left;
  transition: transform 0.5s ease, box-shadow 0.5s ease, filter 0.5s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer; /* Indicates interactivity */
  z-index: 1; /* Default stacking context */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); /* Initial subtle shadow */
}

.project-card:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Animation for merging effect */
.project-card.active {
  transform: scale(1.2);
  z-index: 10; /* Bring the card to the top */
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5); /* Stronger glow effect */
  filter: brightness(1.5); /* Increased brightness for more light */
}

/* Ensure smooth transition for inactive cards */
.project-card.active ~ .project-card {
  transform: scale(0.9); /* Slightly reduce size of other cards */
  filter: brightness(0.7); /* Dim other cards to highlight the active one */
}

.project-card.close {
  transform: scale(1);
  z-index: 1;
  transition: transform 0.5s ease, box-shadow 0.5s ease, filter 0.5s ease;
  filter: brightness(1); /* Reset brightness when closing */
}

/* General Styles */
body{
html {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  color: #e0e0e0;
  background-color: #121212;
  scroll-behavior: smooth;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background-color: #1f1f1f;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.navbar .logo img {
  height: 40px;
  width: auto;
}

.navbar .nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}

.navbar .nav-links li a {
  text-decoration: none;
  color: #e0e0e0;
  font-weight: 500;
  transition: color 0.3s;
}

.navbar .nav-links li a:hover {
  color: #0071e3;
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: url("images/image.png") no-repeat center center/cover;
  color: rgb(255, 255, 255);
  text-align: center;
  padding-top: 100px; /* To avoid overlap with fixed navbar */
  padding-bottom: 100px;
}

.hero .hero-content {
  max-width: 800px;
}

.hero h1 {
  font-size: 3em;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2em;
  margin-bottom: 30px;
}

.hero .cta-button {
  background-color: #0071e3;
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s;
}

.hero .cta-button:hover {
  background-color: #005bb5;
}

/* Section Styles */
section {
  padding: 80px 20px; /* Add padding to account for the fixed navbar */
  background-color: #1f1f1f;
  color: #e0e0e0;
  box-sizing: border-box; /* Ensure padding is included in total height */
}

.about,
.projects,
.skills,
.contact {
  text-align: center;
}

/* About Section */
.about {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px; /* Increased padding for better spacing */
  line-height: 1.6; /* Better line spacing for readability */
  text-align: left; /* Align text to the left for better readability */
  background-color: #1f1f1f; /* Match the dark theme */
  border-radius: 10px; /* Slightly rounded corners for a smoother look */
}

.about h2 {
  font-size: 2em;
  margin-bottom: 20px; /* Space between the title and paragraphs */
}

.about p {
  margin-bottom: 20px; /* Space between each paragraph */
  font-size: 1.1em; /* Slightly larger font size for better readability */
  color: #e0e0e0; /* Consistent text color */
}

/* Projects Section */
.projects {
  padding: 80px 20px;
  text-align: center;
  background-color: #1f1f1f;
  color: #e0e0e0;
}

/* Container for Project Cards */
.project-cards {
  display: flex;
  flex-direction: column; /* Align cards in a column */
  align-items: center; /* Center cards horizontally */
  gap: 20px;
  margin-bottom: 50px;
}

/* Individual Project Card */
.project-card {
  background: #2c2c2c;
  padding: 20px;
  border-radius: 8px;
  max-width: 600px; /* Ensure cards are not too wide on large screens */
  width: 100%; /* Make cards take full width of the container */
  text-align: left;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.project-card:hover {
  background-color: #333;
  transform: scale(1.05);
}

.project-card h3 {
  margin-top: 0;
  color: #0071e3;
}

.project-card p {
  margin-bottom: 15px;
  color: #e0e0e0;
}

.project-card a {
  color: #0071e3;
  text-decoration: none;
  font-weight: bold;
  margin-right: 10px;
  transition: color 0.3s ease;
}

.project-card a:hover {
  color: #005bb5;
}

/* Responsive Design for Project Cards */
@media (max-width: 768px) {
  .project-card {
    max-width: 90%; /* Ensure cards fit well on smaller screens */
  }
}

@media (max-width: 500px) {
  .hero h1 {
    font-size: 2em; /* Adjust font size for better readability */
  }

  .hero p {
    font-size: 1em; /* Adjust font size for better readability */
  }

  .navbar .nav-links {
    flex-direction: column;
    gap: 10px;
  }
}



@keyframes rotate {
  from {
    transform: rotateX(30deg) rotateY(0deg);
  }
  to {
    transform: rotateX(30deg) rotateY(360deg);
  }
}
/* Skill Section Styling */
.skills {
  padding: 2rem;
  text-align: center;
  background-color: #121212;
}

.skills h2 {
  color: #fff;
  font-size: 2rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 1rem;
  justify-content: center;
  align-items: center;
  border: 1px solid #333;
  padding: 1rem;
  background: #1e1e1e;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
  max-width: 90%;
  margin: 0 auto;
  position: relative;
}

/* Individual Skill Item Styling */
.skill-item {
  color: #e0e0e0;
  padding: 1rem;
  border-radius: 8px;
  font-size: 1.2rem;
  font-weight: bold;
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  text-transform: capitalize;
  border: 1px solid #444;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  background: #333;
  position: relative;
  overflow: hidden;
}

/* Hover effect */
.skill-item:hover {
  background: #2a2a2a;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

/* Falling Animation */
@keyframes dropDown {
  0% {
    transform: translateY(0) translateX(0) rotate(0deg);
  }
  100% {
    transform: translateY(calc(100vh + 50px)) translateX(var(--random-x))
      rotate(var(--random-rotate));
  }
}

/* Skill Item Colors */
.skill-item.c {
  background: #333;
}
.skill-item.cpp {
  background: #444;
}
.skill-item.java {
  background: #555;
}
.skill-item.html {
  background: #666;
}
.skill-item.css {
  background: #777;
}
.skill-item.js {
  background: #888;
}
.skill-item.mysql {
  background: #999;
}
.skill-item.python {
  background: #aaa;
}

.skill-item.active {
  animation: dropDown 2s ease forwards;
}

.floating-shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  width: 200px;
  height: 200px;
  animation: float 4s ease-in-out infinite;
}

.floating-shape:nth-child(2) {
  animation-delay: 2s;
}

@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-30px);
  }
  100% {
    transform: translateY(0);
  }
}

/* Animation Container */
.animation-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Floating Shapes */
.floating-shape {
  position: absolute;
  width: 100px;
  height: 100px;
  background: linear-gradient(45deg, #0071e3, #00c8ff);
  opacity: 0.3;
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
  transition: background-color 0.5s ease;
  cursor: pointer; /* Makes it interactive */
  pointer-events: all; /* Enables interaction */
}

.floating-shape:nth-child(1) {
  top: 10%;
  left: 10%;
  animation-duration: 7s;
}

.floating-shape:nth-child(2) {
  top: 70%;
  left: 80%;
  animation-duration: 9s;
}

/* Hover and Click Effects */
.floating-shape:hover {
  background: linear-gradient(45deg, #ff0071, #ff00c8);
}

.floating-shape:active {
  background: linear-gradient(45deg, #00ff71, #00ffc8);
}

@keyframes float {
  0% {
    transform: translateY(0) translateX(0);
  }
  50% {
    transform: translateY(-30px) translateX(30px);
  }
  100% {
    transform: translateY(0) translateX(0);
  }
}

/* Contact Section */
.contact {
  padding: 100px 20px;
  text-align: center;
  background-color: #1f1f1f;
  color: #e0e0e0;
}

.contact h2 {
  margin-bottom: 20px;
  color: #0071e3;
    margin-top: 0;
    font-size: 2.5em;
}

.contact p {
  margin-bottom: 30px;
}

.contact-links {
  list-style: none;
  padding: 0;
}

.contact-link {
  display: inline-block;
  margin: 10px;
  color: #0071e3;
  text-decoration: none;
  font-weight: bold;
  padding: 10px 20px;
  border: 2px solid transparent;
  border-radius: 5px;
  transition: color 0.3s ease, background-color 0.3s ease,
    border-color 0.3s ease;
}
.contact-links li a {
  text-decoration: none;
  color: #333;
  font-size: 1.5em;
}
.contact-links li a img {
  width: 40px;
  margin-right: 10px;
  vertical-align: middle;
}
.contact-link:hover {
  color: #fff;
  background-color: #0071e3;
  border-color: #0071e3;
}
.contact-links {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 0;
  
}
.contact-links li {
  margin-bottom: 20px;
}


.contact-icon {
  width: 24px; /* Adjust size as needed */
  height: 24px; /* Keep aspect ratio */
  margin-right: 8px; /* Space between icon and text */
  vertical-align: middle; /* Align icon with text */
}

/* Contact Section Styles */
.contact-section {
  display: flex; /* Align images horizontally */
  justify-content: center; /* Center images horizontally */
  gap: 20px; /* Add space between images */
  padding: 20px; /* Add padding around the contact section */
}

.contact-section img {
  max-width: 60px; /* Set maximum width to 60px */
  height: 60px; /* Set height to 60px to keep images square */
  border-radius: 50%; /* Make images circular */
  object-fit: cover; /* Ensure the images cover the container */
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth transitions */
}

.contact-section img:hover {
  transform: scale(1.1); /* Slightly enlarge image on hover */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* Add shadow effect on hover */
}

/* Footer */
.footer {
  padding: 20px;
  text-align: center;
  background-color: #1f1f1f;
  color: #e0e0e0;
}

/* Slide-In Effect */
.slide-in {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.slide-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Contact Section */

.contact {
  padding: 80px 20px;
  text-align: center;
  background-color: #1f1f1f;
}

.contact h2 {
  font-size: 2em;
  margin-bottom: 20px; /* Space between the title and content */
}

.contact p {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #e0e0e0;
}

/* Footer */
.footer {
  padding: 20px;
  text-align: center;
  background-color: #1f1f1f;
  color: #e0e0e0;
}

/* Slide-In Effect */
.slide-in {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.slide-in.visible {
  opacity: 1;
  transform: translateY(0);
}
/* Projects Section */
/* Projects Section */
/* Projects Section with Custom Large Cursor */
.projects {
  padding: 80px 20px;
  text-align: center;
  background-color: #1f1f1f;

  color: #e0e0e0;
  cursor: url("curs.cur"), auto; /* Path to your custom large cursor */
}

/* Skills Section with Custom Large Cursor */
.skills {
  padding: 80px 20px;
  text-align: center;
  background-color: #1f1f1f;
  color: #e0e0e0;
  cursor: url("heart.cur"), auto; /* Path to your custom large cursor */
}
.contact {
  padding: 80px 20px;
  text-align: center;
  background-color: #1f1f1f;
  color: #e0e0e0;
  cursor: url("cursor1.cur"), auto; /* Path to your custom large cursor */
}

/* General styling */
body {
  font-family: "Clear Sans", Helvetica, serif;
  background-color: #333; /* Dark background for better contrast */
  color: #fff; /* Light text color */
}

h1,
h2,
p {
  color: #fff; /* Ensure text is visible against the dark background */
}

/* Styling for the game section */
.game {
  padding: 20px;
  max-width: 500px; /* Adjust the width as needed */
  margin: auto;
  text-align: center;
}

.container {
  background-color: #4a4a4a; /* Darker background for the game */
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  padding: 20px;
  display: inline-block; /* Ensures the container takes only the necessary space */
}

.info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.grid {
  display: flex;
  flex-wrap: wrap;
  width: 456px;
  height: 456px;
  background-color: #bbada0;
  border: 7px solid #bbada0;
  border-radius: 6px;
  margin: 20px auto 0; /* Center the grid and add margin on top */
}

.grid div {
  width: 100px;
  height: 100px;
  margin: 7px;
  border-radius: 3px;
  background-color: #eee4da;
  color: #afa192;
  font-weight: bold;
  text-align: center;
  font-size: 60px;
  line-height: 1.6;
}

.score-container {
  text-align: center;
  width: 70px;
  height: 60px;
  border-radius: 3px;
  background-color: #8f7a66;
  color: #fff;
}

#score {
  font-size: 30px;
}

.score-title {
  font-size: 16px;
}

/* Add shadows to grid cells on hover */
.grid div:hover {
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
}

/* Responsive design */
@media (max-width: 500px) {
  .container {
    width: 100%;
  }

  .grid {
    width: 100%;
    height: auto;
    margin: 20px auto 0; /* Ensure the grid is centered */
  }

  .grid div {
    width: 20%; /* Make the grid cells responsive */
    height: auto;
  }
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
}

.logo {
  max-height: 80px; /* Adjust the height as needed */
  width: auto; /* Maintain aspect ratio */
}

h1 {
  margin: 0;
  font-size: 2em; /* Adjust font size as needed */
}
.logo-container {
  position: relative;
  display: inline-block;
}

.logo {
  display: block;
}

.effect {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100px; /* Adjust size as needed */
  height: 100px; /* Adjust size as needed */
  background: radial-gradient(
    circle at center,
    rgba(0, 0, 0, 0.2),
    transparent
  );
  transform: rotateX(60deg);
  filter: blur(8px);
  pointer-events: none; /* So it does not interfere with interactions */
}

/* Add this to your style.css file */

/* Make images same size as font */
.contact-link img {
  width: 4.5em;
  height: 3em;
  margin-right: 1.0em;
  margin-left: 1.0em;
  margin-top: 1.5em;
  margin-bottom: 1.0em;
  vertical-align: middle;
}

/* Optional: Add some styling to make it look more aesthetic */
.contact-link {
  display: flex;
  align-items: center;
}

.contact-link img:hover {
  filter: brightness(1.9);
  cursor: pointer;
}
.certifications {
  padding: 50px 20px;
  background-color: #343333;
  text-align: center;
}

.certifications h2 {
  font-size: 2.5rem;
  margin-bottom: 30px;

}

.certifications-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  
}

.certification-item {
  background-color: #272626;
  padding: 20px;
  margin: 10px 0;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(232, 232, 232, 0.1);
  width: 80%;
}

.certification-item h3 {
  font-size: 1.8rem;
  margin-bottom: 5px;
}

.certification-item p {
  font-size: 1.2rem;
  color: #666;
}
.certification-item a {
  color: #0066cc; /* Blue link color */
  text-decoration: none;
}

.certification-item a:hover {
  text-decoration: underline;
  text-shadow: #0071e3;
}
.certification-item {
  position: relative; /* Required for transformation */
  padding: 10px;
  margin: 10px 0;
  background-color: #272626; /* Background color for the item */
  border-radius: 8px; /* Rounded corners */
  box-shadow: 0 4px 8px rgba(232, 232, 232, 0.1); /* Slight shadow */
  width: 80%; /* Adjust width */
  transition: transform 0.5s ease, opacity 0.5s ease; /* Transition for transform and opacity */
  cursor: pointer; /* Pointer cursor for clickability */
  opacity: 0.8; /* Initial opacity */
}

/* Active state for transformation */
.certification-item.active {
  transform: translate(var(--random-x), var(--random-y)) rotate(var(--random-rotate)); /* Transform based on random values */
  opacity: 1; /* Full opacity when active */
}

.profile-section {
  display: flex;              /* Align items in a row */
  align-items: center;        /* Vertically center image and text */
  gap: 20px;                  /* Space between image and text */
  padding: 20px;              /* Add padding around the section */
  max-width: 800px;           /* Limit the width of the profile section */
  margin: 0 auto;             /* Center the section on the page */
}

.profile-pic {
  width: 150px;               /* Set passport size */
  height: 150px;              /* Keep image square */
  object-fit: cover;          /* Ensure the image doesn't stretch */
  border-radius: 5px;         /* Rounded corners */
  border: 2px solid #000;     /* Thin black border */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

.about-section {
  max-width: 600px;   
  align-self: center;           /* Control the width of the text */
}

.about-section h1 {
  font-size: 24px; 
  align-self: center;              /* Larger font size for name */
  margin-bottom: 10px;     /* Space below the name */
  color: #333;                /* Dark text color */
}

.about-section p {
  font-size: 16px;   
  align-self: center;            /* Set font size for paragraph */
  line-height: 1.6;           /* Improve readability */
  color: #555;                /* Softer text color for professional look */
}
/* Add styles for the profile picture */
.profile-pic {
  width: 250px; /* Adjust size */
  height: auto;
  border-radius: 50%; /* Circular image */
  border: 4px solid #fff; /* Add a white border for a clean look */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
  margin: 20px auto; /* Spacing around the image */
  display: block;
}

/* Style for About section container */
.about-container {
  align-self: center;   
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  text-align: left;
  padding: 20px;
}

.about-text {
  max-width: 600px;
  margin-left: 30px;
}

@media (max-width: 768px) {
  .about-container {
    flex-direction: column;
    text-align: center;
  }

  .about-text {
    margin-left: 0;
    margin-top: 20px;
  }
}
/* Add styles for the profile picture */
.profile-pic {
  width: 250px; /* Adjust size */
  height: auto;
  border-radius: 50%; /* Circular image */
  border: 4px solid #fff; /* Add a white border for a clean look */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
  margin: 20px auto; /* Spacing around the image */
  display: block;
}

/* Center the About Me section heading */
#about h2 {
  text-align: center;
  margin-bottom: 20px; /* Space between heading and image */
}
/* Adjust the navbar height if it's sticky */
/* Adjust the navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 10px; /* Adjust the padding to reduce space */
  background-color: #333;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px; /* Reduce the gap between items */
}

.nav-links li {
  display: inline-block;
  margin-left: 10px; /* Reduce this margin */
}

.nav-links li a {
  color: white;
  text-decoration: none;
  font-size: 18px;
}

.nav-links li a:hover {
  color: #ddd;
}
/* Navbar Container */
.navbar {
  display: flex;
  justify-content: center; /* Center the nav items */
  align-items: center;
  padding: 10px 20px; /* Adjust padding for a smaller navbar height */
  background-color: #333;
  position: relative;
  max-width: 1200px; /* Set a max-width to constrain the navbar size */
  margin: 0 auto; /* Center the navbar horizontally */
}

/* Logo - Keep on the extreme left */
.navbar .logo {
  position: absolute;
  left: 20px;px; /* Adjust this value as needed for padding */
  /* Adjusting the icon size */
  font-size: 1.5em; /* Set to desired size */
  width: 50px; /* Set width if using images */
  height: 50px; /* Set height if using images */
}

.navbar .logo img {
  height: 50px; /* Adjust logo size if needed */
}

/* Navigation Links - Centered */
.nav-links {
  list-style: none;
  display: flex;
  gap: 30px; /* Reduced gap between links for a more compact look */
}

.nav-links li {
  display: inline-block;
}

.nav-links li a {
  color: white;
  text-decoration: none;
  font-size: 16px; /* Adjust font size to make links smaller */
}

.nav-links li a:hover {
  color: #ddd;
}

/* Contact Section Styles */
.contact {
  background-color: #1a1a19; /* Light background for contrast */
  padding: 50px 20px;
  text-align: center;
  color: #bba4a4;
}

.contact h2 {
  font-size: 2.5rem;
  margin-bottom: 30px;
  color: #f71010; /* Dark teal for heading */
}

.contact p {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.contact-links {
  list-style-type: none;
  padding: 0;
}

.contact-links li {
  margin: 10px 0; /* Space between links */
}

.contact-link {
  text-decoration: none;
  color: #27baa2; /* Match heading color */
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-link img {
  width: 24px; /* Icon size */
  height: 24px;
  margin-right: 8px; /* Space between icon and text */
}

.contact-link:hover {
  color: #cfdfdc; /* Change color on hover */
}
.certification-item {
  transition: transform 0.5s ease, opacity 0.5s ease; /* Smooth transition for transform and opacity */
  opacity: 0.8; /* Initial opacity */
  cursor: pointer; /* Change cursor on hover */
}

.certification-item.active {
  transform: translate(var(--random-x), var(--random-y)) rotate(var(--random-rotate)); /* Apply translation and rotation */
  opacity: 1; /* Full opacity when active */
}

/* Adjusting padding and margin for navbar items */
nav ul {
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
}

nav ul li {
  list-style: none;
  margin-right: 20px; /* Adjust as needed for spacing */
}

nav ul li a {
  text-decoration: none;
  padding: 10px 15px; /* Adjust padding for alignment */
  color: white;
  display: block;
}

nav ul li a:hover {
  background-color: rgba(255, 255, 255, 0.1); /* Optional hover effect */
}
/* Resetting margin and padding for the body and navbar */
body, html {
  margin: 0;
  padding: 0;
}

nav {
  width: 100%;
  background-color: #333; /* Dark color for the navbar */
  display: flex;
  align-items: center;
  padding: 0 20px; /* Adjust padding to align content */
}

/* Logo styling */
nav .logo {
  margin-right: auto;
}

/* Styling for the navbar items */
nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav ul li {
  margin: 0 15px; /* Space between menu items */
}

nav ul li a {
  text-decoration: none;
  color: white;
  padding: 10px 15px;
  display: block;
  transition: background-color 0.3s ease, color 0.3s ease; /* Smooth hover transition */
}

/* Hover effect */
nav ul li a:hover {
  background-color: rgba(255, 255, 255, 0.2); /* Light overlay on hover */
  color: #ffcc00; /* Change text color on hover */
  border-radius: 5px; /* Optional rounded corners for a clean look */
}
