/* Base Styles */
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Header Styles */
.header {
  width: 98%;
  position: fixed;
  top: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.6); /* Semi-transparent black */
  backdrop-filter: blur(10px); /* Blur effect for content behind */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  padding: 0.5rem 1rem;
  transition: background 0.3s ease; /* Smooth transition for background */
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap; /* Allow wrapping for smaller screens */
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: white;
}

.logo a {
  text-decoration: none;
  color: white;
}

.logo .highlight {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.8), rgb(99, 91, 240));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1rem;
}

.nav-links li {
  position: relative;
}

.nav-links a {
  text-decoration: none;
  color: white;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: rgb(99, 91, 240);
}

.nav-links li::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  background: rgb(99, 91, 240);
  bottom: -5px;
  left: 0;
  transition: width 0.3s;
}

.nav-links li:hover::after {
  width: 100%;
}

.theme-toggle {
  display: flex;
  align-items: center;
}

.toggle-btn {
  background: none;
  border: 2px solid white;
  border-radius: 50%;
  padding: 0.5rem;
  cursor: pointer;
  color: white;
  font-size: 1rem;
  transition: transform 0.3s, background 0.3s, color 0.3s;
}

.toggle-btn:hover {
  transform: rotate(360deg);
  background: white;
  color: rgb(99, 91, 240);
}

/* Mobile Styles */
@media (max-width: 768px) {
  .nav-links {
    flex-direction: column; /* Stack links vertically */
    gap: 0.5rem;
    display: none; /* Initially hide the links */
  }

  .nav-links.show {
    display: flex; /* Show links when toggled */
  }

  .toggle-menu {
    display: block;
    cursor: pointer;
    font-size: 1.5rem;
    color: white;
  }
}





/* Hero Section Styles */
.home {
  height: 100vh;
  background: url('images/background3.jpg') no-repeat center center/cover;
  display: flex;
  justify-content: flex-end; /* Align content to the right */
  align-items: center;
  color: white;
  position: relative;
  overflow: hidden;
  font-family: 'Poppins', sans-serif; /* Modern font */
}

/* Dark overlay for contrast */
.home::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Slightly darker overlay */
  z-index: 0;
}

/* Content Styling */
.home-content {
  position: relative;
  z-index: 1;
  max-width: 600px; /* Restrict width for readability */
  padding: 2rem;
  text-align: center; /* Right-align content */
  animation: fadeIn 2s ease-in-out;
}

/* Smooth fade-in animation */
@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Enhanced Heading */
.home-content h1 {
  font-size: 3.5rem; /* Larger heading */
  line-height: 1.3;
  margin-bottom: 1rem;
  text-transform: capitalize; /* Clean and modern text style */
}

.highlight {
  background: linear-gradient(90deg, rgb(255, 255, 255), rgb(99, 91, 240));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Subtle text shadow */
}

