@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap");

:root {
  --primary-clr: #000000;
  --primary-dark: #1a1a1a;
  --secondary-clr: #ffffff;
  --secondary-light: #f4f4f4;
  --accent-gold: #d4af37;
  --accent-sandal: #e6c99a;
  --glass-bg: rgba(26, 26, 26, 0.6);
  --glass-border: rgba(212, 175, 55, 0.2);
  --logo-left-offset: 0px;
  --logo-right-offset: -3px;
  --logo-left-rotate: 0deg;
  --logo-right-rotate: 0deg;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--primary-clr);
  color: var(--secondary-clr);
  font-family: "Cormorant Garamond", serif;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Header & Menu */
a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

header {
  position: fixed;
  top: 30px;
  left: 0;
  width: 100%;
  z-index: 100;
}

.navbar {
  position: fixed;
  top: 30px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5%;
  z-index: 5;
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-logo img {
  height: 80px;
  width: auto;
  transition: transform 0.3s;
}

.nav-logo:hover img {
  transform: scale(1.05);
}

.social-icon {
  font-size: 1.5rem;
  color: var(--secondary-clr);
}

.social-icon:hover {
  color: var(--accent-gold);
}

/* Logo Menu Button (match PIXIAI settings) */
.logo-container {
  position: fixed;
  left: 5%;
  top: 90%;
  transform: translateY(-50%);
  /* Ensure the logo (hamburger) sits above the menu overlay */
  z-index: 10001;
  cursor: pointer;
  transition: all 0.5s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: none;
} 

.logo-menu-border {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.logo-menu-glow {
  stroke: #fff;
  stroke-width: 3;
  stroke-dasharray: 25 138.36;
  stroke-dashoffset: 163.36;
  animation: logoMenuGlowAnim 2.5s linear infinite;
  stroke-linecap: round;
}

@keyframes logoMenuGlowAnim {
  0% {
    stroke-dashoffset: 163.36;
    opacity: 0.8;
  }

  50% {
    stroke-dashoffset: 80;
    opacity: 1;
  }

  100% {
    stroke-dashoffset: 0;
    opacity: 0.8;
  }
}

.logo-half {
  position: absolute;
  max-width: 30px;
  max-height: 30px;
  z-index: 3;
} 

.logo-left {
  left: 10px;
  top: 50%;
  transform: translateY(calc(-50% + var(--logo-left-offset))) rotate(var(--logo-left-rotate));
  transition: none;
}

.logo-right {
  left: 35px;
  top: 55%;
  transform: translateY(calc(-50% + var(--logo-right-offset))) rotate(var(--logo-right-rotate));
  transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1);
} 

.menu.open~.logo-container .logo-right,
.logo-container.open .logo-right {
  transform: translateY(calc(-50% + var(--logo-right-offset))) translateX(20px) rotate(var(--logo-right-rotate));
  opacity: 0;
}

.menu:not(.open)~.logo-container .logo-right,
.logo-container:not(.open) .logo-right {
  transform: translateY(calc(-50% + var(--logo-right-offset))) translateX(0) rotate(var(--logo-right-rotate));
  opacity: 1;
}

@media (max-width: 600px) {
  .logo-container {
    left: 10px;
    width: 60px;
    height: 60px;
  }

  .logo-half {
    max-width: 34px;
    max-height: 34px;
  }

  .logo-left {
    left: 10px;
    --logo-left-offset: 0px;
  }

  .logo-right {
    left: 33px;
    --logo-right-offset: -2px;
  }
}

/* Menu Overlay */
.menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 60vw;
  /* Using sidebar style */
  height: 100vh;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(15px);
  z-index: 99;
  transform: translateX(-100%);
  transition: transform 0.5s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-right: 1px solid var(--accent-gold);
}

/* Theme Toggle (copied PIXIAI style) */
.theme-toggle-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--secondary-clr);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.theme-toggle-btn:hover {
  color: var(--accent-gold);
  transform: scale(1.1);
}

/* === LIGHT MODE STYLES === */
body.light-mode {
  background: #ffffff;
  color: #1a1a1a;
}

