@import url("https://fonts.googleapis.com/css2?family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap");

:root {
  --primary-color: #0070f3;
  --secondary-color: #0366d6;
  --background-color: #0f172a;
  --surface-color: #1e293b;
  --text-color: #f8fafc;
  --text-secondary: #94a3b8;
  --accent-color: #38bdf8;
  --border-color: #334155;
  --card-bg: #1e293b;
  --font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  /* font-family: Arial, sans-serif; */
  font-family: "Source Sans 3", sans-serif;
  /* font-family: "Lato", sans-serif; */
  /* background-color: #0d1117; */
  background-color: #1e1e1e;
  color: #fff;
  line-height: 1.6;
  margin: 0;
  padding: 0px 100px 20px 100px; /* Updated padding */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

nav {
  background-color: #1e1e1e;
  padding: 20px 0px;
  position: sticky;
  top: 0;
  border-bottom: 1px solid rgba(89, 89, 89, 0.3);
  z-index: 999;
}

/* Social Media Links */
.social-links {
  text-align: center;
  margin-bottom: 20px;
}

.social-links a {
  /* color: white; /* Default color for links */
  text-decoration: none;
  margin: 0 10px;
  color: var(--text-secondary);
}

.social-links a:hover {
  color: var(--accent-color);
}

/* Header Section */
header {
  text-align: center;
  margin-bottom: 40px;
}

header > h1 {
  font-size: 2.5rem;
  margin-bottom: 0px;
  color: var(--accent-color);
}

header p {
  font-size: 1.2rem;
  color: #999;
  cursor: pointer;
}

/* About Section */
section {
  margin-bottom: 40px;
}

h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 20px;
  border-bottom: 1px solid #333;
  padding-bottom: 10px;
  color: var(--accent-color);
}

p,
li {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: #dfdfdf;
}

/* Skills Section */
.skills ul {
  list-style-type: none;
  padding-left: 0; /* Remove default padding */
}

.skills li {
  margin-bottom: 5px;
  font-size: 1.1rem;
  padding-left: 0;
}

.viewMyResume {
  color: var(--accent-color);
}

/* Projects Section */
ul {
  list-style: none;
}

.projects > ul > li {
  margin: 15px 0px;
}

/* Links */
a {
  color: #fff;
  text-decoration: underline;
}

a:hover {
  color: #ccc;
}

/* Footer */
footer {
  text-align: center;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid #444;
}

footer p {
  font-size: 0.9rem;
  color: #888;
}

footer > i > p > a {
  font-size: 0.9rem;
  color: #888;
  margin-left: 3px;
}

.projects2 > ul > li {
  display: flex;
  flex-direction: column;
}

.projects2 > ul > li > .details {
  margin: 15px 0px 15px 40px;
}

.projects2 > ul > li > .details > .tech > ul {
  display: flex;
}

.projects2 > ul > li > .details > .tech > ul > li {
  padding: 5px 5px;
  border: 1px solid gray;
  border-radius: 9px;
  font-size: 14px;
  cursor: pointer;
  margin: 0px 5px;
  margin-bottom: 20px;
}

.porjectButtom {
  display: flex;
}

.porjectButtom > a {
  text-decoration: none;
  margin: 0px 10px;
  padding: 5px;
  border: 1px solid gray;
  width: 80px;
  border-radius: 9px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  margin-bottom: 20px;
}

/* Projects Section */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2.5rem;
  margin-top: 50px;
}

.project-card {
  /* background-color: var(--card-bg); */
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--border-color);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
  border-color: var(--accent-color);
}

.project-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.project-image img {
  cursor: pointer;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.05);
}

.project-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.project-card p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 1rem;
  flex: 1;
}

.project-links {
  display: flex;
  gap: 1rem;
  margin-top: auto;
}

.project-link {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background-color: rgba(56, 189, 248, 0.1);
  color: var(--accent-color);
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.project-link:hover {
  background-color: rgba(56, 189, 248, 0.2);
  transform: translateY(-2px);
}

.imagePreview {
  display: none;
}

.imagePreviewShow {
  display: flex;
  height: 80%;
  width: 80%;
  border-color: var(--accent-color);
  border-radius: 9px;
  z-index: 99;
  position: fixed;
}

@media (max-width: 900px) {
  body {
    padding: 20px 50px; /* Updated padding */
  }
}

@media (max-width: 380px) {
  body {
    padding: 20px 20px; /* Updated padding */
  }

  .about > p {
    /* text-align: justify; */
    /* padding: 10px; */
  }

  .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    column-gap: 0;
    row-gap: 2.5;
    margin-top: 50px;
  }

  .project-image {
    width: 100%;
    height: 150px;
    overflow: hidden;
  }
}
