@import url('https://fonts.googleapis.com/css2?family=Abhaya+Libre:wght@400;700&display=swap');
/* Reset page spacing so full-bleed banners can reach edges */
*, *::before, *::after {
  box-sizing: border-box;
}

html{
  scroll-behavior: smooth;
}
html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background-color: #FFF5E9;
  color: #333;
  font-family: 'Abhaya Libre', sans-serif;
  line-height: 1.5;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}

.topbannerImage {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    float: none;
    object-fit: cover;
}

header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 3;
    pointer-events: auto;
}

.bannerContainer {
    position: relative;
}

.logoImage {
    width: 100px;
    height: 100px;
    object-fit: cover;
    margin-right: 16px;
    float:left;
}

.headerNavContainer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 24px;
    padding: 16px 24px;
    border-radius: 999px;
    margin: 6px;
    pointer-events: auto;
}

.headerNavContainer nav {
    display: flex;
    gap: 24px;
}

.headerNavContainer nav a {
    color: white;
    text-decoration: none;
    margin-left:20px;
    font-size:40px;
    font-family: "Sinhala MN", "Abhaya Libre", serif;
    font-weight: 200;
    transition: color 0.2s ease-in-out;
}

.headerNavContainer nav a:hover {
    color:#ffbb3f
}

.resumeButton {
    color: #742b00;
    background-color: #ffbb3f;
    text-decoration: none;
    font-family: "Sinhala MN", "Abhaya Libre", serif;
    font-size: 20px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 999px;
    margin-left: 12px;
}

.resumeButton:hover {
    background-color: #ffcf6b;
}

.bannerContainer h1{
    position: absolute;
    left: 5%;
    color: #e8680c;
    font-family: "Sinhala MN", "Abhaya Libre", serif;
    font-size: 180px;
    margin: 0;
}
.bannerContainer h2 {
    position: absolute;
    left: 5%;
    color: #ff9810;
    font-family: "Sinhala MN", "Abhaya Libre", serif;
    font-size: 150px;
    margin: 0;
}

.bannerContainer h1 {
    top: 45%;
}

.bannerContainer h2 {
    top: 35%;
}

.introductionContainer h2 {
    color: #4E60A0;
    font-family: "Sinhala MN", "Abhaya Libre", serif;
    font-size: 70px;
    font-weight: 600;
    margin: 0 0 0 20px;
}

.introductionContainer p {
    color: #e8680c;
    font-family: "Baloo Thambi 2", sans-serif;
    font-size: 28px;
    margin-left: 50px
}

.profileImage {
  width: 600px;
  margin: 20px 200px 120px 20px;
  object-fit: cover;
  object-position:center;
  border-radius: 20px;
  float: right;
  z-index: 1;
  box-shadow: 10px 16px 2px 0 rgba(232, 139, 12, 0.4);
}

