:root {
  --primary-color: #1B4332;
  --secondary-color: #D8E2DC;
  --accent-color: #B08968;
  --bg-color: #F8F9FA;
  --text-dark: #2D3748;
  --font-heading: 'Merriweather', serif;
  --font-body: 'Inter', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-color);
  color: var(--text-dark);
  font-family: var(--font-body);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--primary-color);
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent-color);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Header & Nav */
header {
  background-color: rgba(248, 249, 250, 0.98);
  backdrop-filter: blur(8px);
  padding: 0.8rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 4px solid var(--accent-color);
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  cursor: pointer;
}

.logo {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 50%;
}

.site-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 0;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}


.nav-links a {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary-color);
}

/* Language Switcher - Premium Toggle */
.lang-switcher-wrapper {
  margin-left: 0.5rem;
}

.lang-switcher {
  display: flex;
  background: rgba(27, 67, 50, 0.08);
  padding: 3px;
  border-radius: 50px;
  border: 1px solid rgba(27, 67, 50, 0.15);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.lang-switcher-btn {
  background: transparent;
  border: none;
  color: var(--primary-color);
  padding: 0.4rem 0.9rem;
  border-radius: 50px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 800;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  line-height: 1;
}

.lang-switcher-btn:hover:not(.active-lang) {
  background: rgba(27, 67, 50, 0.1);
}

.lang-switcher-btn.active-lang {
  background: var(--primary-color);
  color: white;
  box-shadow: 0 4px 12px rgba(27, 67, 50, 0.3);
}

@media (max-width: 768px) {
  .lang-switcher-wrapper {
    margin: 2rem 0;
    width: 100%;
    display: flex;
    justify-content: center;
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 2rem;
  }
}

/* Footer */
footer {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  padding: 4rem 5% 2rem;
  margin-top: auto;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer-section p {
  max-width: 400px;
  margin: 0 auto;
}

.footer-bottom {
  text-align: center;
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
}

footer p {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

/* Typography styles */
.text-center { 
  text-align: center; 
}

.section-title { 
  font-size: 2.5rem; 
  margin-bottom: 2rem; 
}

@media (max-width: 768px) {
  .section-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
  }
}

/* Buttons */
.btn {
  display: inline-block;
  background-color: var(--accent-color);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: #9C7755;
  color: #fff;
}

/* Main Content Wrapper */
main {
  flex-grow: 1;
}

/* Home Page */
.hero {
  height: 60vh;
  min-height: 400px;
  background: linear-gradient(rgba(27, 67, 50, 0.6), rgba(27, 67, 50, 0.6)), url('../assets/hira-timilsina-landscape.png') center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 1rem;
}

.hero h1 {
  color: var(--secondary-color);
  font-size: 3rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.features-section {
  padding: 4rem 5%;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}

.card-img {
  height: 250px;
  width: 100%;
  object-fit: cover;
}

.card-content {
  padding: 1.5rem;
  text-align: center;
}

/* Our Story Page */
.story-section {
  padding: 4rem 5%;
  max-width: 1200px;
  margin: 0 auto;
}

.story-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: flex-start;
  margin-top: 2rem;
}

.story-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(2, 240px);
  gap: 1.5rem;
}

.story-gallery img {
  border-radius: 12px;
  object-fit: cover;
  width: 100%;
  height: 100%;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.story-gallery img:hover {
  transform: translateY(-5px);
}

.story-gallery img:first-child {
  grid-row: span 2;
}

.story-text p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  text-align: justify;
  line-height: 1.8;
}

/* Gallery & Portfolio section refactor */
.portfolio-item--featured {
  margin-bottom: 2rem;
}

.portfolio-item--featured img {
  height: 650px;
  object-position: center 20%;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  padding: 2rem 0;
}

.portfolio-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--secondary-color);
  transition: transform 0.3s ease;
}

.portfolio-item:hover {
  transform: scale(1.02);
  border-color: var(--accent-color);
}