/* Enhanced Typewriter Effect */
.typewriter {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  white-space: nowrap;
  border-right: 3px solid #fff; /* Thicker border for visibility */
  animation: typing 7s steps(100, end), blink 0.8s step-end infinite alternate;
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes blink {
  50% {
    border-color: transparent;
  }
}

/* Call-to-Action Button */
.home .btn {
  margin-top: 2rem;
  padding: 0.8rem 1.8rem;
  background: rgb(99, 91, 240);
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  border-radius: 50px; /* Rounded pill-shaped button */
  transition: transform 0.3s ease, background 0.3s ease;
  box-shadow: 0 4px 12px rgba(99, 91, 240, 0.5); /* Softer shadow */
}

.home .btn:hover {
  background: rgb(243, 156, 18);
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(243, 156, 18, 0.8);
}

/* Responsive Design */
@media (max-width: 768px) {
  .home-content {
    text-align: center; /* Center-align content for smaller screens */
  }

  .home {
    justify-content: center; /* Center content vertically and horizontally */
  }

  .home-content h1 {
    font-size: 2.5rem; /* Smaller heading for mobile */
  }

  .home-content p {
    font-size: 1rem; /* Adjust paragraph size */
  }
}


/* About Section Styles */
.about {
  padding: 4rem 2rem;
  background: linear-gradient(135deg, #888, #393636); /* Slightly lighter grey gradient */
  overflow: hidden;
  color: #fff;
}



.about-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: center; /* Center content for smaller screens */
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .about-container {
      flex-direction: column; /* Stack items vertically */
      text-align: center; /* Center text for better alignment */
  }

  .profile-pic {
      max-width: 200px; /* Scale down profile picture */
  }

  .about-text p {
      font-size: 1rem; /* Adjust text size for readability */
  }
}

.profile-pic {
    max-width: 300px;
    border-radius: 50%;
    background-color: white; 
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-pic:hover {
    transform: scale(1.05) rotate(5deg);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.about-text {
    flex: 1;
    animation: fadeIn 1s ease-in-out;
}

.about-text p {
    margin: 1rem 0;
    line-height: 1.6;
    font-size: 1.1rem;
}

/* Dynamic Skill Styles */
#dynamic-skill {
    font-weight: bold;
    color: rgb(99, 91, 240);
    transition: color 0.3s ease;
}


/* Projects Section */
.projects {
  padding: 2rem;
  background: #1f1f1f; /* Dark grey background for a sleek look */
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.project-item {
  border: 1px solid rgba(255, 255, 255, 0.1); /* Subtle border */
  border-radius: 5px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: #2b2b2b; /* Darker grey background for contrast */
}
.project-item:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(99, 91, 240, 0.6); /* Highlighted shadow with theme color */
}
.project-item img {
  width: 100%; /* Ensure it fills the width */
  height: 500px; /* Keep the height consistent */
  object-fit: contain;
  border-radius: 10px; /* Rounded corners */
  transition: transform 0.3s ease; /* Smooth hover effect */
}
.project-item h3 {
  margin: 0.5rem;
  color: #63f0e0; /* Lighter theme color for titles */
}
.project-item p {
  padding: 0 1rem;
  color: rgba(255, 255, 255, 0.8); /* Softer white for text */
}
.project-item .btn {
  display: inline-block;
  margin: 1rem;
  padding: 0.5rem 1rem;
  background: rgb(99, 91, 240); /* Theme color for button */
  color: #fff;
  border-radius: 5px;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.2s ease;
}
.project-item .btn:hover {
  background: rgba(99, 91, 240, 0.8); /* Slightly darker hover effect */
  transform: scale(1.05); /* Subtle scaling effect */
}
#projects h2,#about h2 {
  /* Your styles here */
  color: white; /* Example: change the color */
  font-size: 2.5rem; /* Example: change the font size */
  text-align: left; /* Example: center align */
  margin-bottom: 2rem; /* Example: add spacing below */
}


/* Contact Section */
/* Contact Section Styles */
#contact {
    background-color: black;
    color: #fff;
    padding: 50px 0;
    font-family: Arial, sans-serif;
  }
  
  .contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
  }
  
  .contact-container h1 {
    text-align: left;
    font-size: 2.5rem;
    margin-bottom: 30px;
  }
  
  .contact-details {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
  }
  
  .contact-info {
    flex: 1;
    min-width: 300px;
  }
  
  .contact-info p {
    margin: 10px 0;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
  }
  
  .contact-info i {
    color: grey;
    margin-right: 10px;
  }
  
  .social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
  }
  
  .social-icons a {
    font-size: 1.5rem;
    color: #fff;
    transition: color 0.3s;
  }
  
  .social-icons a:hover {
    color: orange;
  }
  
  .download-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background-color: grey;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
  }
  
  .download-btn:hover {
    background-color: green;
  }
  
  .contact-form {
    flex: 1;
    min-width: 300px;
  }
  
  .contact-form form {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
  
  .contact-form input,
  .contact-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #555;
    border-radius: 5px;
    background-color: #333;
    color: #fff;
    font-size: 1rem;
  }
  
  .contact-form input::placeholder,
  .contact-form textarea::placeholder {
    color: #aaa;
  }
  
  /* From Uiverse.io by Mike11jr */ 
.submit-btn {
  width: 130px;
  height: 40px;
  font-size: 1.1em;
  cursor: pointer;
  background-color: rgb(99, 91, 240);;
  color: #fff;
  border: none;
  border-radius: 5px;
  transition: all .4s;
 }
 
 .submit-btn:hover {
  border-radius: 5px;
  transform: translateY(-10px);
  box-shadow: 0 7px 0 -2px #f85959,
   0 15px 0 -4px #39a2db,
   0 16px 10px -3px #39a2db;
 }
 
 .submit-btn:active {
  transition: all 0.2s;
  transform: translateY(-5px);
  box-shadow: 0 2px 0 -2px #f85959,
   0 8px 0 -4px #39a2db,
   0 12px 10px -3px #39a2db;
 }

