/* =====================================================================
   ADDITIONAL CSS (Contact Page & Overrides)
   ===================================================================== */

/* ---------- CONTACT PAGE ---------- */
.contact-section {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(5rem, 10vw, 10rem) var(--pad);
}

.contact-section::before {
  content: "";
  position: absolute;
  top: -10%;
  left: -10%;
  width: 45vw;
  height: 45vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,169,110,0.15), transparent 65%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

.contact-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 4fr 6fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}

/* Contact Info Column */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.contact-info__block {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-info__block h3 {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 1.4rem;
  color: var(--gold);
  letter-spacing: -0.01em;
}

.contact-info__block p, 
.contact-info__block a {
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.6;
  opacity: 0.9;
  transition: color 0.3s var(--ease);
}

.contact-info__block a:hover {
  color: var(--gold);
}

.contact-info__block p.muted {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Contact Form Column */
.contact-form-wrapper {
  position: relative;
  background: rgba(201, 169, 110, 0.05); /* Tinted glass effect with gold */
  border: 1px solid rgba(201, 169, 110, 0.2);
  padding: clamp(2rem, 4vw, 3.5rem);
  border-radius: 0; /* Sharp corners */
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 
              inset 0 0 40px rgba(201, 169, 110, 0.05);
}

/* Light leaks from beneath */
.contact-form-wrapper::before {
  content: "";
  position: absolute;
  bottom: -20px;
  left: 10%;
  right: 10%;
  height: 40px;
  background: var(--gold);
  filter: blur(40px);
  opacity: 0.15;
  z-index: -1;
  pointer-events: none;
}

.contact-form-wrapper h2 {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(2rem, 3vw, 2.8rem);
  margin-bottom: 2rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 0.8rem 0;
  font-family: var(--f-body);
  font-size: 1.05rem;
  color: var(--text);
  transition: border-color 0.4s var(--ease);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-bottom-color: var(--gold);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--muted);
  opacity: 0.6;
}

/* Alert Messages */
.alert {
  padding: 1.2rem 1.5rem;
  border-radius: 6px;
  margin-bottom: 2rem;
  font-size: 0.95rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  line-height: 1.5;
  border-left: 4px solid;
}

.alert--success {
  background: rgba(46, 213, 115, 0.05);
  border-color: #2ed573;
  color: #e5fbee;
}

.alert--error {
  background: rgba(255, 71, 87, 0.05);
  border-color: #ff4757;
  color: #ffeaea;
}

.alert ul {
  margin-top: 0.5rem;
  padding-left: 1.2rem;
}

/* Responsive */
@media(max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  
  .contact-form-wrapper {
    padding: 2rem 1.5rem;
  }
}

/* ---------- GALLERY FILTERS ---------- */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 4rem auto 2rem;
  max-width: var(--maxw);
  padding: 0 var(--pad);
}

.filter-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 0.6rem 1.4rem;
  border-radius: 40px;
  font-family: var(--f-body);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}

.filter-pill:hover,
.filter-pill.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #111;
  font-weight: 500;
}

/* For filtering logic */
.ig.hidden {
  display: none !important;
}

/* ---------- SERVICES PAGE ---------- */
.svc-container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(5rem, 10vw, 8rem) var(--pad);
  display: grid;
  grid-template-columns: 4fr 6fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}

.svc-sticky-left {
  position: sticky;
  top: 15vh;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.svc-sticky-left p.desc {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.6;
  max-width: 90%;
}

.svc-index {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1rem;
  padding-left: 0;
  list-style: none;
}

.svc-index a {
  display: inline-flex;
  align-items: center;
  font-family: var(--f-display);
  font-size: 0.95rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  padding: 0.5rem 1.2rem;
  border-radius: 40px;
  text-decoration: none;
  transition: all 0.3s var(--ease);
}

.svc-index a:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #111;
}

.svc-index a span {
  color: var(--gold);
  margin-right: 0.5rem;
  transition: color 0.3s var(--ease);
}

.svc-index a:hover span {
  color: #111;
}

.svc-sticky-right {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.svc-card {
  position: relative;
  background: rgba(201, 169, 110, 0.05); /* Tinted glass effect with gold */
  border: 1px solid rgba(201, 169, 110, 0.2);
  padding: clamp(2rem, 4vw, 3.5rem);
  border-radius: 0; /* Sharp corners */
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 
              inset 0 0 40px rgba(201, 169, 110, 0.05);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  overflow: hidden; /* For the watermark */
}

/* Light leaks from beneath */
.svc-card::before {
  content: "";
  position: absolute;
  bottom: -20px;
  left: 10%;
  right: 10%;
  height: 40px;
  background: var(--gold);
  filter: blur(40px);
  opacity: 0.15;
  z-index: -1;
  pointer-events: none;
}

.svc-card__img-wrap {
  width: 100%;
  height: 300px;
  overflow: hidden;
}

.svc-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.2) contrast(1.1);
  transition: transform 0.6s var(--ease);
}

