/* --- RESET & BASE --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

body {
  background: #fafafa;
  color: #111;
  line-height: 1.6;
  padding-top: 60px;
}

/* --- NAV --- */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 60px;
  background: rgba(255,255,255,0.95);
  border-bottom: 1px solid #e5e5e5;
  backdrop-filter: blur(8px);
  z-index: 1000;
}

.logo {
  font-size: 1.1rem;
  font-weight: 600;
}

nav ul {
  display: flex;
  gap: 30px;
  list-style: none;
}

nav a {
  text-decoration: none;
  color: #1a73e8;
  font-size: 0.95rem;
  font-weight: 500;
  transition: 0.2s;
}

nav a:hover {
  color: #155ab6;
}

/* --- SECTIONS --- */
section {
  max-width: 750px;
  margin: 0 auto;
  padding: 80px 20px;
  scroll-margin-top: 80px;
}

/* --- HERO --- */
.hero {
  height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero h1 {
  font-size: 3rem;
  line-height: 1.2;
}

.hero p {
  margin-top: 15px;
  color: #555;
  font-size: 1.1rem;
  max-width: 600px;
}

/* --- PROJECTS --- */
.projects h1 {
  font-size: 2.3rem;
  margin-bottom: 60px;
}

.project-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.project {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 80px;
  padding: 25px;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  background: #fff;
  transition: 0.25s ease;
}

.project img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 35px;  /* Increased space between image and text */
  transition: 0.3s;
}

.project h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.project p {
  color: #555;
  font-size: 0.95rem;
}

.project:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}

.project:hover img {
  transform: scale(1.02);
}

.project::after {
  content: "View Project →";
  color: #1a73e8;
  font-size: 0.9rem;
  margin-top: 10px;
  display: inline-block;
}

/* --- RESUME --- */
.resume {
  padding-bottom: 120px; /* Extra space at bottom */
}

.resume h2 {
  font-size: 2.3rem;
  margin-bottom: 30px;
}

.resume h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  margin-top: 25px;
  color: #111;
}

.resume-contact p {
  margin-bottom: 6px;
}

.resume-contact .name {
  font-weight: 700;
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.resume a {
  color: #1a73e8;
  text-decoration: none;
}

.resume a:hover {
  text-decoration: underline;
}

.resume-section ul {
  list-style-type: disc;
  padding-left: 20px;
}

.resume-section p, .resume-section li {
  color: #555;
  font-size: 0.95rem;
}

/* --- FOOTER --- */
.footer {
  text-align: center;
  padding: 40px 20px;
  background: #f5f5f5;
  color: #555;
  border-top: 1px solid #e5e5e5;
  font-size: 0.9rem;
}

.footer a {
  color: #1a73e8;
  text-decoration: none;
  margin: 0 5px;
}

.footer a:hover {
  text-decoration: underline;
}

/* --- FADE IN ANIMATION --- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 700px) {
  nav {
    padding: 0 20px;
  }

  section {
    padding: 60px 15px;
  }

  .hero h1 {
    font-size: 2.1rem;
  }
}