@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Instrument Serif", serif;
  text-decoration: none;
}

html, body {
  width: 100%;
  height: 100%;
  background: transparent;
  display: flex;
  flex-direction: column;
  min-height: 100vh;

}

html {

  /* Optional: Hide horizontal overflow globally */
  overflow-x: hidden;
}

/* Background Video */
.video-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: -1;
  pointer-events: none;
}

@media (max-width: 600px) {
  .video-bg {
    width: 100vw !important;
    height: 35vh !important;
    min-height: 140px !important;
    max-height: 220px !important;
    object-fit: cover !important;
    display: block !important;
    position: relative !important;
    z-index: 1;
    left: 0;
    top: 0;
    margin: 0 !important;
    padding: 0 !important;
  }
  .video-bg video {
    width: 100vw !important;
    height: 35vh !important;
    min-height: 140px !important;
    max-height: 220px !important;
    object-fit: cover !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
  }
}

/* Navbar */
.navbar {
  width: 100%;
  position: fixed;
  top: 0;
  padding: 10px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 999;
  background: transparent; /* Transparent by default */
  box-shadow: none;
  transition:
    opacity 0.8s cubic-bezier(0.4,0,0.2,1) 0.25s,
    background 0.3s,
    box-shadow 0.3s;
}

.navbar.scrolled {
  background: rgba(255,255,255,0.95); /* White background when scrolled */
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}

.navbar.hide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s cubic-bezier(0.4,0,0.2,1) 0.25s; /* match transition for smoothness */
}

.nav-left, .nav-center, .nav-right {
  flex: 1;
  display: flex;
  align-items: center;
}

.nav-left a {
  margin-right: 20px;
  color: hsl(0, 0%, 0%);
  font-family: "Inter", serif;
  font-size: 25px;
  transition: color 0.3s;
}
.nav-left a:hover {
  color: hsl(0, 0%, 27%);
}

.nav-center {
  justify-content: center;
}
.nav-center .name {
  font-size: 50px;
  color: hsl(0, 0%, 20%);
  font-family: "Instrument Serif", serif;
}

.nav-right {
  justify-content: flex-end;
}

.menu-toggle {
  background: none;
  border: none;
  color: hsl(0, 0%, 27%);
  font-size: 30px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.dropdown-content {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  position: absolute;
  top: 60px;
  right: 40px;
  background-color: hsl(0, 0%, 27%);
  min-width: 180px;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  z-index: 999;
  flex-direction: column;
  display: flex;
  transform: translateY(-20px);
  transition: opacity 0.6s ease, max-height 0.6s ease, transform 0.6s ease;
}

.dropdown-content.show {
  opacity: 1;
  max-height: 300px;
  transform: translateY(0);
}

.dropdown-content a {
  color: hsl(40, 23%, 95%);
  padding: 15px 30px 15px 10px;
  font-size: 20px;
  transition: background 0.3s;
}
.dropdown-content a:hover {
  background-color: hsl(0, 0%, 20%);
}

/* Morphing Text */
.morph-container {
  font-family: 'Playfair Display', serif;
  font-size: 4.5rem;           /* Adjust for your layout, try 4rem–5rem */
  font-weight: 1
  00;
  letter-spacing: 0em;
  color: #222;
  text-align: center;
  line-height: 1.1;
  margin: 0 auto;
  background: transparent;
  text-shadow: 0 2px 16px rgba(0,0,0,0.04); /* subtle depth, optional */
}

.center-morph {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100vw;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
  pointer-events: none;
}

.letter {
  display: inline-block;
  position: relative;
  width: 1ch;
  height: 1.2em;
  margin-right: 0.02em;
  perspective: 1000px;
}

.flip-inner {
  width: 100%;
  height: 100%;
  display: block;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s ease;
}

.letter.flipping .flip-inner {
  transform: rotateY(180deg);
}

.front,
.back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  backface-visibility: hidden;
}
.back {
  transform: rotateY(180deg);
}

