/* Full-screen fixed background */
.background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('PageBackground.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1; /* Behind all content */
}

/* Body now only handles content */
body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  color: white;
}

a {
  color: #00bfa6;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1, h2, h3 {
  color: white;
  font-family: "Garamond", serif;
}

.hero {
  color: white;
  padding: 50px 20px;
  display: flex;
  justify-content: center;   /* Centers content horizontally */
}

.hero-content {
  display: flex;
  align-items: center;       /* Vertically center image + text */
  gap: 20px;
  max-width: 900px;          /* Prevents hero from stretching too wide */
  width: 100%;               /* Responsive */
  flex-wrap: wrap;           /* Stacks on smaller screens */
}

.hero-image {
  width: 120px;              /* Smaller, consistent size */
  height: 120px;
  border-radius: 50%;        /* Makes it circular */
  object-fit: cover;         /* Keeps image proportions */
}

.hero-text h1 {
  margin: 0;
  font-size: 2rem;
}

.hero-text p {
  margin: 5px 0 0 0;
  font-size: 1.2rem;
  color: #00b3b3;            /* Teal accent for subtitle */
}

.hero nav a {
  color: white;
  margin: 0 1rem;
}

section {
  padding: 2rem;
  max-width: 900px;
  margin: auto;
}

h2 {
  border-bottom: 2px solid #00bfa6;
  padding-bottom: 0.5rem;
}

.aboutme-card {
  background: #111;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.project-card {
  background: #111;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.project-card a {
  display: inline-block;
  margin-top: 0.5rem;
  font-weight: bold;
}

footer {
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  color: #bbb;
}

/* Fade-in animation */
.fade-in {
  opacity: 0;
  animation: fadeIn ease 1.2s forwards;
}

@keyframes fadeIn {
  0% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }

}










