/* General Styling */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600&display=swap");

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  background-color: #1a1a1a;
  color: #d3d3d3; /* Slightly lighter than #e0e0e0 for better contrast on dark backgrounds */
}

a:focus {
  outline: 2px solid #27ae60;
  outline-offset: 4px;
}

/* Button Styling */
.btn-glow {
  padding: 10px 20px;
  background-color: #27ae60;
  color: #fff;
  border: none;
  border-radius: 5px;
  text-transform: uppercase;
  transition: 0.3s;
  box-shadow: 0 0 15px rgba(39, 174, 96, 0.5);
}

.btn-glow:hover {
  box-shadow: 0 0 30px rgba(39, 174, 96, 0.8);
  transform: translateY(-5px);
}

.btn-glow:focus, .contact-form button:focus {
  outline: 2px solid #27ae60;
  outline-offset: 2px;
}

/* Hero Section */

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem; /* Smaller title for mobile */
  }

  .hero-subtitle {
    font-size: 1rem; /* Adjust subtitle size */
  }

  .skills-section {
    flex-direction: column;
    align-items: center;
  }

  .skill-card {
    width: 80%; /* Wider skill cards on smaller screens */
  }

  .contact-form {
    width: 100%;
    padding: 20px;
  }

  .btn-glow {
    width: 100%;
    text-align: center;
  }
}

.profile-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
  position: relative;
  top: 100px; /* Adjust this value to position the logo */
}

.profile-image {
  width: 180px;  /* Increase size from 120px to 180px */
  height: 180px; /* Same here to maintain the aspect ratio */
  border-radius: 50%; /* Still keeps the circular shape */
  object-fit: cover;
  border: 4px solid #27ae60; /* Adjust border thickness */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.profile-image:hover {
  transform: scale(1.1); /* Keep the hover effect */
}

.hero-section {
  background: url("../img/computer.jpg") no-repeat center center/cover;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
}

.hero-title {
  font-weight: 600;
  font-size: 3.5rem;
  margin-bottom: 10px; /* Reduce space between name and title */
  line-height: 1.2; /* Adjust line height for better spacing */
}

.hero-subtitle {
  font-weight: 400;
  font-size: 1.2rem;
  margin-top: 0; /* Remove any additional space on top */
  line-height: 1.4; /* Adjust line height for job title */
}

.btn-glow {
  padding: 10px 20px;
  background-color: #27ae60;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s, box-shadow 0.3s;
  box-shadow: 0 0 15px rgba(39, 174, 96, 0.5);
}

.btn-glow:hover {
  box-shadow: 0 0 30px rgba(39, 174, 96, 0.8);
  transform: translateY(-5px);
}

/* Keyframes for Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Project Cards */
.project-section {
  background-color: #121212;
  padding: 60px 0;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Ensures responsiveness */
  grid-gap: 20px; /* Spacing between cards */
  margin: 0 auto;
  max-width: 1200px;
}

.project-card {
  background-color: #2e2e2e;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-image {
  height: 200px; /* Set height for consistent image size */
  background-size: cover;
  background-position: center;
  transition: transform 0.3s ease;
}

.project-info {
  padding: 20px;
  background-color: #1e1e1e;
  color: #fff;
  transition: background-color 0.3s ease;
  text-align: left;
}

.project-card:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5);
}

.project-card:hover .project-image {
  transform: scale(1.1); /* Image zoom effect */
}

.project-info h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  transition: color 0.3s ease;
}

.project-info p {
  font-size: 1rem;
  color: #ccc;
  transition: color 0.3s ease;
}
.project-card:hover .project-info h3 {
  color: #27ae60; /* Highlight color for the project title */
}

/* Text color change on hover */
.project-card:hover .project-info p {
  color: #bbb;
}
/* Skill Cards */

.skills-section, .about-section, .contact-section {
  margin-bottom: 40px; /* Adjust based on how much space you need */
}

.skills-section {
  display: block; /* Change to block to stack the items */
  text-align: center; /* Center the text inside */
  margin: 0 auto;
  max-width: 600px; /* Limit the width to match the earlier layout */
}

/* Skill Card */
.skill-card {
  width: 100%; /* Make the skill card take full width */
  margin-bottom: 10px;
  padding: 15px;
  background-color: #444;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

/* Hover Effect */
.skill-card:hover {
  background-color: #27ae60;
}

.about-section {
  padding: 0 20px;
}
.nav-bar {
  background-color: rgba(0, 0, 0, 0.8);
  padding: 10px 20px;
  position: fixed;
  width: 100%;
  top: -100px; /* Start off-screen */
  z-index: 1000;
  transition: top 0.5s;
}

.nav-bar ul {
  list-style: none;
  text-align: center;
}

.nav-bar ul li {
  display: inline-block;
  margin: 0 15px;
}

.nav-bar ul li a {
  color: #fff;
  text-transform: uppercase;
  font-weight: 600;
}
.nav-bar ul li a.active {
  color: #27ae60; /* Green color for active link */
  font-weight: bold; /* Bold the active link */
  border-bottom: 2px solid #27ae60; /* Underline active link */
  transition: border-bottom 0.3s ease, color 0.3s ease;
}

.nav-bar ul li a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #27ae60;
  transition: width 0.3s ease;
}

.nav-bar ul li a:hover::after {
  width: 100%; /* Underline expands on hover */
}

.nav-bar ul li a:hover {
  color: #27ae60; /* Change color on hover */
}

/* Sticky effect when scrolling */
.nav-bar.sticky {
  background-color: rgba(0, 0, 0, 0.9); /* Darker background */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5); /* Add subtle shadow */
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.menu-toggle span {
  height: 3px;
  width: 25px;
  background-color: white;
  margin: 5px;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-links.active {
    display: flex;
  }
}

/* Contact Form Styles */

.contact-section {
  display: flex;
  justify-content: center; /* Center horizontally */
  align-items: center;
  flex-direction: column; /* Stack elements vertically */
  padding: 40px 0; /* Add padding around the section */
  text-align: center;
}

/* Center the Contact Form */
.contact-form {
  max-width: 600px; /* Limit width for better visual balance */
  width: 100%;
  margin: 0 auto; /* Center form horizontally */
  padding: 20px;
  background-color: #1e1e1e;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Form Inputs */
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 15px;
  margin-bottom: 15px;
  border: none;
  border-radius: 5px;
  background-color: #333;
  color: #fff;
  font-size: 1rem;
  box-sizing: border-box;
}

/* Form Button */
.contact-form button {
  padding: 15px 20px;
  background-color: #27ae60;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s ease;
  width: 100%; /* Ensure button takes full width */
  text-align: center;
  box-sizing: border-box;
}

.contact-form button:hover {
  background-color: #2ecc71;
}