.scroll-arrow {
  position: absolute;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%);
  font-size: 2.5rem;
  color: #222;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10;
  transition: color 0.2s;
}
.scroll-arrow:hover {
  color: #888;
}


/* Custom Cursor */
body {
  cursor: none;
}
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  background: rgba(34, 34, 34, 0.8);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: background-color 0.3s ease, transform 0.15s ease;
  z-index: 9999;
}
.cursor.active {
  background-color: rgba(34, 34, 34, 0.8);
  transform: translate(-50%, -50%) scale(1.5);
}

/* Optional: Remove background from .main-content if present */
.main-content {
  background: transparent;
}

.showcase {
  margin-top: 100vh; /* Push below full screen video */
  padding: 30px 0 30px 0;  /* Remove left/right padding */
  background: #fff;
  text-align: start;
  width: 100vw;
  box-sizing: border-box;
  justify-content: space-around;
}
.showcase-text h1 pre {
  font-family:"Instrument Serif", serif;
  font-size: 3rem;
  color: #222;
  line-height: 1.2;
  white-space: pre-wrap;
  font-weight: 100;
}

.showcase-text p{
  text-align: left;
  font-size: 1.3rem;
  line-height: 1.3;
  margin-bottom: 1.2em; /* Add space between paragraphs */
}

/* ...existing code... */

.showcase .container.grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-direction: row-reverse;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
  background: #fff; /* Ensure container background is solid */
  border-radius: 0; /* Remove if you had border-radius */
}

.showcase-img {
  flex: 0 1 350px;/* Prevent image from growing too large */
  max-width: 350px;
  width: 100%;
  display:inline-flex;
  justify-content: flex-end;
  margin-right: 0px;
}

.showcase-img img {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

.showcase-text {
  flex: 1 1 300px;
  min-width: 250px;
  box-sizing: border-box;
  padding: 10px 0 10px 40px; /* Keep left padding for left shift */
  text-align: left;          /* Force left alignment */
  align-self: flex-start;    /* Optional: pushes text to top-left if in a grid/flex */
}

/* Responsive fix for smaller screens */
@media (max-width: 900px) {
  .showcase-text {
    padding: 10px;         /* Optional: reduce padding for mobile */
    text-align: left;      /* Keep it left-aligned even on small screens */
  }
  .showcase .container.grid {
    flex-direction: column-reverse;
    gap: 20px;
    padding: 0 10px;
  }
  .showcase-img {
    justify-content: center;
    max-width: 100%;
  }
}

::-webkit-scrollbar {
  width: 10px;
  background: #f5f5f5;
}
::-webkit-scrollbar-thumb {
  background: #bbb;
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
  background: #888;
}

.talk-btn {
  margin-top: 10px;
  width: 200px;
  height: 40px;
  padding: 10px 20px;
  background: #cfd6cb;
  color: black;
  border: none;
  border-radius: 15px;
  font-size: 1.3rem;
  font-family: "Instrument Serif", serif;
  cursor: pointer;
  transition: background 0.3s;
}
.talk-btn:hover {
  background: hsl(63, 100%, 67%);
  color: black;
}

/* ...existing code... */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #f2f2f2;
}

@keyframes slide {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}

.icons {
  overflow: hidden;
  padding: 200px 0;
  background: white;
  white-space: nowrap;
  position: relative;
  height: 300px;
}

.icons:before,
.icons:after {
  position: absolute;
  top: 0;
  width: 250px;
  height: 100%;
  content: "";
  z-index: 2;
}

.icons:before {
  left: 0;
  background: linear-gradient(to left, rgba(255, 255, 255, 0), white);
}

.icons:after {
  right: 0;
  background: linear-gradient(to right, rgba(255, 255, 255, 0), white);
}



.icons-slide {
  display: inline-block;
  animation: 35s slide infinite linear;
}