.pufferBorder {
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.pufferBorderImage {
    width: 55%;
    max-width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: top;
    display: block;
}

.introductionContainer {
  padding: 20px 20px 0;
  text-align: left;
  margin: 0 0 32px 0;
}

/* Container styling */
.carousel-container {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0;
  overflow: hidden;
  font-family: sans-serif;
}

/* Horizontal slider track using CSS Scroll Snap */
.carousel-slider {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none; /* Hides default scrollbar for Firefox */
}

/* Hide default scrollbar for Chrome, Safari, and Opera */
.carousel-slider::-webkit-scrollbar {
  display: none;
}

/* Individual Slide Links */
.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 650px;
  min-height: 920px;
  scroll-snap-align: start;
  background-size: cover;
  background-position: center;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Dark overlay tinted over background images for readability */
.carousel-slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

/* Slide Banner Text Content */
.slide-content {
  position: relative;
  color: #ffffff;
  text-align: center;
  z-index: 1;
  padding: 0 20px;
}

.slide-content h2 {
  font-size: 200px;
  margin-bottom: 15px;
  font-family: "Sinhala MN", "Abhaya Libre", serif;
}

.slide-content p {
  font-size: 50px;
  margin: 0;
  font-family: "Baloo Thambi 2", sans-serif;
}


.carousel-slide:hover .slide-btn {
  background-color: #e0e0e0;
}

/* Navigation Indicator Box */
.carousel-nav {
  position: absolute;
  bottom: 70px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 2;
}

/* Indicator Dots */
.nav-dot {
  width: 12px;
  height: 12px;
  background-color: rgba(255, 139, 0, 0.5);
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

.nav-dot:hover {
  background-color: rgba(255, 255, 255, 0.9);
}

.contactMeContainer {
    margin-top: 20px;
}

.contactMeGrid {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.contactMeIntro {
    flex: 1 1 320px;
    max-width: 420px;
}

.contactMeContainer h1{
    color: #4E60A0;
    font-family:  'Sinhala MN', 'Abhaya Libre', serif;
    font-size: 70px;
    margin: 24px 0 24px 34px;
}

.contactMeContainer p{
    color: #e8680c;
    font-family: 'Baloo Thambi 2', sans-serif;
    margin: 0 0 12px 52px;
    font-size: 28px;
}

.socialMediaLinks {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    margin: 50px 0 0 74px;
}

.socialMediaLinks a {
    color: #4E60A0;
    text-decoration: none;
    font-weight: 700;
}

.socialMediaLinks a img{
  width: 50px;
  margin-bottom: 50px;
}

#contactForm {
    flex: 1 1 520px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 150px 100px 20px 100px;
}

.form-group {
    width: 100%;
}

#contactForm textarea {
    min-height: 160px;
}

#contactForm .submit-button {
    grid-column: 1 / -1;
    justify-self: center;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #e8680c;
    font-family: 'Sinhala MN', 'Abhaya Libre', serif;
}

.form-group input,  .form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #E88B0C;
    background-color: #ffe3b9;
    border-radius: 20px;
    box-sizing: border-box;
    font-family: 'Baloo Thambi 2', sans-serif;
}


.submit-button {
    background-color: #E88B0C;
    color: rgb(255, 255, 255);
    border: none;
    padding: 6px 50px;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 6px 6px 2px 0 rgba(232, 139, 12, 0.4);
    transition: background-color 0.3s ease;

}

.submit-button:hover {
    background-color: #ffbf35;
}
.contactMeFooterImage {
  width: 50%;
  display: block;
  margin: 0 auto;
  float: none;
  object-fit: cover;
  object-position: center bottom;
  clip-path: inset(10% 0 0 0);
}

.footerContainer{
    background-color:#ffbb3f;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 16px 24px;
    pointer-events: auto;
}


.footerContainer nav {
    display: flex;
    gap: 24px;
    margin-left: auto;
}

.footerContainer nav a {
    color: #742b00;
    text-decoration: none;
    font-size:40px;
    font-family: "Sinhala MN", "Abhaya Libre", serif;
    font-weight: 800;
    transition: color 0.2s ease-in-out;
}

.footerContainer nav a:hover {
    color:#E88B0C;
}

.footerContainer .logoImage {
    width: 100px;
    height: 100px;
    object-fit: cover;
    margin-right: 16px;
    float:left;
}