body.light-mode .contact-page {
  background: #ffffff;
  color: #1a1a1a;
}

/* Header & Nav */
body.light-mode header .nav-logo img {
  filter: invert(1);
  /* Make white logo dark */
}

body.light-mode header .social-icon,
body.light-mode .theme-toggle-btn {
  color: #1a1a1a;
}

body.light-mode header .social-icon:hover,
body.light-mode .theme-toggle-btn:hover {
  color: var(--accent-gold);
}

body.light-mode .logo-container .logo-half {
  filter: invert(1);
}

body.light-mode .logo-menu-border circle {
  stroke: #1a1a1a;
}

/* Ensure contact details are visible in light mode */
body.light-mode .detail-text .value {
  color: #1a1a1a;
}

body.light-mode .detail-text .label {
  color: #333333;
  opacity: 0.9;
}

body.light-mode .intro-text {
  color: #2b2b2b;
  opacity: 1;
}

body.light-mode .logo-menu-glow {
  stroke: #1a1a1a;
  stroke-opacity: 0.2;
}

/* Menu links in light mode */
body.light-mode .menu a {
  color: #1a1a1a;
}

/* Social icons and hero social links */
body.light-mode .social-hero,
body.light-mode .social-icon {
  color: #1a1a1a;
  border-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .social-hero {
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.menu.open {
  transform: translateX(0);
}

.menu ul {
  list-style: none;
  text-align: center;
}

.menu li {
  margin: 1.5rem 0;
  opacity: 0;
  /* Animated via JS */
  transform: translateY(20px);
}

.menu a {
  color: var(--secondary-clr);
  font-size: clamp(0.9rem, 1.5vw, 1.2rem);
  letter-spacing: clamp(0.05em, 0.1vw, 0.1em);
  padding: clamp(0.25rem, 1vw, 0.4rem) clamp(0.5rem, 2vw, 0.8rem);
  border-radius: 12px;
  position: relative;
  display: inline-block;
  transition: all 0.3s ease;
}

.menu a:hover {
  color: var(--accent-gold);
  transform: translateY(-2px);
}

.menu-close {
  background: none;
  border: none;
  position: absolute;
  top: 30px;
  right: 30px;
  width: 30px;
  cursor: pointer;
}

.menu-close img {
  width: 100%;
}

.contact-icons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 20px;
}

.icon-gold {
  color: var(--accent-gold);
  font-size: 1.5rem;
}

.contact-hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  padding-top: 100px;
  /* Space for navbar */
  padding-bottom: 50px;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.hero-svg {
  width: 100%;
  height: 100%;
  opacity: 0.5;
}

.container {
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
}

.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

/* Left Side Styling */
.info-side {
  padding-right: 2rem;
}

.page-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3.5rem, 6vw, 6rem);
  line-height: 0.9;
  margin-bottom: 1.5rem;
}

.highlight {
  color: var(--accent-gold);
}

.intro-text {
  font-size: 1.35rem;
  line-height: 1.6;
  opacity: 0.9;
  margin-bottom: 3rem;
  max-width: 500px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 3rem;
}

.detail-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.icon-box {
  width: 50px;
  height: 50px;
  border: 1px solid var(--accent-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--accent-gold);
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.detail-item:hover .icon-box {
  background: var(--accent-gold);
  color: var(--primary-clr);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

.detail-text {
  display: flex;
  flex-direction: column;
}

.detail-text .label {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 1px;
  opacity: 0.6;
  margin-bottom: 0.2rem;
}

.detail-text .value {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--secondary-clr);
}

.detail-text p.value {
  line-height: 1.4;
}

.social-links-hero {
  display: flex;
  gap: 1.5rem;
}

.social-hero {
  font-size: 1.5rem;
  color: var(--secondary-clr);
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.social-hero:hover {
  background: var(--accent-gold);
  border-color: var(--accent-gold);
  color: var(--primary-clr);
  transform: translateY(-3px);
}

/* Right Side: Form Card */
.form-side {
  position: relative;
}

.form-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  position: relative;
}

.pixi-greeting {
  position: absolute;
  top: -50px;
  right: -20px;
  display: flex;
  align-items: center;
  z-index: 5;
}

.pixi-img {
  width: 80px;
  height: auto;
  filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
  transition: transform 0.3s ease;
}

.pixi-greeting:hover .pixi-img {
  transform: scale(1.1) rotate(5deg);
}

.bubble {
  background: var(--secondary-clr);
  color: var(--primary-clr);
  padding: 0.5rem 1rem;
  border-radius: 15px 15px 0 15px;
  font-size: 0.9rem;
  font-weight: 600;
  position: absolute;
  right: 70px;
  top: 10px;
  white-space: nowrap;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(10px);
  animation: popIn 0.5s ease forwards 1s;
}

@keyframes popIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-header {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--secondary-clr);
}

