/* Base Styles */
:root {
  --primary-color: #2563eb;
  --secondary-color: #1e40af;
  --dark-color: #1f2937;
  --light-color: #f9fafb;
  --gray-color: #6b7280;
  --accent-color: #e11d48;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

body {
  background-color: var(--light-color);
  color: var(--dark-color);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

/* Update button styles to be white with blue hover effect */
.btn-primary {
  background-color: white; /* Default white background */
  color: var(--primary-color); /* Blue text color */
  border: 2px solid var(--primary-color); /* Blue border */
}

.btn-primary:hover {
  background-color: var(--primary-color); /* Blue background on hover */
  color: white; /* White text color on hover */
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: white;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.section-title h2 span {
  color: var(--primary-color);
}

.section-title p {
  color: var(--gray-color);
}

/* Header Styles */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding: 10px 0; /* Reduced padding to make the navbar height smaller */
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.2rem; /* Reduced font size */
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
}

.nav-list {
  display: flex;
  list-style: none;
}

.nav-link {
  padding: 10px 15px;
  margin: 0 5px;
  color: var(--dark-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color);
}

.hamburger {
  display: none;
  cursor: pointer;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background-color: var(--dark-color);
  transition: all 0.3s ease;
}

/* Hero Section */
.hero {
  padding: 150px 0 100px;
}

.hero .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-content {
  flex: 1;
  max-width: 600px;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 15px;
}

.hero-content h1 span {
  color: var(--primary-color);
}

.hero-content h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--gray-color);
  font-weight: 400;
}

.hero-content p {
  margin-bottom: 30px;
  font-size: 1.1rem;
  color: var(--gray-color);
}

.hero-btns {
  display: flex;
  gap: 15px;
}

/* Make the button smaller */
.btn-primary {
  padding: 8px 16px; /* Reduced padding to make the button smaller */
  font-size: 0.9rem; /* Adjusted font size */
}

/* Move the title and button slightly to the left */
.about-image {
  text-align: left; /* Align content to the left */
  margin-left: 20px; /* Add left margin */
}

/* Keep the hero image small with rounded edges */
.hero-image img {
  border-radius: 15px; /* Rounded edges */
  width: 200px; /* Small size */
  height: auto; /* Maintain aspect ratio */
  object-fit: cover; /* Ensure the image fits within the dimensions */
}

/* About Section */
.about {
  padding: 100px 0;
}

.about-content {
  display: flex;
  align-items: center;
  gap: 50px;
}

.about-image {
  flex: 1;
}

.about-image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-text {
  flex: 1;
}

.about-text h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.about-text p {
  margin-bottom: 20px;
  color: var(--gray-color);
}

.about-info {
  display: flex;
  gap: 30px;
  margin-bottom: 30px;
}

.info-item p {
  margin-bottom: 10px;
}

.info-item span {
  color: var(--dark-color);
  font-weight: 600;
}