/* Footer */
.footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 1rem;
}
.footer .social-links a {
    margin: 0 0.5rem;
    display: inline-block;
}
.footer .social-links img {
    width: 24px;
    height: 24px;
}
/* Social Icons Hover Effect */
.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    position: relative;
}

.social-icons a {
    font-size: 1.5rem;
    color: #fff;
    transition: transform 0.3s, color 0.3s;
    position: relative;
}

.social-icons a:hover {
    color: #f39c12;
    transform: scale(1.2); /* Increases size slightly */
}

.social-icons a::after {
    content: attr(aria-label); /* Displays the name of the social media platform */
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.social-icons a:hover::after {
    opacity: 1;
    visibility: visible;
}
/* From Uiverse.io by Na3ar-17 */ 
.container {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
  display: flex;
  justify-content: left;
  align-items: center;
}

.label {
  background-color: transparent;
  border: 2px solid rgb(99, 91, 240);
  display: flex;
  align-items: center;
  border-radius: 50px;
  width: 160px;
  cursor: pointer;
  transition: all 0.4s ease;
  padding: 5px;
  position: relative;
}

.label::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #fff;
  width: 8px;
  height: 8px;
  transition: all 0.4s ease;
  border-radius: 100%;
  margin: auto;
  opacity: 0;
  visibility: hidden;
}

.label .input {
  display: none;
}

.label .title {
  font-size: 17px;
  color: white;
  transition: all 0.4s ease;
  position: absolute;
  right: 10px;
  bottom: 3px;
  text-align: center;
}

.label .title:last-child {
  opacity: 0;
  visibility: hidden;
}

.label .circle {
  height: 45px;
  width: 45px;
  border-radius: 50%;
  background-color: rgb(91, 91, 240);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.4s ease;
  position: relative;
  box-shadow: 0 0 0 0 rgb(255, 255, 255);
  overflow: hidden;
}

.label .circle .icon {
  color: #fff;
  width: 30px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.4s ease;
}

.label .circle .square {
  aspect-ratio: 1;
  width: 15px;
  border-radius: 2px;
  background-color: #fff;
  opacity: 0;
  visibility: hidden;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.4s ease;
}

.label .circle::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  background-color: #3333a8;
  width: 100%;
  height: 0;
  transition: all 0.4s ease;
}

.label:has(.input:checked) {
  width: 57px;
  animation: installed 0.4s ease 3.5s forwards;
}

.label:has(.input:checked)::before {
  animation: rotate 3s ease-in-out 0.4s forwards;
}

.label .input:checked + .circle {
  animation:
    pulse 1s forwards,
    circleDelete 0.2s ease 3.5s forwards;
  rotate: 180deg;
}

.label .input:checked + .circle::before {
  animation: installing 3s ease-in-out forwards;
}

.label .input:checked + .circle .icon {
  opacity: 0;
  visibility: hidden;
}

.label .input:checked ~ .circle .square {
  opacity: 1;
  visibility: visible;
}

.label .input:checked ~ .title {
  opacity: 0;
  visibility: hidden;
}

.label .input:checked ~ .title:last-child {
  animation: showInstalledMessage 0.4s ease 3.5s forwards;
}

@keyframes pulse {
  0% {
    scale: 0.95;
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
  }
  70% {
    scale: 1;
    box-shadow: 0 0 0 16px rgba(255, 255, 255, 0);
  }
  100% {
    scale: 0.95;
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

@keyframes installing {
  from {
    height: 0;
  }
  to {
    height: 100%;
  }
}

@keyframes rotate {
  0% {
    transform: rotate(-90deg) translate(27px) rotate(0);
    opacity: 1;
    visibility: visible;
  }
  99% {
    transform: rotate(270deg) translate(27px) rotate(270deg);
    opacity: 1;
    visibility: visible;
  }
  100% {
    opacity: 0;
    visibility: hidden;
  }
}

@keyframes installed {
  100% {
    width: 150px;
    border-color: rgb(35, 174, 35);
  }
}

@keyframes circleDelete {
  100% {
    opacity: 0;
    visibility: hidden;
  }
}

@keyframes showInstalledMessage {
  100% {
    opacity: 1;
    visibility: visible;
    right: 56px;
  }
}
