/* Homepage- full screen image and parallax */

body.home .hero {
  position: relative;
  height: 100vh; 
  width: 100%;
  overflow: hidden;
}

body.home .hero-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%; 
  object-fit: cover;
  transform: translateY(0);
  transition: transform 0.2s ease-out;
}

body.home .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(1px);
}

body.home .hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  padding: 0 1rem;
}

body.home .tagline {
  font-size: 2.4rem;
  font-weight: 600;
  max-width: 700px;
  margin: 0 auto 0.8rem;
}

body.home .sub {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 1.8rem;
}

body.home .nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

body.home .nav a {
  color: white;
  font-weight: 500;
  font-size: 1.05rem;
}

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

body.home .cta {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.7rem 1.4rem;
  background: var(--carolina-blue);
  color: white;
  border-radius: 6px;
  font-weight: 600;
  transition: 0.2s;
}

body.home .cta:hover {
  background: #3a8fc1;
}

/* Home page variables and general styles */
:root {
  --carolina-blue: #4b9cd3;
  --navy: #13294b;
  --light-grey: #f6f7f8;
  --text-dark: #1a1a1a;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

body {
  background: #fff;
  color: var(--text-dark);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: var(--carolina-blue);
}

/* Intro card*/
.intro {
  padding: 5rem 1rem;
  display: flex;
  justify-content: center;
  background: white;
}

.card {
  background: var(--light-grey);
  padding: 2rem;
  max-width: 600px;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  transition: transform 0.1s ease-out;
}

.card h2 {
  color: var(--navy);
  margin-bottom: 0.6rem;
}

.card .muted {
  font-size: 0.9rem;
  opacity: 0.7;
}

/* footer */
footer {
  padding: 2rem;
  text-align: center;
  background: #f0f3f5;
  font-size: 0.95rem;
}

/* /* about page  */
.about-page {
  max-width: 1100px;
  margin: 5rem auto 4rem;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

/* Back button */
.back {
  display: inline-block;
  margin: 2rem 1rem;
  font-size: 1rem;
  color: var(--navy);
  font-weight: 500;
  transition: 0.2s;
}

.back:hover {
  color: var(--carolina-blue);
}

/* Photo section */
.photos {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  position: relative;
}

.portrait-vertical {
  width: 45%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  object-fit: cover;
}

.portrait-horizontal {
  width: 55%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  object-fit: cover;
  margin-top: 2rem;
}

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

  .portrait-vertical,
  .portrait-horizontal {
    width: 100%;
    margin-top: 0;
  }
}

/* Bio section */
.bio h1 {
  font-size: 2.3rem;
  color: var(--navy);
  margin-bottom: 1rem;
}

.bio-text {
  line-height: 1.7;
  margin-bottom: 2rem;
  font-size: 1.05rem;
  color: #333;
}

.contacts {
  list-style: none;
  padding-left: 0;
  font-size: 1rem;
  line-height: 1.8;
}

.contacts li a {
  color: var(--carolina-blue);
  font-weight: 500;
}

.contacts li a:hover {
  text-decoration: underline;
}

/* Responsive design adjustments */
@media (max-width: 850px) {
  .about-page {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .back {
    margin-left: 0.7rem;
  }
}

/* AI Skills Page*/
.skills-page {
  max-width: 1100px;
  margin: 5rem auto 4rem;
  padding: 0 1rem;
  font-family: "Inter", sans-serif;
}

.skills-page h1 {
  font-size: 2.5rem;
  color: var(--navy);
  margin-bottom: 1.5rem;
  text-align: center;
}

.skills-page img {
  display: block;
  margin: 2rem auto;
  max-width: 600px;
  width: 100%;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  object-fit: cover;
}

/* Grid for the AI examples */
.ai-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

/* added this to have shadow behind boxes */
.ai {
  background: var(--light-grey);
  padding: 1.8rem;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ai h3 {
  color: var(--navy);
  margin-bottom: 0.8rem;
  font-size: 1.3rem;
}

.ai p {
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
}

/* hover effect when mouse is over box */
.ai:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

/* human skills page*/
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.skill {
  background: var(--light-grey);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.skill img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.skill figcaption {
  padding: 1.2rem;
}

.skill h3 {
  color: var(--navy);
  margin-bottom: 0.6rem;
  font-size: 1.3rem;
}

.skill p {
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
}

/* same hover effect as ai page boxes */
.skill:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

@media (max-width: 900px) {
  .skill img {
    height: 180px;
  }
}

@media (max-width: 600px) {
  .skills-grid {
    grid-template-columns: 1fr;
  }

  .back {
    margin-left: 0.7rem;
  }
}