.skills h4 {
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-tags span {
  background-color: var(--light-color);
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Add a subtle shadow */
}

/* Add hover effect for specific skills */
.skill-tags span {
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Hover effect for familiar and intermediate skills */
.skill-tags span:nth-child(1), /* JavaScript */
.skill-tags span:nth-child(4), /* SQL */
.skill-tags span:nth-child(11), /* EntityFramework */
.skill-tags span:nth-child(3), /* OOP */
.skill-tags span:nth-child(9), /* MVC */
.skill-tags span:nth-child(10), /* API */
.skill-tags span:nth-child(8), /* .NET */
.skill-tags span:nth-child(12), /* HTML */
.skill-tags span:nth-child(13) /* CSS */ {
  background-color: var(--primary-color);
  color: white;
}

.skill-tags span:nth-child(1):hover,
.skill-tags span:nth-child(4):hover,
.skill-tags span:nth-child(11):hover,
.skill-tags span:nth-child(3):hover,
.skill-tags span:nth-child(9):hover,
.skill-tags span:nth-child(10):hover,
.skill-tags span:nth-child(8):hover,
.skill-tags span:nth-child(12):hover,
.skill-tags span:nth-child(13):hover {
  background-color: white;
  color: var(--primary-color);
}

/* Add hover effect for 'C#' and 'Git & GitHub' skills */
.skill-tags span:nth-child(2), /* C# */
.skill-tags span:nth-child(5) /* Git & GitHub */ {
  background-color: var(--primary-color);
  color: white;
}

.skill-tags span:nth-child(2):hover,
.skill-tags span:nth-child(5):hover {
  background-color: white;
  color: var(--primary-color);
}

/* Exclude other skills from hover effect */
.skill-tags span:not(:hover) {
  background-color: var(--light-color);
  color: var(--dark-color);
}

/* Ensure skill tags are visible in dark mode */
body.dark-mode .skill-tags span {
  background-color: #333333; /* Darker background for better contrast */
  color: #f5f5f5; /* Brighter text color */
  box-shadow: 0 2px 5px rgba(255, 255, 255, 0.1); /* Subtle shadow for visibility */
}

/* Services Section */
.services {
  padding: 100px 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.service-card {
  background-color: white;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.service-card i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.service-card h3 {
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.service-card p {
  color: var(--gray-color);
}

/* Portfolio Section */
.portfolio {
  padding: 100px 0;
}

.portfolio-filter {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 30px;
}

.filter-btn {
  padding: 8px 20px;
  background-color: var(--light-color);
  border: none;
  border-radius: 4px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn.active,
.filter-btn:hover {
  background-color: var(--primary-color);
  color: white;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
}

.portfolio-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(37, 99, 235, 0.9);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

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

.portfolio-overlay h3 {
  color: white;
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.portfolio-link {
  color: white;
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.portfolio-link:hover {
  transform: scale(1.2);
}

/* Contact Section */
.contact {
  padding: 100px 0;
}

.contact-content {
  display: flex;
  gap: 50px;
}

.contact-info {
  flex: 1;
}

.info-item {
  display: flex;
  align-items: center;
  margin-bottom: 25px;
}

.info-item i {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-right: 20px;
  width: 30px;
  text-align: center;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--light-color);
  border-radius: 50%;
  color: var(--dark-color);
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-5px);
}

.contact-form {
  flex: 1;
}

.form-group {
  margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

/* Footer */
.footer {
  padding: 10px 0; /* Reduced padding to make the footer smaller */
  font-size: 0.8rem; /* Adjusted font size for a smaller appearance */
}

/* Add styles for dark mode */
body.dark-mode {
  background-color: #121212;
  color: #f5f5f5; /* Brighter font color for better contrast */
  font-family: "Roboto", sans-serif;
}

/* Add styles for light mode */
body.light-mode {
  background-color: #ffffff;
  color: #000000;
  font-family: "Georgia", serif;
}

/* Move the dark mode toggle to the far right of the navbar */
.mode-toggle {
  position: absolute; /* Position it absolutely within the navbar */
  top: 50%; /* Center it vertically */
  right: 20px; /* Align it to the far right */
  transform: translateY(-50%); /* Adjust for perfect vertical centering */
  background: none; /* Remove background frame */
  border: none; /* Remove border */
  color: var(--primary-color); /* Set text/icon color to blue */
  font-size: 1.5rem; /* Restore original size */
  cursor: pointer; /* Add pointer cursor */
}

/* Ensure the About and Portfolio sections adapt to dark mode */
.about,
.portfolio {
  background-color: inherit; /* Inherit background color from body */
  color: inherit; /* Inherit text color from body */
}

/* Ensure the navbar adapts to dark mode */
body.dark-mode .header {
  background-color: #1f1f1f; /* Dark background for the navbar */
  color: #f5f5f5; /* Bright text color for contrast */
  box-shadow: 0 2px 10px rgba(255, 255, 255, 0.1); /* Subtle shadow for better visibility */
}

body.dark-mode .nav-list {
  background-color: #1f1f1f; /* Dark background for the menu in dark mode */
  color: #f5f5f5; /* Bright text color for better visibility */
}

body.dark-mode .nav-link {
  color: #f5f5f5; /* Bright text color for menu links */
}

body.dark-mode .nav-link:hover {
  color: var(--primary-color); /* Highlight color for hovered links */
}

body.dark-mode .hamburger .bar {
  background-color: #f5f5f5; /* Bright color for better visibility in dark mode */
}

/* Ensure the title and button styling remain consistent */
.about-image h3 {
  font-weight: normal; /* Match the style of 'Get to know me better' */
}

/* Adjust the custom modal to appear as a centered notification */
.modal {
  display: none; /* Hidden by default */
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* Center the modal */
  width: 90%; /* Responsive width */
  max-width: 400px; /* Limit the maximum width */
  background-color: #1f1f1f; /* Dark background for the modal */
  color: #f5f5f5; /* Bright text color for contrast */
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  font-family: "Poppins", sans-serif; /* More attractive font */
  z-index: 1000;
}

.modal-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
}

.modal-buttons .btn {
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.modal-buttons .btn-primary {
  background-color: #2563eb; /* Primary blue color */
  color: #fff;
}

.modal-buttons .btn-primary:hover {
  background-color: #1e40af; /* Darker blue on hover */
}

.modal-buttons .btn-secondary {
  background-color: #444;
  color: #fff;
}

.modal-buttons .btn-secondary:hover {
  background-color: #666; /* Lighter gray on hover */
}

/* Media query for smaller screens */
@media (max-width: 600px) {
  .modal {
    width: 95%;
    padding: 15px;
  }

  .modal-buttons .btn {
    padding: 6px 12px;
  }
}

/* Ensure the text inside the 'Hire Me' button is centered */
.hero-btns .btn-primary {
  display: flex; /* Use flexbox for alignment */
  justify-content: center; /* Center horizontally */
  align-items: center; /* Center vertically */
}

/* Notification styles */
.notification {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 20px;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  color: #fff;
  font-size: 14px;
  text-align: center;
}

.notification.success {
  background-color: #4caf50;
}

.notification.error {
  background-color: #f44336;
}

/* Media query for smaller screens */
@media (max-width: 600px) {
  .notification {
    font-size: 12px;
    padding: 8px 16px;
  }
}
