/*======================================
        Default Values
Fonts: Lato
Colors:
Gray: #ccc;
White: #fff;
Black gray: #222;
======================================*/
/*------------------------------
        Basic setup
------------------------------*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "Lato", sans-serif;
  text-rendering: optimizeLegibility;
  color: #ccc;
  background-color: #fff;
  overflow-x: hidden;
}
.wrapper {
  position: relative; /*-width not work without it because lots of potitioning-*/
  max-width: 1500px;
  min-height: 100vh;
  margin: 0 auto;
  background-color: #222;
  overflow-x: hidden;
}
li {
  list-style: none;
}
a {
  text-decoration: none;
}
a:hover {
  cursor: pointer;
}
h1,
h2,
h3 {
  margin: 0;
}

/*------------------------------
            left-header
------------------------------*/
.left-header {
  position: absolute;
  min-height: 100%; /*if vh will not go all the way down*/
  width: 100px;
  top: 0;
  left: 0;
  display: flex;
  align-items: flex-start;
  padding-top: 400px;
  justify-content: center;
  box-shadow: 1px 5px 15px #000;
}
.left-bar {
  transform: rotate(-90deg);
}
.left-bar h1 {
  font-size: 1.5rem;
}

/*------------------------------
            home
------------------------------*/

/* First Sentence: Unique & Dramatic Header */
.card-tagline {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 3rem; /* ~24px on mobile */
  line-height: 1.3;
  margin-top: 40px;
}

/* Second Sentence: Clean & Easy-to-Read Body */
.card-body {
  font-family: "Montserrat", sans-serif;
  font-weight: 300;
  font-size: 0.95rem; /* ~15px on mobile */
  line-height: 1.5;
}

/***  card  -- there are css card on about html head to overide it**/
.card {
  background: #fff;
  margin-top: 1rem;
  width: 350px;
  height: 440px;
  /*width: 240px;
  height: 360px;*/
  position: relative; /*relative to itself*/
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transform-style: preserve-3d;
  transform: perspective(2000px);
  transition: 1s;
  box-shadow: inset 300px 0 50px rgba(0, 0, 0, 0.5);
  transform: perspective(2000px) rotate(-10deg);
  box-shadow: inset 20px 0 50px rgba(0, 0, 0, 0.5);
  animation: moveCard 2s 1.5s ease-out;
}
.card .imgBx {
  position: relative;
  width: 100%;
  height: 100%;
  border: 1px solid #000;
  box-sizing: border-box;
  transform-origin: left;
  transform: rotateY(-135deg);
  z-index: 1;
  animation: openCard 2s 1.5s ease-out;
}
.card .imgBx img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card .detail {
  position: absolute;
  top: 0;
  left: 0;
  box-sizing: border-box;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}
