/* Base Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html, body {
  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);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0 30px;
  position: fixed;
  top: 0;
  width: 100%;
  height: 120px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  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;
  justify-content: center;
  flex-direction: row;
  text-decoration: none;
  color: white;
  font-size: 18px;
  transition: none;
}
.nav-buttons .nav-item:hover {
  color: #98C78A;
}
.nav-buttons .nav-icon {
  width: 60px;
  height: 60px;
  object-fit: contain;
  opacity: 0;
  transform: translateX(-30px);
  animation: fadeInSlideLeft 0.6s forwards;
  margin-right: -4px;
  position: relative;
  top: 1px;
}
@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;
}
.nav-buttons .nav-item.show-text .nav-text {
  opacity: 1;
  transform: translateX(0);
  margin-left: 12px;
}

/* Intro */
.parallax-zoom {
  position: relative;
  height: 99vh;
  overflow: hidden;
}
.parallax-inner {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  overflow: hidden;
}

.parallax-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1.4); /* starting zoom */
  transition: transform 0.05s ease-out; /* smooth but snappy */
  will-change: transform; /* performance boost */
}
.parallax-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 40%;
  width: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.4), rgba(0,0,0,0));
  z-index: 1;
}

.parallax-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 0 20px;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.parallax-text h2 {
  font-size: 4.2rem;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 20px;

  opacity: 0;
  animation: fadeInUp 1s ease-out forwards;
  animation-delay: 0.3s;
}

.parallax-text p {
  font-size: 1.8rem;
  line-height: 1.6;
  max-width: 700px;
  margin: 30 auto 30px auto;
  color: #eee;

  opacity: 0;
  animation: fadeInUp 1s ease-out forwards;
  animation-delay: 0.6s;
}
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}


.parallax-zoom::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0,0,0,0.4);
  z-index: 1;
}

/* Services Section */
.services-section {
  position: relative;
  padding: 130px 40px 100px;
  text-align: center;
  z-index: 1;
  overflow: hidden;
}
.services-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100vh;
  background: #fff;
  opacity: 0.7;
  z-index: -1;
}

/* --- MODIFIED SERVICES TITLE --- */
.services-title {
  font-size: 3.2rem;
  font-weight: 700;
  color: #2f2f2f;
  margin-bottom: 2rem;
  letter-spacing: -0.5px;
  line-height: 1.3;
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  position: relative;
  top: -70px;
}
.services-title.animate {
  opacity: 1;
  transform: translateX(0);
}

/* Cards Container */
.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.8rem;
}

/* --- MODIFIED CARD STYLES --- */
.card {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  width: 375px;
  height: 250px;
  padding: 2.5rem;
  text-decoration: none;
  color: inherit;
  background: none;
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  z-index: 1;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('svcard.png'); /* your marble image path */
  background-size: 100%;
  background-repeat: no-repeat;
  background-position: center;
  transition: background-size 0.6s ease-in-out;
  z-index: 0;
  opacity: 1;
}

.card:hover::before {
  background-size: 110%;
}

.card-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.card h2,
.card p {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  color: #2f2f2f;
}

.card h2 {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.card p {
  font-size: 1.1rem;
}

.card.animate {
  opacity: 1;
  transform: translateX(0);
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}


/* Divider */
.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%;
  }
}

/* Parallax Sections */
.parallax-section {
  height: 100vh;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
}
.parallax-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 1;
}
.parallax-content {
  z-index: 2;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 4rem;
  padding: 4rem 6vw;
  max-width: 1500px;
  text-align: left;
}
@keyframes fadeSlideLeft {
  from {
      opacity: 0;
      transform: translateX(-50px);
  }
  to {
      opacity: 1;
      transform: translateX(0);
  }
}
.parallax-content h2 {
  font-size: 3rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
  flex: 1;
  opacity: 0;
  animation: fadeSlideLeft 1s ease-out forwards;
  animation-delay: 0.1s;
}
.parallax-content h2 em {
  font-style: italic;
  color: #C0DCC2;
}
.parallax-content p {
  font-size: 1.5rem;
  line-height: 1.8;
  color: #eee;
  flex: 1;
  opacity: 0;
  animation: fadeSlideLeft 1s ease-out forwards;
  animation-delay: 0.2s;
}
@media (max-width: 768px) {
  .parallax-content {
      flex-direction: column;
      text-align: center;
  }
  .parallax-content h2,
  .parallax-content p {
      text-align: center;
  }
}
@media (max-width: 768px) {
  .cards {
      flex-direction: column;
      align-items: center;
  }
}

/* Footer */
.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;
}
.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;
}
/* ========================== */
/* 📱 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;
  }

  /* Hero/Parallax Intro */
  .parallax-text h2 {
    font-size: 2rem;
  }

  .parallax-text p {
    font-size: 1.1rem;
    padding: 0 10px;
  }

  /* Services Title */
  .services-title {
    font-size: 1.8rem;
    top: -40px;
    padding: 0 10px;
  }

  /* Cards */
  .cards {
    flex-direction: column;
    align-items: center;
  }

  .card {
    width: 100%;
    height: auto;
    padding: 2rem;
  }

  .card h2 {
    font-size: 1.4rem;
  }

  .card p {
    font-size: 1rem;
  }

  /* Parallax Sections */
  .parallax-content {
    flex-direction: column;
    padding: 2rem;
  }

  .parallax-content h2 {
    font-size: 1.6rem;
    line-height: 1.5;
    text-align: center;
  }

  .parallax-content p {
    font-size: 1rem;
    line-height: 1.6;
    text-align: center;
  }

  /* Footer */
  .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) {

  /* Text Scaling */
  .services-title {
    font-size: clamp(2.5rem, 3vw, 3.2rem);
  }

  .card h2 {
    font-size: clamp(1.4rem, 2vw, 1.6rem);
  }

  .card p {
    font-size: clamp(1rem, 1.2vw, 1.1rem);
  }

  .parallax-text h2 {
    font-size: clamp(2.5rem, 4vw, 4.2rem);
  }

  .parallax-text p {
    font-size: clamp(1.2rem, 2vw, 1.8rem);
  }

  .parallax-content h2 {
    font-size: clamp(2rem, 3vw, 3rem);
  }

  .parallax-content p {
    font-size: clamp(1rem, 1.5vw, 1.5rem);
  }
}

