

body {
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  margin-left: 2%;
  margin-right:2%;
  padding: 0;
  line-height: 1.6;
  background: #ffffffff;
  color: #333;
}


/* NAV BAR */
/* HEADER: make sticky */
header {
  position: sticky;
  top: 0;
  z-index: 1000;

  background: #333;   /* navbar background color */
  padding: 0.5rem 0;  /* vertical padding */

  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);

}

/* NAV LIST */
header ul {
  list-style: none;   /* remove bullets */
  margin: 0;
  padding: 0;

  display: flex;
  justify-content: space-evenly; /* center horizontally */
  gap: 2rem;               /* space between items */
}

/* NAV LINKS */
header ul li a {
  text-decoration: none;   /* no underline */
  color: white;            /* link color */
  font-size: 1.1rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

/* Optional: active link style */
header ul li a:active,
header ul li a:focus {
  color: #ffcc80;
}

/* Hover effect */
ul li a:hover {
  color: #ff9800;            /* change color on hover */
}

/* Optional: active link style */
ul li a:active,
ul li a:focus {
  color: #ffcc80;            /* lighter hover when clicked/focused */
}


a:hover{
  color: #ff9800!important;
  text-decoration:none;
}

/*HERO SECTION*/
.hero-grid{
  margin-top:5%;
  display: grid;
  grid-template-columns: 2fr 3fr;
  grid-template-rows: 1fr 4fr;
  column-gap:2%;
  /*padding: 10px;
  row-gap:0%;*/
}


#hero-hook{
  font-size:20px;
  align-self: end;
  margin-bottom:1%;
}
#hero-description{
  font-size:25px;
  margin-bottom:5%;
}
#hero-image{
  grid-row:1/span 2;
  border-radius:20%;
  margin:0;
  width:100%;
  justify-content: center;
}

/*PROJECT SECTION*/
.project-flexbox {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 cards per row */
  gap:1%;
}
.project-flexbox a {
  text-decoration: none!important; /* removes underline from the link itself */
  color: inherit;        /* keeps text color */
}

.project-flexbox a:hover .project-card {
  box-shadow: 0 4px 12px rgba(0,0,0,0.2); /* highlight on hover */
}
.project-flexbox a:hover .project-card img{
  opacity:0.7;
}



.project-card {
  display: flex;
  flex-direction: row;     /* image on the left, text on the right */
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
  height: 200px;            /* equal height cards in the grid */

  align-items:stretch;
}

.project-card img {
  width: 40%;              /* image takes 40% of card width */
  object-fit: fill;       /* crop without distortion */
  height: auto;            /* fill card height */
  display: block;
}

.project-card-content {
  flex: 1;                 /* take remaining space */
  padding: 1rem;
  display: flex;
  flex-direction: column;
  overflow:auto;
}

.project-card-content h2 {
  margin: 0 0 0.5rem 0;
  font-size: 1.2rem;
}

.project-card-content p {
  margin: 0;
  flex: 1;                 /* stretch description to fill vertical space */
}


/*CONTACT SECTION*/

.contact_link{
  display:flex;
  justify-content: space-evenly;
  align-items: center;
}
.footer{
  display:flex;
  justify-content: center;
  margin-top:2%
}
h1{
  text-align: center;
}
/*Change width to relative unit*/
#contact img{
  width: 100px;
}
#contact img:hover{
  filter: drop-shadow(5px 5px 10px rgba(0, 0, 0, 0.5));
}