/* =========================
   Base / Reset
========================= */
*{
  box-sizing: border-box;
}

.page{
  max-width: 1100px;   /* controls page width */
  margin: 0 auto;      /* centers the page */
  padding: 24px;       /* space from edges */
}

.about,
.featured-work,
.skills {
  max-width: 900px;
  margin: 0 auto;
}


html, body {
  margin: 0;
  padding: 0;
  background-color:rgb(188, 228, 252)
}

body{
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: #111;
  line-height: 1.5;
}

img{
  max-width: 100%;
  height: auto;
  display: block;
}

/* =========================
   Navigation
========================= */
.main-nav{
  width: 100%;
  padding: 16px 24px;
  background: transparent;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;

  /* keep one line */
  flex-wrap: nowrap;
  white-space: nowrap;

  /* if screen is small, allow scroll instead of dropping a link */
  overflow-x: auto;
}

.main-nav a{
  text-decoration: none;
  color: #111;
  font-weight: 500;
  padding: 6px 8px;
  border-radius: 6px;
}

.main-nav a:hover{
  text-decoration: underline;
}

/* =========================
   Page Container (optional but nice)
   Wrap your page content in <main class="container">...</main>
========================= */
.container{
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px;
}

/* =========================
   About Section (recommended)
   Use:
   <section class="about">
     <div class="about-text">...</div>
     <img class="profile-pic" ...>
   </section>
========================= */
.about{
  display: flex;
  flex-direction: column;   /* stack image + text vertically */
  align-items: center;      /* center everything */
  gap: 24px;

  max-width: 800px;
  margin: 40px auto;
  padding: 0 24px;
}

.about-text{
  text-align: center;
}

.about-text h1,
.about-text h2{
  margin-top: 0;
}


/* Your profile image sizing */
.profile-pic{
  width: 420px;        /* change to 300px if you want smaller */
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* If your image currently uses float somewhere, this cancels it */
.profile-pic,
.about img{
  float: none;
}

/* =========================
   Headings / Sections
========================= */
h1{
  font-size: 40px;
  margin: 0 0 10px;
}

h2{
  font-size: 26px;
  margin: 28px 0 10px;
}

p{
  margin: 0 0 14px;
}

/* =========================
   Responsive (mobile)
========================= */

@media (max-width: 800px) {
  .about {
    flex-direction: column;
  }

  .profile-pic {
    width: 100%;
    max-width: 520px;
  }

  .main-nav {
    display: flex;
    justify-content: center;
    gap: 24px;
    padding: 16px 0;
    margin: 0;
  }

.main-nav a {
  text-decoration: none;
  color: rgb(255, 255, 255);
  font-weight: 500;
/* center the whole projects section */
.projects-page{
  max-width:1100px;
  margin:0 auto;
  padding:40px 20px 80px;
}

/* 2-column layout */
.projects-grid{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:50px;
}

/* card styling */
.project{
  background:rgba(255,255,255,0.35);
  border:1px solid rgba(0,0,0,0.08);
  border-radius:16px;
  padding:22px;
  box-shadow:0 8px 24px rgba(0,0,0,0.05);
}

.project h2{
  margin:0 0 6px;
  font-size:26px;
}

.project-sub{
  margin:0 0 16px;
  font-style:italic;
  opacity:0.75;
}

.project-image{
  width:100%;
  max-height:280px;
  object-fit:cover;
  border-radius:12px;
  display:block;
}

/* mobile */
@media (max-width:850px){
  .projects-grid{ grid-template-columns:1fr; }

 /* CENTER PROJECTS PAGE */
.projects-page{
  max-width:1100px;
  margin:0 auto;
  padding:40px 20px 80px;
}

.projects-page h1{
  text-align:center;
}

}


}


}



a:has(.project-image){
  display: inline-block;
}










  

