/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body, html {
    height: 100%;
    font-family: 'Cormorant Garamond', serif;
    scroll-behavior: smooth;
  }
  /* Navbar Styles */
  .navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(10, 10, 10, 0.45); /* dark, semi-transparent */
    backdrop-filter: blur(8px);         /* blurred background effect */
    -webkit-backdrop-filter: blur(8px); /* Safari support */
    padding: 0 30px;
    position: fixed;
    top: 0;
    width: 100%;
    height: 120px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); /* deeper shadow */
    z-index: 1000;
    transition: background 0.3s ease, backdrop-filter 0.3s ease;
  }
  
  .navbar .logo {
    display: flex;
    align-items: center;
    flex: 0;
    margin-left: 60px;
  }
  
  .navbar .logo img {
    height: 260px;
    margin-top: 10px;
  }
  
  .nav-buttons {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-right: 60px;
  }
  
  .nav-buttons .nav-item {
    display: flex;
    align-items: center;      /* vertically centers icon & text */
    justify-content: center;
    flex-direction: row;      /* icon and text side-by-side */
    text-decoration: none;
    color: white;
    font-size: 18px;
    transition: none;
  }
  
  .nav-buttons .nav-item:hover {
    color: #98C78A;
  }
  
  .nav-buttons .nav-icon {
    width: 60px;               /* or keep 60px if you prefer big icons */
    height: 60px;
    object-fit: contain;
    opacity: 0;
    transform: translateX(-30px);
    animation: fadeInSlideLeft 0.6s forwards;
    margin-right: -4px;        /* brings icon and text closer */
    position: relative;
    top: 1px;                  /* adjust to vertically center icon if needed */
  }
  
  
  /* Fade-in from left */
  @keyframes fadeInSlideLeft {
    0% {
      opacity: 0;
      transform: translateX(-30px);
    }
    100% {
      opacity: 1;
      transform: translateX(0);
    }
  }
  
  
  .nav-buttons .nav-text {
    opacity: 0;
    transform: translateX(-20px);
    white-space: nowrap;
    transition: all 0.3s ease;
    margin-left: 0;
    transition: opacity 0.3s ease, transform 0.3s ease, margin-left 0.3s ease, color 0s ease;
  }
  
  /* When .show-text is triggered after 1.5s */
  .nav-buttons .nav-item.show-text .nav-text {
    opacity: 1;
    transform: translateX(0);
    margin-left: 12px;
  }

  /* Abstract Projects Section Styling */
#projects.abstract-projects {
  padding-top: 250px;
  padding-bottom: 100px;
  background-color: #f6f6f6;
  text-align: center;
}

/* Parallax Intro Section with Side-by-Side Layout */
.principles-intro {
  background-image: url('projectsbg.png'); /* Replace with your parallax image */
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  min-height: 95vh;
  display: flex;
  align-items: center;
  color: white;
  position: relative;
  z-index: 1;
}

.principles-intro::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.1); /* dark overlay */
  z-index: -1;
}
.principles-intro::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
  animation: bgFadeLeftToRight 1.2s ease forwards;
  z-index: -2;
  pointer-events: none;
}
@keyframes bgFadeLeftToRight {
  0% {
    transform: scaleX(0);
    transform-origin: left;
    opacity: 0;
  }
  100% {
    transform: scaleX(1);
    transform-origin: left;
    opacity: 1;
  }
}
.principles-container {
  background: url('projectsbgmarble.png') no-repeat center center ;
  background-size: contain; /* or try cover or a specific percentage */
background-repeat: no-repeat;
background-position: center top; /* adjust based on your design */
  padding-top: 0px;
  padding-bottom: 100px;
  position: relative;
  z-index: 1;
}
.principles-container::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.8));
  z-index: -1;
}