.card .detail p {
  color: #222;
  font-size: 1.1rem;
  padding-top: 5.5rem;
}
.card .detail p span {
  font-size: 1.5rem;
}
/***  clouds  ***/
.clouds {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.clouds img {
  position: absolute;
  bottom: 0; /*put the clouds on btm*/
  max-width: 100%; /*make the clouds not too big*/
  animation: animclouds calc(10s * var(--i)) linear infinite;
}

/***  header  ***/
header {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  padding: 40px 120px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
}
header .logo img {
  height: 7rem;
  width: 7rem;
  object-fit: cover;
  object-position: center;
}

/*header .logo {
  color: #fff;
  font-size: 2rem;
  font-weight: 600;
} .logo span,*/
.card .detail p span {
  color: #d4af37;
  text-shadow: 1px 0 1px black;
  margin-right: 2px;
}
header .navigation {span
  position: relative;
  display: flex;
}
header .navigation li {
  margin-left: 30px;
}
header .navigation li a {
  color: #fff;
  font-weight: 300;
}
header .navigation li a:hover {
  color: #ffe57f;
}

.left-bar h1 {
  /* Rich Yellow-Gold Metallic Gradient */
  font-family: "Cinzel", serif;
  background: linear-gradient(
    135deg,
    #ffe57f 0%,
    #d4af37 45%,
    #f5d77f 80%,
    #aa820a 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  /* Size Adjustment for Mobile Visibility */
  font-size: 28px; /* Adjust up/down (e.g., 26px to 32px) to fit your bar layout */
  font-weight: 700;
  letter-spacing: 0.5px; /* Adds clean spacing between letters */
  line-height: 1.2;
  margin: 0;
}
/*------------------------------
        Footer
------------------------------*/
.footer p {
  padding-top: 6.25rem;
  padding-bottom: 2rem;
  text-align: center;
  margin: 0;
  font-size: 0.7rem;

}
.footer-email {
  font-style: italic;
  font-size: 0.7rem;
}
.footer-text a {
  color: #ccc;
}
.footer-text a:hover {
  color: #d4af37 ;
}

/***********************************
    contact
***********************************/
h2 {
  text-align: center;
}

.banner-contact {
  max-width: 80vw;
  margin-left: 200px;
  background-color: #fff;
  transform: rotate(-5deg);
  box-shadow: inset 20px 10px 50px rgba(0, 0, 0, 0.5);
}
.contact-container {
  display: flex;
  margin-top: 2rem;
}
.contact-img {
  width: 50%;
  background: url(../images/contact.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}
.form {
  width: 50%;
  padding: 3rem;
}
.form .inputBx {
  margin-bottom: 1rem; /*give space each lines*/
}
.form .inputBx input {
  width: 100%;
  background: transparent;
  box-shadow: none; /*?*/
  border: none;
  outline: none;
  padding: 0.63rem 0;
  font-size: 1.13rem;
  border-bottom: 2px solid rgb(192, 164, 4);
}
.form .inputBx input::placeholder {
  color: rgb(112, 96, 6);
}
.form .inputBx textarea {
  width: 100%;
  min-height: 100px;
  resize: none;
  background: transparent;
  border: none;
  outline: none;
  padding: 0.63rem 0;
  font-size: 1.13rem;
  font-weight: 300;
  border-bottom: 2px solid rgb(192, 164, 4);
}
.form .inputBx textarea::placeholder {
  color: rgb(112, 96, 6);
}
.form .inputBx input[type="submit"] {
  border: olive solid 1px;
  border-radius: 5px;
  width: 70%;
  margin-left: 15%;
  color: #fff;
  background-color: rgba(247, 106, 63, 0.906);
  cursor: pointer;
}
.form .inputBx input[type="submit"]:hover {
  background-color: rgba(196, 52, 8, 0.906);
}
.g-recaptcha {
  margin: 10px 20px;
}
.status {
  font-size: 0.8rem;
  color: green;
  text-align: center;
}

/*------------------------------
            media query
------------------------------*/
@media (max-width: 960px) {
  header {
    padding: 20px 10px 20px 22px;
  }
  header .navigation {
    display: none;
  }
  .menuToggle {
    position: relative;
    width: 40px;
    height: 40px;
    background: url(../images/menu.png);
    background-size: 30px;
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
  }
  .menuToggle.active {
    background: url(../images/close.png);
    background-size: 25px;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 100000;
  }
  header .navigation.active {
    width: 50%;
    height: 100%;
    position: fixed;
    top: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-color: rgba(17, 16, 16, 0.899);
    z-index: 10000;
  }
  header .logo img {
    height: 3rem;
    width: 3rem;
  }

  header .navigation li {
    margin-left: 0;
  }
  header .navigation li a {
    line-height: 50px;
    color: #fff;
    font-size: 1.4rem;
  }
  .left-header {
    width: 80px;
    align-items: flex-start;
    padding-top: 250px;
  }

  .card {
    width: 240px;
    height: 360px;
    margin-top: 0;
  }

  /* First Sentence / Headline */
  .card-tagline {
    font-size: 18px; /* Down from ~24px */
    line-height: 1.3;
    margin-bottom: 1px;
  }

  /* Second Sentence / Body Text */
  .card-body {
    font-size: 13.5px; /* Down from 15px */
    line-height: 1.45; /* Prevents lines from taking up too much vertical space */
    letter-spacing: 0.2px; /* Gives small text a crisp, high-end feel */
    margin-top: 1px;
  }

  .clouds {
    display: none;
  }
  .banner-contact {
    max-width: 90vw;
    margin-left: 100px;
  }
  .form {
    width: 50%;
    padding: 1rem;
  }
  .g-recaptcha {
    margin: 5px 0;
  }
  .rc-anchor-normal {
    width: 100px !important;
  }
}
@media (max-width: 600px) {
  header .navigation.active {
    width: 100%;
  }
  .contact-left-header {
    padding-top: 300px;
  }
  .card {
    width: 190px;
    height: 300px;
  }
  .card .detail p {
    padding-top: 2.5rem;
    font-size: 1rem;
  }
  .card .detail .button-link {
    width: 100%;
  }

  .banner-contact {
    max-width: 80vw;
    margin-left: 100px;
    transform: none;
  }
  .contact-container {
    flex-direction: column;
  }
  .form {
    width: 100%;
  }
  .contact-img {
    height: 500px;
    width: 100%;
    order: -1;
  }
}
@media (max-width: 436px) {
  .card {
    width: 150px;
    height: 280px;
  }
  .card .detail {
    padding-top: 1rem;
  }
  .card .detail p {
    padding-top: 0;
    font-size: 1rem;
  }
  .contact-img {
    height: 300px;
    width: 100%;
    order: -1;
  }
}

/*------------------------------
        Animation
------------------------------*/
@keyframes moveCard {
  0% {
    transform: perspective(2000px) rotate(-10deg);
    box-shadow: inset 20px 0 50px rgba(0, 0, 0, 0.5);
  }
  50% {
    transform: perspective(2000px) rotate(0deg);
  }
  100% {
    transform: perspective(2000px) rotate(-10deg);
    box-shadow: inset 20px 0 50px rgba(0, 0, 0, 0.5);
  }
}

/* Update .card .imgBx so it starts CLOSED (0deg) by default */
.card .imgBx {
  position: relative;
  width: 100%;
  height: 100%;
  border: 1px solid #000;
  box-sizing: border-box;
  transform-origin: left;

  /* FIXED: Starts closed (0deg) on page load instead of open (-135deg) */
  transform: rotateY(0deg);
  z-index: 1;

  /* FIXED: Waits 0.5s after load, then smoothly opens over 1.8 seconds */
  animation: openCard 1.8s ease-in-out 0.5s forwards;
}

/* Update @keyframes openCard to handle Closed -> Open transition */
@keyframes openCard {
  0% {
    transform: rotateY(
      0deg
    ); /* Fully Closed (Cover image visible, text hidden) */
  }
  100% {
    transform: rotateY(
      -135deg
    ); /* Fully Open (Cover flips open, text revealed) */
  }
}

@keyframes animclouds {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}