.icons-slide img {
  height: 100px;
  margin: 0 40px;
}

.icon {
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.icon:hover {
  transform: scale(1.1);
  opacity: 0.8;
}


/* ...existing code... */

.review-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  gap: 40px;
}

.review-left h1 {
  font-size: 2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
}

.dot {
  display: inline-block;
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, orange, tomato);
  border-radius: 50%;
  margin-right: 10px;
}

.review-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: left;
}

.review-right h2 {
  font-size: 1.6rem;
  font-weight: bold;
  margin: 0 0 10px 0;
}

.review-right p {
  font-size: 1.4rem;
  line-height: 1.5;
  font-weight: none;
  margin: 0;
  position: relative;
  padding-left: 20px;
  justify-content: end;
}

.bullet {
  position: absolute;
  left: 0;
  color: orangered;
  font-size: 1.2rem;
}
.review {
  background-color: #fff;
}

.web-btn {
  margin-top: 18px;
  width: 250px;
  height: 40px;
  padding: 10px 20px;
  background: #cfd6cb;
  color: black;
  border: none;
  border-radius: 15px;
  font-size: 1.3rem;
  font-family: "Instrument Serif", serif;
  cursor: pointer;
  transition: background 0.3s;
}
.web-btn:hover {
  background: hsl(63, 100%, 67%);
  color: black;
}

.projimg {
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  left: 50%;
  right: 50%;
  transform: translateX(-50%);
  overflow: hidden;
  background-color: #fff;
}

.projimg img {
  width: 100vw;
  height: 100vh;
  object-fit: scale-down;
  display: block;
  border-radius: 50%;
  box-shadow: none;
}

/*contact section*/
.contact-section {
  width: 100vw;
  min-height: 100vh;
  margin: 0;
  padding: 40px 0;
  background: #fff;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.contact-header h2 {
  font-size: 3rem;
  line-height: 1.2;
  font-weight: 400;
  margin-bottom: 20px;
}

.contact-header p {
  font-size: 1.1rem;
  margin-bottom: 40px;
}

.contact-header a {
  color: #000;
  text-decoration: underline;
}