/* Divider */
.section-divider {
  height: 10px;
  background: linear-gradient(to right, #0A481E, #2F6C3F, #4F8A60);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 1);
  margin: 0;
  padding: 0;
  z-index: 3;

  width: 0;
  opacity: 0;
  animation: fadeInLeftToRight 1.2s ease forwards;
  animation-delay: 0.5s;
}
@keyframes fadeInLeftToRight {
  0% {
      opacity: 0;
      width: 0;
  }
  100% {
      opacity: 1;
      width: 100%;
  }
}

.principles-intro-wrapper {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  max-width: 1350px;
  padding: 0 40px;
  margin: 0 auto;
  width: 100%;
}

/* Intro text slide-in */
.principles-intro-text {
  opacity: 0;
  transform: translateX(-50px);
  animation: slideInFromLeft 1s ease-out forwards;
  animation-delay: 0.3s;
  max-width: 900px;
}

/* Animation for each principle row */
.principle-row {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease-out;
}

/* When visible */
.principle-row.animate {
  opacity: 1;
  transform: translateY(0);
}

/* Keyframes */
@keyframes slideInFromLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.principles-intro h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.principles-intro p {
  font-size: 1.5rem;
  line-height: 1.8;
  margin-bottom: 1.2rem;
  color: #e0e0e0;
}

.principles-layout {
  padding-top: 100px; /* below navbar */
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.principle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1400px;
  margin: 0 auto;
  min-height: 50vh;
  padding: 0 40px;
  gap: 40px;
}

.principle-row.reverse {
  flex-direction: row-reverse;
}

.principle-text {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
}

.principle-text h2 {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  color: #2f2f2f;
  margin-bottom: 1.2rem;
}

.principle-text p {
  font-size: 1.5rem;
  line-height: 1.7;
  color: #2f2f2f;
  margin-bottom: 2rem;
}

.explore-button {
  display: inline-block;
  font-size: 1rem;
  background-color: #111;
  color: #fff;
  padding: 12px 26px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.explore-button:hover {
  background-color: #2f2f2f;
}

.principle-image {
  flex: 1;
  min-width: 300px;
  max-width: 700px;
}

.principle-image img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}
.principles-conclusion {
  background: white;
  color: #2f2f2f;
  text-align: center;
  padding: 40px 40px;
  position: relative;
}

.conclusion-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(40px);
  /* animation removed from here */
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.conclusion-wrapper.animate {
  opacity: 1;
  transform: translateY(0);
}

.principles-conclusion h2 {
  font-size: 3rem;
  margin-bottom: 24px;
  font-weight: 700;
}

.principles-conclusion p {
  font-size: 1.5rem;
  line-height: 1.8;
  color: #2f2f2f;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Carousel Section */
.carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f4f4f4;
  padding: 3rem 0;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(47, 108, 63, 0.9);
  color: white;
  border: none;
  font-size: 2rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  z-index: 2;
  border-radius: 8px;
  transition: background 0.3s ease;
}

.carousel-btn:hover {
  background-color: rgba(10, 72, 30, 0.95);
}

.carousel-btn.left {
  left: 10px;
}

.carousel-btn.right {
  right: 10px;
}

.carousel-container {
  overflow-x: auto;
  scroll-behavior: smooth;
  width: 90%;
  max-width: 1300px;
  margin: auto;
  padding: 0 40px;
  display: flex;
  justify-content: center;
  scrollbar-width: none;
}

.carousel-container::-webkit-scrollbar {
  display: none;
}

.carousel-track {
  display: flex;
  gap: 20px;
}

.carousel-track img {
  height: 300px;
  width: 100%;
  max-width: 400px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.carousel-track img:hover {
  transform: scale(1.03);
}

/* Responsive Tweaks */
@media (max-width: 768px) {
  .carousel-track img {
    max-width: 260px;
    height: 200px;
  }
  .carousel-btn {
    font-size: 1.5rem;
    padding: 0.3rem 0.6rem;
  }
}

.project-highlights-section {
  background: url('pjbg.png') no-repeat center center / cover;
  padding: 4rem 2rem;
  position: relative;
  z-index: 1;
}

.project-highlights-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.7); /* Soft overlay for text contrast */
  z-index: 0;
  pointer-events: none;
}

.project-highlights-section .container {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
}

.highlight-block {
  background: transparent;
  border-radius: 16px;
  padding: 2.5rem 2rem;
  margin-bottom: 3rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease;
  text-align: center; /* Center everything inside the block */
}

.highlight-block:hover {
  transform: translateY(-6px);
}

.highlight-title {
  font-size: 2.4rem;
  color: #1d1d1d;
  margin-bottom: 1.5rem;
  text-align: center;
  position: relative;
  text-transform: uppercase;
}

.highlight-title::after {
  content: "";
  width: 80px;
  height: 3px;
  background-color: #2f6c3f;
  display: block;
  margin: 10px auto 0 auto;
  border-radius: 1.5px;
}