.portfolio-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.portfolio-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, var(--primary-color));
  padding: 1.5rem;
  color: #fff;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-overlay h3 {
  color: var(--accent-color);
  margin-bottom: 0.2rem;
  font-size: 1.2rem;
}

.portfolio-overlay span {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Lightbox Styling */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(27, 67, 50, 0.95); /* Deep Forest Green with opacity */
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  padding: 2rem;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 80vh;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  border: 4px solid var(--accent-color);
  border-radius: 8px;
}

.lightbox-caption {
  text-align: center;
  color: #fff;
  margin-top: 1rem;
}

.lightbox-caption h3 {
  color: var(--accent-color);
}

.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: none;
  border: none;
  color: var(--accent-color);
  font-size: 3rem;
  cursor: pointer;
  z-index: 2001;
  transition: color 0.3s ease;
}

.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover {
  color: var(--secondary-color);
}

.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }

/* Contact Specific Styling */
.contact-section {
  padding: 4rem 5%;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info {
  background-color: var(--secondary-color);
  padding: 3rem;
  border-radius: 8px;
  color: var(--primary-color);
}

.contact-info h2 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.info-item {
  margin-bottom: 1.5rem;
}

.info-item h3 {
  font-family: var(--font-body);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  background-color: #25D366; /* WhatsApp color */
  color: #fff;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 2rem;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.whatsapp-btn:hover {
  background-color: #128C7E;
  transform: translateY(-3px);
  color: #fff;
}

.viber-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  background-color: #7360F2; /* Viber color */
  color: #fff;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 2rem;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.viber-btn:hover {
  background-color: #5949d6;
  transform: translateY(-3px);
  color: #fff;
}

.contact-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.maps-link {
  color: var(--accent-color);
  font-weight: 600;
  display: inline-block;
  margin-top: 0.5rem;
  text-decoration: underline;
}

.map-embed-wrap {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid var(--accent-color);
  box-shadow: 0 4px 16px rgba(27, 67, 50, 0.15);
  margin-bottom: 1.5rem;
}

.map-embed-wrap iframe {
  display: block;
  width: 100%;
}

/* Video Tile */
.portfolio-item--video {
  cursor: pointer;
}

.video-thumbnail {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
}

.video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.portfolio-item--video:hover .video-thumbnail img {
  transform: scale(1.05);
}

.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0.9;
}

.portfolio-item--video:hover .play-btn {
  transform: translate(-50%, -50%) scale(1.15);
  opacity: 1;
}

.play-btn svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Lightbox Video Player */
.lightbox-video-wrap {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-video-wrap video {
  max-width: 100%;
  max-height: 75vh;
  border: 4px solid var(--accent-color);
  border-radius: 8px;
  background: #000;
}

.lightbox-video-wrap .lightbox-caption {
  margin-top: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--bg-color);
    flex-direction: column;
    gap: 0;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    display: none;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    padding: 1rem 0;
    border-top: 1px solid #eee;
  }

  .hero h1 {
    font-size: 1.8rem;
    padding: 0 5%;
  }

  .hero p {
    font-size: 1rem !important;
  }

  .story-grid,
  .contact-grid,
  .founder-section .container {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  .cards-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .story-gallery {
    grid-template-rows: repeat(2, 180px);
  }

  .portfolio-item--featured img {
    height: 350px;
  }

  .footer-content {
    text-align: center;
  }
  
  .footer-section p {
    margin: 0 auto;
  }

  /* Extra Small Devices */
  @media (max-width: 480px) {
    body {
      font-size: 15px;
    }

    header {
      padding: 0.8rem 3%;
    }

    .hero h1 {
      font-size: 1.6rem;
    }

    .portfolio-grid {
      grid-template-columns: 1fr;
    }

    .story-gallery {
      grid-template-columns: 1fr;
      grid-template-rows: auto;
    }

    .story-gallery img {
      height: 250px;
    }
    
    .contact-info {
        padding: 2rem 1.5rem;
    }
  }
}