.contact-form {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group.half {
  flex: 1 1 45%;
}

.form-group.full {
  flex: 1 1 100%;
}

.form-group label {
  font-size: 0.9rem;
  margin-bottom: 6px;
}

input[type="text"],
input[type="email"],
textarea {
  font-size: 1rem;
  border: none;
  border-bottom: 1px solid #999;
  padding: 10px 4px;
  background: transparent;
  font-family: 'Georgia', serif;
}

textarea {
  resize: vertical;
  min-height: 100px;
}

.checkbox {
  flex: 1 1 100%;
  display: flex;
  align-items: center;
  font-size: 0.9rem;
}

.checkbox input {
  margin-right: 8px;
}

.send-btn {
  margin-top: 10px;
  padding: 12px 28px;
  background-color: #cfd6cb;
  color: #000;
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.send-btn:hover {
  background-color: yellow;
}

.send-btn span {
  margin-left: 6px;
}
.showcase,
.review,
.contact-section {
  min-height: 100vh;
  width: 100vw;
  box-sizing: border-box;
  padding-top: 100px;    /* Space for navbar */
  padding-bottom: 60px; /* Bottom space for breathing room */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-fade-in {
  opacity: 0;
  transition: opacity 1.2s cubic-bezier(0.4,0,0.2,1);
}
.page-fade-in.visible {
  opacity: 1;
}

@media (max-width: 600px) {
  html, body {
    width: 100vw;
    min-width: 0;
    height: auto;
    min-height: 100vh;
    padding: 0;
    margin: 0;
    background: #fff;
    overflow-x: hidden;
  }

  * {
    box-sizing: border-box;
    font-family: "Instrument Serif", serif;
    margin: 0;
    padding: 0;
    text-decoration: none;
  }

  .mobile-bg-video{
    position: relative;
    top: 0;
    left: 0;
    width: 100vw;
    height: 35vh;
    min-height: 140px;
    max-height: 220px;
    object-fit: cover;
    z-index: -1;
  }
  .mobile-bg-video video {
    width: 100vw;
    height: 35vh;
    min-height: 140px;
    max-height: 220px;
    object-fit: cover;
  }

  .navbar {
    width: 100vw;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
    padding: 10px 8px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .nav-left, .nav-center, .nav-right {
    flex: 1;
    display: flex;
    align-items: center;
  }
  .nav-left { justify-content: flex-start; }
  .nav-center { justify-content: center; }
  .nav-right { justify-content: flex-end; }
  .nav-center .name {
    font-size: 1.3rem;
    font-family: "Instrument Serif", serif;
    color: #333;
  }
  .nav-left a, .nav-right a {
    font-size: 1rem;
    color: #000;
    font-family: "Inter", sans-serif;
    margin: 0 5px;
  }

  .dropdown-content a {
  color: hsl(40, 23%, 95%);
  padding: 15px 30px 10px 10px;
  font-size: 15px;
  transition: background 0.3s;
}
.dropdown-content a:hover {
  background-color: hsl(0, 0%, 20%);
}

  .center-morph {
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 92vw;
    font-size: 1.1rem;
  background: rgba(255, 255, 255, 0.6); /* Slight transparency */
  backdrop-filter: blur(10px); /* Smooth glass effect */
  border-radius: 10px;
  padding: 10px 20px;
    text-align: center;
    z-index: 2;
    pointer-events: none;
  }
  .morph-container {
    font-size: 1.1rem;
    padding: 0 4vw;
  }

  .showcase {
    padding-top: 60px;
    padding-bottom: 18px;
    min-height: 60vh;
    width: 100vw;
    box-sizing: border-box;
    margin: 0;
  }
  .showcase .container.grid {
    flex-direction: column-reverse;
    gap: 14px;
    padding: 0 4vw;
    margin: 0;
    display: flex;
  }
  .showcase-img {
    max-width: 100%;
    margin: 0 auto 10px auto;
    justify-content: center;
    display: flex;
    padding: 0;
  }
  .showcase-img img {
    width: 100%;
    max-width: 220px;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
  }
  .showcase-text {
   /* padding: 6px 0;*/
    min-width: 0;
    text-align: left;
    margin: 0;
    padding: 0 0 0 10px; /* Add side padding on mobile */
    font-size: 1rem;
    line-height: 1.5;
  }
  .showcase-text h1 pre {
    font-size: 1.1rem;
    white-space: normal;
    word-break: break-word;
    text-align: center;
    margin: 0 0 8px auto;
    font-weight: 600;
  }
  .showcase-text p {
    font-size: 1rem;
    margin-bottom: 1.2em; /* Add space between paragraphs */
    margin-left: auto;
    font-family: montserrat, sans-serif;
    line-height: 1.3;
  }
  .talk-btn {
    width: 100%;
    font-size: 1.1rem;
    margin-top: 10px;
  }

  .icons {
    padding: 40px 0;
    height: 120px;
  }
  .icons-slide img {
    height: 50px;
    margin: 0 16px;
  }

  .review {
    padding: 14px 4vw;
    min-height: 60vh;
    width: 100vw;
    box-sizing: border-box;
    margin: 0 0 12px 0;
  }
  .review-flex {
    flex-direction: column;
    gap: 12px;
    padding: 0;
    margin: 0;
    align-items: stretch;
  }
  .review-left {
    font-size: 1.05rem;
    margin-bottom: 6px;
    padding: 0;
    text-align: left;
  }
  .review-left h1 {
    font-size: 1.1rem;
    margin: 0 0 8px 0;
    text-align: left;
  }
  .review-right {
    gap: 8px;
    padding: 0;
    margin: 2%;
    text-align: left;
  }
  .review-right h2 {
    font-size: 1.05rem;
    margin: 0 0 6px 0;
  }
  .review-right p {
    font-size: 0.98rem;
    padding-left: 4px;
    margin: 0 0 6px 0;
    line-height: 1.6;
    font-weight: normal;
  }
  .web-btn {
    width: 100%;
    font-size: 1rem;
    margin-top: 10px;
    padding: 12px 0;
    border-radius: 8px;
    align-self: stretch;
  }

  .contact-section {
    display: block;
    padding: 18px 4vw;
    min-height: 100vh;
    width: 100vw;
    box-sizing: border-box;
    margin: 0;
    background: #fff;
    position: relative;
    z-index: 1;
    align-items: stretch;
    justify-content: flex-start;
  }
  .contact-header h2 {
    font-size: 1.1rem;
    text-align: left;
    margin-bottom: 8px;
    line-height: 1.3;
  }
  .contact-header p {
    font-size: 0.98rem;
    margin-bottom: 12px;
    text-align: left;
  }
  .contact-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
  }
  .form-group.half, .form-group.full {
    width: 100%;
    margin-bottom: 6px;
    padding: 0;
  }
  .form-group label {
    font-size: 0.98rem;
    margin-bottom: 2px;
  }
  input[type="text"],
  input[type="email"],
  textarea {
    font-size: 1rem;
    padding: 8px 6px;
    width: 100%;
    box-sizing: border-box;
    border-radius: 6px;
    border: 1px solid #ccc;
    background: #fafafa;
    margin: 0;
  }
  .send-btn {
    width: 100%;
    font-size: 1rem;
    padding: 12px 0;
    margin-top: 8px;
    border-radius: 8px;
  }
  .checkbox {
    font-size: 0.95rem;
    margin-bottom: 6px;
    padding: 0;
    display: flex;
    align-items: center;
  }
}

.hero-fade {
  opacity: 1;
  transition: opacity 2s cubic-bezier(0.4,0,0.2,1);
}
.hero-fade.fade-in {
  opacity: 1;
}
.hero-fade.fade-out {
  opacity: 1;
}

.fade-section {
  opacity: 0;
  transform: translateY(20px);
}

@media (max-width: 600px) {
  .scroll-arrow {
    display: none !important;
  }
}

.cookie-banner {
    position: fixed;
    box-sizing: border-box;
  font-family: 'Playfair Display', serif;
    bottom: 10px;
    left: 0;
    right: 0;
    background: #fff;
    color: #222;
    padding: 10px 24px;
    border-radius: 18px;
    box-shadow: #cfd6cb;
    padding: 24px 48px;    /* Increase padding for a bigger box */
    font-size: 1.3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 9999;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.cookie-banner p {
    margin: 0;
    font-size: 17px;
}

.cookie-buttons {
    display: flex;
    gap: 20px;
}

.cookie-buttons button {
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

#accept-cookies {
  background-color: #cfd6cb;

    color: black;
}

#accept-cookies:hover {
  background-color: hsl(63, 100%, 67%);
  color: black;
}
#decline-cookies {
  background-color: #cfd6cb;
    color: #333;
}
#decline-cookies:hover {
  background-color: hsl(63, 100%, 67%);
  color: black;
}

.cookie-buttons a,
.cookie-learn {
  margin-left: 16px;
  display: inline-block;
  vertical-align: middle;
  font-size: 1.3rem;
}
.hidden {
  display: none;
}

/* Hide video by default */
.mobile-bg-video {
  display: none;
  position: fixed; /* or absolute based on your layout */
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: -1; /* Send it to background */
}

/* Show video only on screens less than 600px */
@media (max-width: 600px) {
  .mobile-bg-video {
    display: block;
  }
}

@media (max-width: 900px) {
  .cookie-banner {
    width: 95%;
    padding: 15px 20px;
    bottom: 10px;
    background-color: #e4e4e4;
  }
  .cookie-banner

  .cookie-banner p {
    font-size: 14px;
  }

  .cookie-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .cookie-buttons button {
    width: 100%;
    font-size: 14px;
    padding: 10px;
  }
}

/* Show desktop video by default */
.desktop-bg-video {
  position: relative;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: -1;
  display: block;
}

.mobile-bg-video {
  display: none; /* Hide mobile video by default */
}


@media (max-width: 600px) {
  .nav-left a[href="#contact"] {
    display: none !important;
  }
}

/* Font Import (add in HTML <head>) */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600&family=Inter:wght@400;500&display=swap');

#splash-screen {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: #fff;
  color: #222;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  transition: opacity 0.7s;
  overflow: hidden;
}
.splash-logo {
  width: 100px;
  height: 100px;
  margin-bottom: 1.5rem;
  border-radius: 50%;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}