.svc-card:hover .svc-card__img {
  transform: scale(1.05);
}

.svc-card__head {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 1.5rem;
  z-index: 2;
}

.svc-card__watermark {
  position: absolute;
  top: -30px;
  right: -10px;
  font-family: var(--f-display);
  font-size: 8rem;
  line-height: 1;
  color: rgba(201, 169, 110, 0.08);
  font-weight: 600;
  pointer-events: none;
  z-index: 1;
}

.svc-card__idx {
  font-family: var(--f-display);
  color: var(--gold);
  font-size: 1.5rem;
}

.svc-card__title {
  font-family: var(--f-display);
  font-size: clamp(1.8rem, 2.5vw, 2.2rem);
  font-weight: 500;
  line-height: 1.2;
}

.svc-card__body {
  position: relative;
  z-index: 2;
}

.svc-card__body p {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.svc-card__list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.svc-card__list li {
  font-size: 0.9rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  padding: 0.4rem 1rem;
  border-radius: 40px;
  letter-spacing: 0.02em;
}

.svc-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  font-family: var(--f-display);
  font-size: 1.1rem;
  color: var(--gold);
  text-decoration: none;
  transition: opacity 0.3s var(--ease);
}

.svc-card__link:hover {
  opacity: 0.8;
}

@media(max-width: 768px) {
  .svc-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .svc-sticky-left {
    position: relative;
    top: 0;
  }
  
  .svc-card {
    padding: 2rem 1.5rem;
  }
  
  .svc-card__img-wrap {
    height: 200px;
  }
}

/* ---------- ACCORDION ---------- */
.acc-sticky-container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(2.5rem, 5vw, 4rem) var(--pad) clamp(5rem, 10vw, 8rem);
  display: grid;
  grid-template-columns: 6fr 4fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}

.acc-sticky-right {
  position: sticky;
  top: 15vh;
  display: flex;
  flex-direction: column;
}

@media(max-width: 900px) {
  .acc-sticky-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .acc-sticky-right {
    position: static;
    order: -1;
  }
  .acc-sticky-desc p {
    display: none;
  }
}

.acc-wrapper {
  width: 100%;
  border-top: 1px solid var(--line);
  margin: 3rem 0;
}

.acc-item {
  border-bottom: 1px solid var(--line);
  padding: 2rem 0;
}

.acc-title {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-family: var(--f-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: color 0.3s var(--ease);
  line-height: 1.1;
  position: relative;
  padding-right: 3rem;
}

.acc-title:hover {
  color: var(--gold);
}

.acc-title span {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 400;
  color: var(--gold);
  opacity: 0.8;
  width: 4.5rem;
  display: inline-block;
}

.acc-icon {
  position: absolute;
  right: 0;
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
  transition: transform 0.4s cubic-bezier(0.87, 0, 0.13, 1);
}

.acc-item.is-active .acc-icon {
  transform: rotate(45deg);
}

.acc-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s var(--ease);
  overflow: hidden;
}

.acc-content-inner {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  border-radius: 4px;
  min-height: 0;
}

.acc-item.is-active .acc-content {
  grid-template-rows: 1fr;
}

.acc-item.is-active .acc-title {
  color: var(--gold);
}

.acc-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
  z-index: 1;
  opacity: 0;
  transition: opacity 0.5s var(--ease) 0.1s;
}

.acc-item.is-active .acc-overlay {
  opacity: 1;
}

.acc-text {
  position: relative;
  z-index: 2;
  font-size: 1.15rem;
  color: #fff;
  line-height: 1.6;
  max-width: 800px;
  margin-top: 0;
  padding: clamp(2rem, 4vw, 3rem);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease 0.2s, transform 0.5s ease 0.2s;
}

.acc-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: grayscale(0.2) contrast(1.1);
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 0.5s ease 0.1s, transform 0.8s var(--ease) 0.1s;
}

.acc-item.is-active .acc-text,
.acc-item.is-active .acc-img {
  opacity: 1;
  transform: scale(1) translateY(0);
}

@media(min-width: 768px) {
  .acc-text {
    font-size: 1.25rem;
  }
}

/* ---------- PORTFOLIO GALLERY ---------- */
.port-gallery {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--bg-color);
  padding-bottom: 0;
}

