:root {
  --background-color: #1a1a1a;
  --text-color: #ffffff;
  --primary-color: #00ffff;
  --secondary-color: #9400d3;
}

body {
  background-color: var(--background-color);
  color: var(--text-color);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1rem 2rem;
  background-color: rgba(26, 26, 26, 0.8);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  margin-bottom: 1rem;
  font-size: 2rem;
  font-weight: bold;
  color: var(--primary-color);
}

nav ul {
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
  display: flex;
}

nav ul li a {
  color: var(--text-color);
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s;
}

nav ul li a:hover {
  color: var(--primary-color);
}

section {
  padding: 100px 2rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s, transform 0.6s;
}

section.visible {
  opacity: 1;
  transform: translateY(0);
}

#home {
  justify-content: center;
}

.intro h1 {
  font-size: 3rem;
  font-weight: bold;
}

.typing {
  border-right: 0.15em solid var(--primary-color);
  white-space: nowrap;
  overflow: hidden;
  margin: 0 auto;
  letter-spacing: 0.15em;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--primary-color);
}

#projects h2 {
  margin-top: -1rem; /* Adjust as needed */
}

.about-content {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.profile-picture {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary-color);
}

.about-text p {
  max-width: 600px;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  line-height: 1.6;
  text-align: left;
}

.skill-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.skill-item {
  background-color: #2a2a2a;
  color: var(--primary-color);
  padding: 0.75rem 1.5rem;
  border-radius: 5px;
  font-size: 1.1rem;
  border: 1px solid var(--primary-color);
  transition: all 0.3s;
}

.skill-item:hover {
  background-color: var(--primary-color);
  color: var(--background-color);
}

.project-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  width: 100%;
  max-width: 1200px;
}

.project-card {
  background-color: #2a2a2a;
  padding: 2rem 2.5rem 2.5rem 2.5rem; /* Reduced top padding */
  border-radius: 15px; /* Increased border-radius */
  border: 1px solid #333;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Added subtle box-shadow */
  background: linear-gradient(145deg, #2a2a2a, #3a3a3a); /* Subtle gradient */
  min-height: 260px; /* Increased minimum height to accommodate spacing */
  display: flex; /* Added flexbox */
  flex-direction: column; /* Stack items vertically */
}

.project-image {
  width: 100%;
  height: 150px; /* Fixed height for consistency */
  object-fit: cover; /* Cover the area, cropping if necessary */
  border-radius: 8px; /* Slightly rounded corners */
  margin-bottom: 0.5rem; /* Reduced space below the image */
}

.project-card:hover {
  transform: translateY(-12px); /* Slightly more pronounced lift */
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3); /* More pronounced shadow */
}

.project-card h3 {
  color: var(--primary-color);
  margin-bottom: 2.5rem; /* Changed to 2.5rem */
  margin-top: -1rem; /* Further adjusted upwards */
}

.project-card a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  border: 1px solid var(--primary-color);
  padding: 0.5rem 1rem;
  border-radius: 5px;
  transition: background-color 0.3s, color 0.3s;
  margin-top: auto; /* Push to bottom */
}

.project-card a:hover {
  background-color: var(--primary-color);
  color: var(--background-color);
}

.contact-links a {
  color: var(--text-color);
  text-decoration: none;
  font-size: 1.2rem;
  margin: 0 1rem;
  transition: color 0.3s;
  border-bottom: 2px solid transparent;
  cursor: pointer;
}

.contact-links a:hover {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

footer {
  text-align: center;
  padding: 1rem;
  background-color: #111;
}