.splash-title {
  font-size: 2.5rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  animation: splashText 1.2s cubic-bezier(.68,-0.55,.27,1.55) forwards;
}
.splash-desc {
  font-size: 1.2rem;
  opacity: 0.7;
  animation: splashText 1.5s 0.3s cubic-bezier(.68,-0.55,.27,1.55) forwards;
}
@keyframes splashText {
  0% { opacity: 0; transform: translateY(40px) scale(0.9);}
  100% { opacity: 1; transform: translateY(0) scale(1);}
}
#splash-screen.fade-out {
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s cubic-bezier(.68,-0.55,.27,1.55);
}

@media (max-width: 600px) {
  .img.animate-zoom {
    padding: 0;
    margin: 0;
    background: #fff;
  }
  .projimg.animate-zoom {
    width: 100vw;
    max-width: 100vw;
    min-width: 0;
    min-height: 0;
    height: auto;
    border-radius: 0;
    box-shadow: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
  }
  .projimg.animate-zoom video {
    width: 100vw;
    height: auto;
    min-height: 160px;
    max-height: 60vw;
    object-fit: cover;
    border-radius: 0;
    margin: 0;
    display: block;
    background: #000;
  }
}


.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: none; /* shown via JS */
  align-items: flex-start; /* align to top */
  justify-content: center; /* center horizontally */
  background: rgba(0,0,0,0.35);
  z-index: 9999;
  padding-top: 3.5rem; /* space from very top */
  box-sizing: border-box;
}