/* Responsive adjustment for tablet and mobile displays */
@media (max-width: 1200px) {
  .headerNavContainer {
    padding: 12px 16px;
    gap: 16px;
  }

  .headerNavContainer nav {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .headerNavContainer nav a {
    font-size: 28px;
    margin-left: 0;
  }

  .logoImage,
  .footerContainer .logoImage {
    width: 80px;
    height: 80px;
  }

  .bannerContainer h1 {
    font-size: 6rem;
    top: 46%;
  }

  .bannerContainer h2 {
    font-size: 4rem;
    top: 34%;
  }

  .profileImage {
    width: 320px;
    margin: 0 0 24px 24px;
    float: none;
  }

  .introductionContainer {
    max-width: 100%;
    padding: 24px;
    margin-bottom: 24px;
  }

  .introductionContainer h2 {
    font-size: 42px;
    margin: 0 0 12px 0;
  }

  .introductionContainer p {
    font-size: 22px;
    margin-left: 0;
  }

  .pufferBorderImage {
    height: 180px;
  }

  .carousel-slide {
    height: 480px;
    min-height: 480px;
  }

  .slide-content h2 {
    font-size: 90px;
  }

  .slide-content p {
    font-size: 28px;
  }

  .contactMeGrid {
    flex-direction: column;
    gap: 24px;
  }

  .contactMeIntro,
  #contactForm {
    flex: 1 1 100%;
    max-width: 100%;
  }

  #contactForm {
    grid-template-columns: 1fr;
    margin: 0 0 20px 0;
  }

  .contactMeContainer h1 {
    font-size: 48px;
    margin: 0 0 12px 0;
  }

  .contactMeContainer p {
    font-size: 22px;
    margin: 0 0 12px 0;
  }

  .socialMediaLinks {
    margin: 24px 0 0 0;
  }

  .contactMeFooterImage {
    width: 70%;
  }

  .footerContainer {
    flex-direction: column;
    align-items: flex-start;
  }

  .footerContainer nav {
    margin-left: 0;
    flex-wrap: wrap;
    gap: 16px;
  }

  .footerContainer nav a {
    font-size: 24px;
  }
}

@media (max-width: 768px) {
  .headerNavContainer {
    justify-content: center;
    width: 100%;
    margin: 0;
    padding: 12px;
  }

  .headerNavContainer nav {
    justify-content: center;
    gap: 12px;
  }

  .headerNavContainer nav a {
    font-size: 20px;
    margin-left: 0;
  }

  .bannerContainer h1 {
    font-size: 2.8rem;
    left: 4%;
    top: 44%;
  }

  .bannerContainer h2 {
    font-size: 1.8rem;
    left: 4%;
    top: 30%;
  }

  .profileImage {
    width: 100%;
    max-width: 280px;
    height: auto;
    margin: 0 0 20px 0;
  }

  .introductionContainer h2 {
    font-size: 32px;
  }

  .introductionContainer p {
    font-size: 18px;
    line-height: 1.4;
  }

  .pufferBorderImage {
    height: 120px;
  }

  .carousel-slide {
    height: 320px;
    min-height: 320px;
  }

  .slide-content h2 {
    font-size: 2.2rem;
  }

  .slide-content p {
    font-size: 1.1rem;
  }

  .contactMeContainer h1 {
    font-size: 36px;
  }

  .contactMeContainer p {
    font-size: 18px;
  }

  .contactMeFooterImage {
    width: 90%;
  }

  .footerContainer nav a {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .headerNavContainer {
    padding: 10px;
  }

  .headerNavContainer nav {
    gap: 8px;
    width: 100%;
  }

  .headerNavContainer nav a,
  .footerContainer nav a {
    font-size: 16px;
  }

  .bannerContainer h1 {
    font-size: 2rem;
  }

  .bannerContainer h2 {
    font-size: 1.3rem;
  }

  .carousel-slide {
    height: 260px;
    min-height: 260px;
  }

  .slide-content h2 {
    font-size: 1.8rem;
  }

  .slide-content p {
    font-size: 1rem;
  }
}

@media print {
  body {
    background: white;
    color: #000;
  }
  header,
  .carousel-nav,
  .socialMediaLinks,
  .footerContainer {
    display: none;
  }
  .contactMeContainer,
  .introductionContainer,
  .contactMeGrid {
    width: 100%;
    margin: 0;
    padding: 0;
  }
  .contactMeContainer h1,
  .contactMeContainer p,
  .form-group label,
  .form-group input,
  .form-group textarea {
    color: #000;
  }
}