.modern-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.input-group {
  position: relative;
}

.input-group input,
.input-group textarea,
.input-group select {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding: 1rem 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  color: var(--secondary-clr);
  transition: all 0.3s ease;
  outline: none;
  border-radius: 0;
  /* Remove default border-radius */
}

.input-group textarea {
  resize: none;
  margin-top: 1rem;
}

.input-group select {
  cursor: pointer;
  appearance: none;
}

.input-group label {
  position: absolute;
  top: 1rem;
  left: 0;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.5);
  pointer-events: none;
  transition: all 0.3s ease;
}

/* Floating Label Logic */
.input-group input:focus~label,
.input-group input:not(:placeholder-shown)~label,
.input-group textarea:focus~label,
.input-group textarea:not(:placeholder-shown)~label,
.input-group select:valid~label,
.input-group select:focus~label {
  top: -10px;
  font-size: 0.9rem;
  color: var(--accent-gold);
}

.input-group input:focus,
.input-group textarea:focus,
.input-group select:focus {
  border-bottom-color: var(--accent-gold);
}

.select-icon {
  position: absolute;
  right: 0;
  top: 1.2rem;
  pointer-events: none;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

.submit-btn-modern {
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-sandal));
  border: none;
  padding: 1rem 2rem;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  margin-top: 1rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.submit-btn-modern:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(212, 175, 55, 0.2);
}

.btn-text {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.4rem;
  color: var(--primary-clr);
  letter-spacing: 1px;
}

.btn-icon {
  background: var(--primary-clr);
  color: var(--accent-gold);
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

/* Map Section */
.map-section {
  height: 50vh;
  width: 100%;
  position: relative;
  margin-top: 50px;
  border-top: 1px solid var(--primary-dark);
}

.map-container {
  width: 100%;
  height: 100%;
  filter: grayscale(1) invert(1) contrast(1.2);
  /* Dark mode map styling */
  transition: filter 0.3s ease;
}

.map-container:hover {
  filter: grayscale(0.5) invert(1) contrast(1.1);
}

.map-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  pointer-events: none;
}

/* Footer (Minimal) */
.minimal-footer {
  background: #0a0a0a;
  padding: 2rem 0;
  font-size: 0.9rem;
}

.footer-links {
  text-align: center;
  margin-bottom: 1rem;
}

.footer-link {
  color: #888;
  margin: 0 0.5rem;
}

.footer-link:hover {
  color: var(--accent-gold);
}

.footer-text {
  color: #555;
  text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-title {
    font-size: 4rem;
  }

  .split-layout {
    gap: 2rem;
  }

  .form-card {
    padding: 2rem;
  }
}

@media (max-width: 900px) {
  .split-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .info-side {
    text-align: center;
    padding-right: 0;
  }

  .contact-details {
    align-items: center;
  }

  .detail-item {
    text-align: left;
    /* Keep details left-aligned within centered block if preferred, or center them too */
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
  }

  .social-links-hero {
    justify-content: center;
  }

  .intro-text {
    margin: 0 auto 3rem;
  }

  .contact-hero {
    padding-top: 120px;
  }
}

@media (max-width: 480px) {
  .page-title {
    font-size: 3rem;
  }

  .form-card {
    padding: 1.5rem;
  }

  .pixi-greeting {
    top: -40px;
    right: 0;
  }

  .bubble {
    right: 50px;
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }
}