:root{
  --blue: #b8e1ff;
  --green: #ccfaf0;
  --cream: #faf7f2;
  --accent: #718dc5;
  --text-dark: #2f3e55;
  --line: rgba(79,111,174,0.25);
}

*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-dark);
  line-height: 1.7;

  background: linear-gradient(
    180deg,
    var(--blue) 0%,
    var(--blue) 35%,
    var(--cream) 75%,
    var(--cream) 100%
  );

  background-attachment: fixed;
}


/* ---------- Header ---------- */
header{
  padding: 2rem 10% 1.5rem;
}

.section-title {
  display: inline-block;         
  padding-bottom: 0.4rem;
  border-bottom: 3px solid var(--accent);
  font-family: 'Playfair Display', serif;
  font-size: 2rem;

}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

h2 {
  position: relative;
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

/* ---------- Navigation ---------- */
nav {
  width: 100%;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  padding: 0;
  margin: 0;
}

nav a{
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 400;
  letter-spacing: 0.05em;
  position: relative;
}

nav a::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: 0.3s ease;
}

nav a:hover::after{
  width: 100%;
}

/* ---------- Hero ---------- */
.hero{
  text-align: center;
}

.hero h1{
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  margin-bottom: 0.5rem;
}

.hero p{
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 1rem;
  opacity: 0.8;
}

/* ---------- Group Photo ---------- */
.group-photo{
  width: 80%;
  margin: 1rem auto;
  height: 470px;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--line);
}

/* ---------- About ---------- */
.about {
  padding: 3rem 5%;
  width: 80%;
  margin: 5rem auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
  box-shadow: none;
  border: none;
}

.about h2{
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
}

.about-photo-frame{
  position: relative;
  width: 120%;
  height: 275px;
}

.about-photo{
  position: relative;
  width: 110%;
  height: 110%;
  background-size: cover;
  background-position: center;
}


/* ---------- Carousel ---------- */
.carousel-section {
  padding: 2rem 0 3rem;
  margin: 1rem 0;
}

.carousel-title {
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  display: inline-block;
  border-bottom: 3px solid var(--accent);
}

.carousel-title-wrap {
  text-align: center;
}

.carousel {
  width: 85%;
  height: 500px;
  margin: 0 auto 1rem;
  overflow: hidden;
  border: 1px solid var(--line);
}

.carousel-track{
  display: flex;
  transition: transform 0.75s ease;
  height: 100%;
}

.slide{
  min-width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.thumbnails {
  width: 85%;
  margin: 0 auto 1.5rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.thumb {
  width: 90px;
  height: 60px;
  background-size: cover;
  background-position: center;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.thumb.active {
  border-color: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  border-width: 2px;
}

/* ---------- Contact ---------- */
.contact{
  text-align: center;
  padding: 2.5rem 10% 5rem;
}

.contact h2{
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  margin-bottom: 1.5rem;
}

.contact-address{
  font-style: normal;
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 2.5rem;
  letter-spacing: 0.04em;
}

.contact-social-label{
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1.5rem;
  opacity: 0.75;
}

.contact-socials{
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.contact-socials a{
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.contact-socials img{
  width: 20px;
  height: 20px;
  filter: opacity(0.8);
}

.contact-socials a:hover{
  background: var(--accent);
  border-color: var(--accent);
}

.contact-socials a:hover img{
  filter: brightness(0) invert(1);
}


/* ---------- Footer ---------- */
footer{
  padding: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  border-top: 1px solid var(--line);
}

/* ---------- Responsive ---------- */
@media(max-width: 900px){
  .about{
    grid-template-columns: 1fr;
  }

  .hero h1{
    font-size: 2.6rem;
  }

  nav ul{
    gap: 1.5rem;
  }
}