.highlight-block p,
.highlight-list {
  font-size: 1.5rem;
  line-height: 1.8;
  color: #2b2b2b;
  text-align: center; /* Center paragraphs and lists */
}

.highlight-list {
  padding-left: 1.5rem;
  margin-top: 1rem;
  list-style-position: inside;
}

.highlight-list li {
  margin-bottom: 0.75rem;
}

.refined-footer {
  background-color: #fdfdfd;
  color: #2f2f2f;
  font-family: 'Segoe UI', sans-serif;
  font-size: 16px;
  padding: 60px 40px 30px;
}

.footer-wrapper {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 60px;
  flex-wrap: wrap;
}

.footer-col {
  flex: 1;
  min-width: 220px;
}

.footer-col.wide {
  flex: 2;
}
.footer-col strong {
  display: inline-block;
  margin-top: 16px;
}


.footer-col h4 {
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  font-weight: 600;
}

.footer-col p,
.footer-col a {
  color: #2f2f2f;
  line-height: 1.6;
  text-decoration: none;
}
.footer-col p + h4 {
  margin-top: 24px; /* or whatever value feels right */
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col a:hover {
  text-decoration: underline;
}

.footer-bar {
  border-top: 1px solid #ddd;
  margin-top: 50px;
  padding-top: 20px;
  text-align: center;
  font-size: 15px;
  color: #555;
}
.fade-in-up {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.animate {
  opacity: 1;
  transform: translateY(0);
}
/* ========================== */
/* 📱 PHONE-LIKE DEVICES ONLY */
/* ========================== */
@media screen and (orientation: portrait) and (max-width: 767px) {

  /* Navbar */
  .navbar {
    flex-direction: column;
    height: auto;
    padding: 16px;
    align-items: flex-start;
  }

  .navbar .logo {
    margin-left: 0;
    margin-bottom: 10px;
  }

  .navbar .logo img {
    height: 140px;
  }

  .nav-buttons {
    flex-direction: column;
    gap: 12px;
    margin-right: 0;
    width: 100%;
  }

  .nav-buttons .nav-item {
    justify-content: flex-start;
    font-size: 16px;
  }

  .nav-buttons .nav-icon {
    width: 36px;
    height: 36px;
  }

  /* Principles Intro */
  .principles-intro-wrapper {
    flex-direction: column;
    text-align: center;
    padding: 0 20px;
  }

  .principles-intro h1 {
    font-size: 2rem;
  }

  .principles-intro p {
    font-size: 1.1rem;
  }

  /* Principle Rows */
  .principle-row {
    flex-direction: column !important;
    padding: 0 20px;
  }

  .principle-text h2 {
    font-size: 1.6rem;
  }

  .principle-text p {
    font-size: 1rem;
  }

  .principle-image {
    max-width: 100%;
  }

  /* Carousel */
  .carousel-track img {
    max-width: 240px;
    height: 160px;
  }

  .carousel-btn {
    font-size: 1.2rem;
    padding: 0.3rem 0.6rem;
  }

  /* Highlights Section */
  .highlight-title {
    font-size: 1.6rem;
  }

  .highlight-block p,
  .highlight-list {
    font-size: 1rem;
    padding: 0 1rem;
  }

  /* Footer stacked */
  .footer-wrapper {
    flex-direction: column;
    gap: 30px;
  }

  .footer-col {
    min-width: 100%;
  }

  .footer-col h4 {
    font-size: 18px;
  }

  .footer-bar {
    font-size: 14px;
  }
}


/* ======================================= */
/* 💻 TABLET & LAPTOPS (Landscape Devices) */
/* ======================================= */
@media screen and (orientation: landscape), screen and (min-width: 768px) {

  .principles-intro h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
  }

  .principles-intro p,
  .principle-text p,
  .principles-conclusion p {
    font-size: clamp(1rem, 1.4vw, 1.5rem);
  }

  .principle-text h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
  }

  .carousel-track img {
    max-width: 360px;
    height: 240px;
  }

  .highlight-title {
    font-size: clamp(2rem, 3vw, 2.4rem);
  }

  .highlight-block p,
  .highlight-list {
    font-size: clamp(1rem, 1.3vw, 1.5rem);
  }

  .footer-col h4 {
    font-size: clamp(1rem, 1.1vw, 1.25rem);
  }

  .footer-bar {
    font-size: clamp(0.9rem, 1vw, 1rem);
  }
}