.port-horizontal-track {
  display: flex;
  height: 100vh;
  width: max-content;
  align-items: center;
  padding: 0 var(--pad);
  gap: clamp(1rem, 2.5vw, 3rem);
  position: relative;
}

.port-card {
  position: relative;
  width: clamp(60vw, 80vw, 1200px);
  height: clamp(50vh, 75vh, 800px);
  border-radius: 0;
  overflow: hidden;
  isolation: isolate;
  flex-shrink: 0;
  display: flex;
  align-items: flex-end;
  transform: scale(0.9) translateZ(0);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: filter 0.8s var(--ease), transform 0.8s var(--ease), box-shadow 0.8s var(--ease);
  will-change: transform, filter;
  z-index: 1;
}

.port-card.is-focused {
  transform: scale(1) translateZ(0);
  z-index: 10;
  box-shadow: 0 50px 100px -10px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.07);
}

.port-card:not(.is-focused):not(.port-card--cta) {
  filter: brightness(0.4) grayscale(0.6);
}

.port-card.is-focused:not(.port-card--cta) {
  filter: brightness(1) grayscale(0);
}

.port-card-img {
  position: absolute;
  inset: -20%;
  width: 140%;
  height: 140%;
  object-fit: cover;
  z-index: 0;
  filter: grayscale(0.2) contrast(1.1);
  will-change: transform;
}

.port-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.97) 0%, rgba(0,0,0,0.6) 45%, rgba(0,0,0,0.2) 100%);
  z-index: 1;
  opacity: 0;
  transition: opacity 0.8s var(--ease);
}

.port-card.is-focused .port-card-overlay {
  opacity: 1;
}

.port-card-content {
  position: relative;
  z-index: 2;
  padding: clamp(2rem, 4vw, 4rem);
  width: 100%;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.port-card.is-focused .port-card-content {
  opacity: 1;
  transform: translateY(0);
}

/* Ensure the CTA card content is always visible */
.port-card--cta .port-card-content {
  opacity: 1;
  transform: translateY(0);
}

.port-card-tag {
  display: inline-block;
  font-family: var(--f-body);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--gold);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}

.port-card-title {
  font-family: var(--f-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  color: #fff;
  line-height: 1.1;
  margin: 0;
  max-width: 25ch;
  text-wrap: balance;
}

.port-card-desc {
  font-family: var(--f-body);
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 1.5rem;
  max-width: 60ch;
  line-height: 1.6;
}

/* Mobile Fallback: Native Snap Scroll */
.port-mobile-controls {
  display: none;
}

@media(max-width: 900px) {
  .port-mobile-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem var(--pad);
    color: var(--gold);
    font-family: var(--f-display);
    font-size: 1.5rem;
    width: 100%;
  }
  .port-mobile-controls button {
    background: transparent;
    border: 1px solid var(--line);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
  }
  .port-mobile-controls button:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--gold);
  }

  .port-gallery {
    height: auto !important;
    padding: 4rem 0;
  }
  .port-horizontal-track {
    height: auto !important;
    width: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2rem; 
    transform: none !important;
  }
  .port-horizontal-track::-webkit-scrollbar {
    display: none;
  }
  .port-card {
    width: 85vw;
    height: 60vh;
    scroll-snap-align: center;
  }
  .port-card-img {
    inset: 0;
    width: 100%;
    height: 100%;
  }
}

/* CTA Card Animations and Light Leaks */
.port-card--cta {
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  border: none;
}

.port-card--cta::before {
  content: "";
  position: absolute;
  inset: -50%;
  width: 200%;
  height: 200%;
  background: 
    radial-gradient(circle at 30% 20%, rgba(147, 112, 219, 0.4) 0%, transparent 40%), /* Light Purple */
    radial-gradient(circle at 70% 80%, rgba(52, 211, 153, 0.3) 0%, transparent 45%), /* Mint Green */
    radial-gradient(circle at 50% 50%, rgba(189, 154, 94, 0.35) 0%, transparent 50%); /* Gold */
  filter: blur(30px);
  z-index: 0;
  pointer-events: none;
  animation: bg-pulse-leaks 12s ease-in-out infinite alternate;
}

@keyframes bg-pulse-leaks {
  0% { transform: scale(1) translate(0, 0); }
  50% { transform: scale(1.1) translate(-2%, 2%); }
  100% { transform: scale(1) translate(2%, -2%); }
}

.port-card--cta .port-card-content {
  background: rgba(10, 10, 10, 0.65);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.5);
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* ---------- ACTIVE NAV LINK LOGIC ---------- */
.nav__menu a.is-active {
  color: var(--gold);
}
.nav__menu a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.mobile-menu nav a.is-active {
  color: var(--gold);
}
