html {
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Georgia, serif;
}

body {
  background: #f8f8f8;
  color: #333;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* ================= HEADER ================= */

.header {
  background: white;
  padding: 10px 0;   /* larger header initially */
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: all 0.3s ease;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo as background image */
.logo {
  width: 220px;              /* larger initially */
  height: 90px;
  background: url('../images/logo.jpeg') center/contain no-repeat;
  transition: all 0.3s ease;
  display: block;
  text-decoration: none;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 40px;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-size: 18px;
  padding-bottom: 5px;
}

.nav-links a.active,
.nav-links a:hover {
  border-bottom: 2px solid #333;
}

/* Hamburger */

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #333;
}

/* ================= SHRINK EFFECT ================= */

.header.shrink {
  padding: 15px 0;   /* smaller header */
}

.header.shrink .logo {
  width: 150px;
  height: 60px;
}

/* ================= HERO ================= */

.hero {
  height: 85vh;
  background: url('../images/hero.png') center/cover no-repeat;
  position: relative;
}

.hero-overlay {
  background: rgba(0,0,0,0.45);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
  padding: 20px;
}

.hero h1 {
  font-size: 50px;
  margin-bottom: 20px;
}

.hero p {
  font-size: 20px;
  margin-bottom: 30px;
}

.btn {
  border: 1px solid white;
  padding: 15px 45px;
  color: white;
  text-decoration: none;
  transition: 0.3s;
}

.btn:hover {
  background: white;
  color: black;
}

/* Hero Title */
.hero-title {
  font-size: 50px;
  margin-bottom: 20px;
}

/* Underline line */
.hero-line {
  width: 750px;        /* adjust length here */
  height: 1px;
  background: white;   /* white because hero has dark overlay */
  margin: 0 auto 25px auto; /* center and space below */
}

/* ================= SECTIONS ================= */

.dummy-section {
  height: 60vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: white;
  font-size: 28px;
}

/* ================= FOOTER ================= */

.footer {
  background: #f0f0f0;
  padding: 40px 0;
  text-align: center;
}

.social-icons a {
  margin: 0 15px;
  font-size: 22px;
  color: #333;
}

.powered {
  font-size: 14px;
  margin-top: 10px;
  color: #666;
}

/* ================= CHAT ================= */

.chat-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #355c5a;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 20px;
  cursor: pointer;
  z-index: 500;
}

.chat-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  visibility: hidden;
  opacity: 0;
  transition: 0.3s ease;
  display: flex;
  justify-content: flex-end;
  z-index: 9999;
}

.chat-overlay.show {
  visibility: visible;
  opacity: 1;
}

.chat-container {
  width: 350px;
  background: #f4f4f4;
  height: 100%;
  transform: translateX(100%);
  transition: 0.4s ease;
  display: flex;
  flex-direction: column;
}

.chat-overlay.show .chat-container {
  transform: translateX(0);
}

.chat-header {
  background: #355c5a;
  color: white;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-close {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
}

.chat-body {
  padding: 20px;
  overflow-y: auto;
}

.chat-message {
  background: #d8d8d8;
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 8px;
}

.chat-body input,
.chat-body textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
}

.chat-body button {
  width: 100%;
  padding: 12px;
  border: 1px solid #355c5a;
  background: white;
  cursor: pointer;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 768px) {

  .nav-links {
    position: absolute;
    top: 90px;
    right: -100%;
    background: white;
    flex-direction: column;
    width: 220px;
    padding: 20px;
    gap: 20px;
    transition: 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  }

  .nav-links.active {
    right: 0;
  }

  .hamburger {
    display: flex;
  }

  .hero h1 {
    font-size: 32px;
  }

  .chat-container {
    width: 100%;
  }
  
  /* Center logo on mobile */
.nav-container {
  position: relative;
}


.logo {
  position: relative;
  left:15%;
}
}


/* Gallery Page */
.gallery {
    padding: 40px 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.gallery-item {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.3s;
}


.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: 0.3s;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    max-width: 90%;
    max-height: 120vh;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.modal-content img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
}

.close {
    position: absolute;
    top: 10px;
    right: 20px;
    color: white;
    font-size: 40px;
    cursor: pointer;
}

.gallery-overlay {
    transition: 0.3s;
    opacity: 0;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-nav {
    position: absolute;
    top: 50%;
    right: 37%;
    transform: translateY(-50%);
    width: 26%;
    display: flex;
    justify-content: space-between;
    padding: 0px -28px;
}

.nav-btn {
    background: rgba(0,0,0,0.5);
    border: none;
    color: white;
    font-size: 24px;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 50%;
    transition: 0.3s;
}

.nav-btn:hover {
    background: rgba(0,0,0,0.8);
}


.image-description {
    padding: 20px 0;
}

.image-description h2 {
    margin-top: 0;
}

.gallery {
    padding: 40px 0;
}

.section-title {
    text-align: center;
    font-size: 36px;
    color: #2f4f4f;
    margin-bottom: 10px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background-color: #2f4f4f;
}

/* About Me */

.about {
    background-color: #2f4f4f;
    padding: 40px 0;
    color: #fff;
}

.about h1 {
    text-align: center;
    margin-bottom: 10px;
}

.underline {
    width: 100px;
    height: 2px;
    background-color: #fff;
    margin: 0 auto 20px;
}

.about-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.about-content img {
    width: 500px;
    height: 500px;
    border-radius: 50%;
    margin-bottom: 20px;
}

.about-content h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.about-content p {
    font-size: 18px;
    line-height: 1.5;
}




@media (max-width: 768px) {
    .about-content img {
        width: 50%;
        height: auto;
    }
	
	
.chat-button {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: #355c5a;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 20px;
  cursor: pointer;
  z-index: 500;
}


.chat-header {
  background: #355c5a;
  color: white;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-close {
  position: relative;
  right:380px;
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
}

.chat-body {
  padding: 20px;
  overflow-y: auto;
}

.chat-message {
  width: 50%;
  background: #d8d8d8;
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 8px;
}

.chat-body input,
.chat-body textarea {
  width: 50%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
}

.chat-body button {
  width: 50%;
  padding: 12px;
  border: 1px solid #355c5a;
  background: white;
  cursor: pointer;
}
}


@media (max-width: 768px) {
.modal-content {
  width:40%;
  position: relative;
  right: 155px;
  bottom: 300px;
  padding: 10px;
}

  .modal-nav {
    position: absolute;
    top: 50%;
    right: 10%;
    transform: translateY(-50%);
    width: 75%;
    display: flex;
    justify-content: space-between;
    padding: 0px -28px;
}
.modal-content img {
max-height: 60vh;
}
}