.popup-box {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  padding: 2rem 2.5rem 1.5rem 2.5rem;
  max-width: 95vw;
  width: 350px;
  text-align: center;
  animation: popupDropIn 0.5s cubic-bezier(.23,1.12,.32,1) both;
}

@keyframes popupDropIn {
  0% {
    opacity: 0;
    transform: translateY(-60px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.popup-box input[type="text"],
.popup-box input[type="email"] {
  width: 100%;
  margin: 0.7rem 0;
  padding: 0.7rem 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  background: #f9f9f9;
  transition: border 0.2s;
}

.popup-box input:focus {
  border: 1.5px solid #222;
  outline: none;
}

.popup-buttons {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin-top: 1.2rem;
}

.popup-buttons button {
  padding: 0.6rem 1.3rem;
  border: none;
  border-radius: 7px;
  background: #cfd6cb;
  color: black;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.18s;
}
.popup-buttons button:hover {
  background: #f8f589;
  color: #222;
}

/* Responsive: Smaller screens */
@media (max-width: 600px) {
  .popup-overlay {
    padding-top: 1.2rem;
  }
  .popup-box {
    width: 78vw;
    max-width: 98vw;
    padding: 1.2rem 0.7rem 1rem 0.7rem;
  }
  .popup-box h2 {
    font-size: 1.2rem;
  }
  .popup-box p {
    font-size: 0.98rem;
  }
  .popup-buttons button {
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
  }
}
