* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: sans-serif;
  font-weight: 300;
  letter-spacing: 2px;
}

html,
body {
  height: 100%;
  font-family: sans-serif;
  margin: 0;
  padding: 0;
  background-image: linear-gradient(to bottom, #66a5a1, #001408, #001408);
  background-attachment: fixed;
  background-size: cover;
  color: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-size: 16px;
}

main {
  flex: 1;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem;
  background: transparent;
  backdrop-filter: none;
  transition: padding 0.3s ease;
}

nav {
  max-width: 1200px;
  margin: 0 auto;
}

nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem;
}

.logo {
  text-decoration: none;
  color: #ffffff;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
}

.logo:hover {
  color: var(--primary-color);
}

.logo-text {
  font-weight: 300;
  font-size: 1rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1rem;
}

.nav-links li {
  margin: 0 1rem;
  font-size: 0.8rem;
}

.nav-links a {
  color: hsl(0, 0%, 100%);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: bold;
  pointer-events: auto; /* Ensure pointer events are enabled */
}

.hero {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-content h1 {
  font-size: 2.5rem;
  max-width: 700px;
  margin: 0 auto;
  padding: 1rem;
  z-index: 10;
}

#bubble-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0;
  animation: bubbleEntrance 1.5s ease-out forwards, glowPulse 3s ease-in-out infinite;
  animation-delay: 0.5s, 2s; /* Delay the glow animation until after entrance */
}

footer {
  background: transparent;
  padding: 1rem 0;
  width: 100%;
  position: fixed;
  bottom: 0;
  z-index: 10;
}

.social-links {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.social-links li a {
  color: #fff;
  text-decoration: none;
  font-size: 0.8rem;
}

.details-window {
  display: none;
  position: fixed;
  top: 20%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.9);
  color: #001408;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  z-index: 20;
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, -60%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

/* Remove duplicate fadeIn animations and consolidate popup styles */
.popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.3);
  background: rgba(14, 41, 44, 0.85);
  backdrop-filter: blur(15px);
  padding: 2.5rem 2rem;
  border-radius: 50%;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  border: 1px solid rgba(255, 255, 255, 0.3);
  width: 90%;
  max-width: 500px;
  transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.popup.active {
  display: block;
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
  border-radius: 20px;
}

.popup h2 {
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: 4px;
  color: rgba(255, 255, 255, 1);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.5s ease;
  transition-delay: 0.2s;
}

.popup p {
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 2px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 2rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transform: translateY(-15px);
  transition: all 0.5s ease;
  transition-delay: 0.3s;
}

.popup .contact-btn {
  display: inline-block;
  padding: 1rem 2rem;
  background: rgba(0, 255, 127, 0.15);
  color: #ffffff;
  text-decoration: none;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(0, 255, 127, 0.3);
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  transition-delay: 0.4s;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.popup .btn {
  padding: 0.8rem 1.8rem;
  font-size: 1rem;
  font-weight: 400;
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0;
  transform: translateY(-5px);
  transition: all 0.3s ease;
  transition-delay: 0.5s;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.popup.active h2,
.popup.active p,
.popup.active .contact-btn,
.popup.active .btn {
  opacity: 1;
  transform: translateY(0);
}

/* Button hover effects */
.popup .contact-btn:hover,
.popup .btn:hover {
  background: rgba(0, 255, 127, 0.2);
  border-color: #00ff7f;
  color: #00ff7f;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 255, 127, 0.2);
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease-in-out;
  backdrop-filter: blur(0px);
}

.overlay.active {
  opacity: 1;
  visibility: visible;
  backdrop-filter: blur(3px);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .popup {
    width: 95%;
    padding: 2rem 1.5rem;
  }

  .popup h2 {
    font-size: 1.8rem;
    letter-spacing: 3px;
  }

  .popup p {
    font-size: 1rem;
    line-height: 1.6;
  }
}

@media (max-width: 480px) {
  .popup h2 {
    font-size: 1.5rem;
    letter-spacing: 2px;
  }

  .popup p {
    font-size: 0.95rem;
    padding: 0 0.5rem;
  }
}

/* Remove all unused animations and contact form styles */
.details-window,
#contact-form-popup,
.contact-form,
.form-group,
.spinner,
.success-icon,
.error-icon,
.form-message {
  display: none;
}

/* Mobile-specific styles */
@media screen and (max-width: 480px) {
  .popup {
    width: 95%;
    padding: 2rem 1.5rem;
  }

  .popup h2 {
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
  }

  .popup p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    padding: 0 0.5rem;
  }

  .popup .contact-btn {
    padding: 0.9rem 1.8rem;
    font-size: 1rem;
    width: 100%;
    max-width: 280px;
    margin-bottom: 1.2rem;
  }
}

/* Mobile Responsiveness */
@media screen and (max-width: 768px) {
  #contact-form-popup {
    padding: 2rem 1.5rem;
    width: 95%;
  }

  #contact-form-popup input,
  #contact-form-popup textarea {
    padding: 0.8rem 1rem;
  }

  #contact-form-popup .submit-button {
    padding: 0.8rem;
    max-width: 180px;
  }
}

@media screen and (max-width: 480px) {
  #contact-form-popup {
    padding: 1.5rem 1rem;
  }

  #contact-form-popup h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }

  #contact-form-popup .form-group {
    margin-bottom: 1rem;
  }

  #contact-form-popup label {
    font-size: 0.9rem;
  }

  #contact-form-popup input,
  #contact-form-popup textarea {
    font-size: 0.9rem;
    padding: 0.7rem 0.9rem;
  }

  #contact-form-popup textarea {
    min-height: 100px;
  }
}

/* Ensure form is scrollable on very small devices */
@media screen and (max-height: 600px) {
  #contact-form-popup {
    max-height: 85vh;
    padding: 1.5rem 1rem;
  }

  #contact-form-popup .form-group {
    margin-bottom: 0.8rem;
  }

  #contact-form-popup textarea {
    min-height: 80px;
  }
}

/* Add smooth scrollbar for the form */
#contact-form-popup {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

#contact-form-popup::-webkit-scrollbar {
  width: 6px;
}

#contact-form-popup::-webkit-scrollbar-track {
  background: transparent;
}

#contact-form-popup::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

.success-icon,
.error-icon {
  display: none;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.form-message {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.9rem;
}

#contact-form-popup {
  display: none;
}

/* Highlight animation for clickable links */
a {
  position: relative;
  text-decoration: none;
  transition: color 0.3s ease;
}

a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: #00ff7f; /* Highlight color */
  transition: width 0.3s ease;
}

a:hover {
  color: #00ff7f; /* Change text color on hover */
}

a:hover::after {
  width: 100%; /* Expand underline on hover */
}

.main-title {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.subtitle {
  font-size: 1.5rem;
  color: #666;
  margin-bottom: 2rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.contact-section {
  padding: 4rem 0;
}

.btn {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  background: #333;
  color: white;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn:hover {
  background: #555;
}

/* 添加新的样式 */
.siri-title {
  position: absolute;
  bottom: 15%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 1;
  opacity: 0;
  animation: fadeIn 1s ease-out 1s forwards;
}

.main-title {
  font-size: 2.5rem;
  font-weight: 300; /* 更轻的字重 */
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.subtitle {
  font-size: 1.2rem;
  font-weight: 300;
  letter-spacing: 3px;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, 20px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* 添加悬停效果 */
.siri-title:hover .main-title {
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
  transition: text-shadow 0.3s ease;
}

.siri-title:hover .subtitle {
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.3s ease;
}

/* 导航栏字体 */
.logo-text {
  font-weight: 300;
  font-size: 0.9rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
}

.nav-links a {
  font-weight: 300;
  font-size: 0.9rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

/* 弹窗样式更新 */
.popup h2 {
  font-size: 1.8rem;
  font-weight: 300;
  letter-spacing: 3px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.popup p {
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 2px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
}

.popup .contact-btn {
  font-weight: 300;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.popup .btn {
  font-weight: 300;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.9rem;
}

/* 页脚链接样式 */
.social-links a {
  font-weight: 300;
  font-size: 0.9rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

/* 保持原有的动画效果 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, 20px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* 悬停效果优化 */
.nav-links a:hover,
.social-links a:hover {
  color: rgba(255, 255, 255, 1);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.popup .contact-btn:hover,
.popup .btn:hover {
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* 针对小屏幕设备的样式 */
@media (max-width: 768px) {
  body {
    font-size: 14px; /* 调整为较小的字体 */
  }

  .main-title {
    font-size: 2rem; /* 调整标题大小 */
  }

  .subtitle {
    font-size: 1rem; /* 调整副标题大小 */
  }

  .nav-links a,
  .social-links a {
    font-size: 0.8rem; /* 调整导航和社交链接的字体大小 */
  }

  .popup h2 {
    font-size: 1.5rem; /* 调整弹窗标题大小 */
  }

  .popup p {
    font-size: 0.9rem; /* 调整弹窗内容大小 */
  }

  header nav .dropdown-menu {
    min-width: 160px;
    right: 10px;
  }
}

/* 增强的响应式设计 */
@media (max-width: 480px) {
  .main-title {
    font-size: 1.8rem; /* 更小的标题字体 */
  }

  .subtitle {
    font-size: 0.9rem; /* 更小的副标题字体 */
  }

  .nav-links a,
  .social-links a {
    font-size: 0.7rem; /* 更小的导和社交链接字体 */
  }

  .popup h2 {
    font-size: 1.3rem; /* 更小的弹窗标题 */
  }

  .popup p {
    font-size: 0.8rem; /* 更小的弹窗内容 */
  }

  .btn {
    padding: 0.4rem 0.8rem; /* 更小的按钮 */
  }
}

/* 增强的悬停效果 */
.nav-links a:hover,
.social-links a:hover {
  color: #00ff7f; /* 悬停时的文本颜色 */
  text-shadow: 0 0 15px rgba(0, 255, 127, 0.5); /* 增强的阴影效果 */
}

/* 增强的弹窗按钮悬停效果 */
.popup .contact-btn:hover,
.popup .btn:hover {
  background-color: rgba(0, 255, 127, 0.2); /* 背景颜色变化 */
  color: #fff; /* 文本颜色变化 */
  transform: translateY(-2px); /* 轻微的上移效果 */
  box-shadow: 0 5px 15px rgba(0, 255, 127, 0.2); /* 增强的阴影效果 */
}

/* 增强的动画效果 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, 20px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.menu-container {
  position: relative;
  z-index: 1000;
}

.menu-container > .menu-button {
  display: inline-flex;
  width: auto;
}

.menu-container .lang-toggle {
  margin-left: 8px;
}

.menu-button {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 8px 16px;
  cursor: pointer;
  font-size: 0.9rem;
  letter-spacing: 2px;
  border-radius: 4px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1001;
  display: block;
  width: 100%;
}

.menu-button:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.menu-button:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.stars-button {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.6);
  width: 50px;
  height: 50px;
  cursor: pointer;
  font-size: 1.4rem;
  border-radius: 50%;
  transition: all 0.3s ease;
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.stars-button:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  color: rgba(255, 255, 255, 0.9);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.stars-button:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.stars-button.active {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.7);
  color: #64ffda;
}

.stars-button.style2 {
  color: #ff6b9d;
  border-color: rgba(255, 107, 157, 0.5);
  background: rgba(255, 107, 157, 0.1);
}

.stars-button.style2:hover {
  color: #ff6b9d;
  border-color: rgba(255, 107, 157, 0.8);
  background: rgba(255, 107, 157, 0.2);
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: rgba(14, 41, 44, 0.95);
  backdrop-filter: blur(10px);
  min-width: 200px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  margin-top: 8px;
  z-index: 1002;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.dropdown-menu.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
  animation: dropdownFadeIn 0.3s ease forwards;
}

.dropdown-menu a {
  display: block;
  padding: 12px 16px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  letter-spacing: 2px;
}

.dropdown-menu a:last-child {
  border-bottom: none;
}

.dropdown-menu a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #00ff7f;
  padding-left: 20px;
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Media Queries for Menu */
@media (max-width: 768px) {
  .menu-button {
    padding: 8px 14px;
    font-size: 0.85rem;
  }

  .stars-button {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
    bottom: 1.5rem;
    left: 1.5rem;
  }

  .dropdown-menu {
    min-width: 180px;
  }

  .dropdown-menu a {
    padding: 10px 14px;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .menu-button {
    padding: 7px 12px;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
  }

  .stars-button {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    bottom: 1rem;
    left: 1rem;
  }

  .dropdown-menu {
    min-width: 160px;
  }

  .dropdown-menu a {
    padding: 10px 12px;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
  }
}

/* Add loading state styles */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-gradient);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Consider adding print styles */
@media print {
  .scroll-indicator,
  .scroll-to-top,
  #particles-js {
    display: none;
  }
}

.form-group {
  margin-bottom: 1.5rem;
}

.spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 2px solid #ffffff;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.success-icon,
.error-icon {
  display: none;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Remove all contact form related styles */
#contact-form-popup,
.contact-form,
.form-group,
.spinner,
.success-icon,
.error-icon,
.form-message {
  display: none;
}

/* Remove unused media queries for contact form */
@media screen and (max-width: 768px) {
  #contact-form-popup {
    display: none;
  }
}

@media screen and (max-width: 480px) {
  #contact-form-popup {
    display: none;
  }
}

/* Remove duplicate fadeIn animation and consolidate into one */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, 20px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* Add bubble entrance animation keyframes */
@keyframes bubbleEntrance {
  0% {
    opacity: 0;
    transform: scale(0.2) translateY(100px);
    filter: brightness(0.5);
  }
  50% {
    transform: scale(1.1) translateY(-20px);
    filter: brightness(1.2);
  }
  75% {
    transform: scale(0.95) translateY(10px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: brightness(1);
  }
}

@keyframes glowPulse {
  0% {
    filter: brightness(1) drop-shadow(0 0 15px rgba(255, 255, 255, 0.3));
  }
  50% {
    filter: brightness(1.2) drop-shadow(0 0 25px rgba(255, 255, 255, 0.5));
  }
  100% {
    filter: brightness(1) drop-shadow(0 0 15px rgba(255, 255, 255, 0.3));
  }
}

#particles-js {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.footer {
  position: relative;
  padding: 2rem 0;
  text-align: center;
  color: #ffffff;
  background-color: #001408;
  z-index: 1;
}

.footer p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.8;
}

.footer .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.footer .contact-info {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  opacity: 0.7;
}

.footer .contact-info a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer .contact-info a:hover {
  color: #00ff7f;
  text-decoration: underline;
}

/* Media Queries for Header */
@media (max-width: 768px) {
  header {
    padding: 1rem;
  }

  nav .container {
    padding: 0 0.5rem;
  }

  .logo-text {
    font-size: 0.9rem;
    letter-spacing: 2px;
  }

  .menu-button {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    min-height: 36px;
  }

  .menu-container {
    margin-left: 1rem;
  }
}

@media (max-width: 480px) {
  header {
    padding: 0.75rem;
  }

  .logo-text {
    font-size: 0.85rem;
    letter-spacing: 1.5px;
  }

  .menu-button {
    padding: 0.45rem 0.9rem;
    font-size: 0.85rem;
    min-height: 34px;
  }

  .menu-container {
    margin-left: 0.75rem;
  }
}

/* Large Desktop (1440px and up) */
@media (min-width: 1440px) {
  .logo-text {
    font-size: 1.1rem;
  }

  .menu-button {
    padding: 0.7rem 1.4rem;
    font-size: 1rem;
    min-height: 40px;
  }

  .dropdown-menu {
    min-width: 220px;
  }

  .dropdown-menu a {
    padding: 0.85rem 1.2rem;
    font-size: 1rem;
  }
}

/* Desktop and Laptop (1024px to 1439px) */
@media (min-width: 1024px) and (max-width: 1439px) {
  header {
    padding: 1.25rem;
  }

  .logo-text {
    font-size: 1rem;
  }

  .menu-button {
    padding: 0.6rem 1.2rem;
    font-size: 0.95rem;
  }
}

/* Tablet Landscape (768px to 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  header {
    padding: 1rem;
  }

  nav .container {
    padding: 0 0.75rem;
  }

  .logo-text {
    font-size: 0.95rem;
    letter-spacing: 2.5px;
  }

  .menu-button {
    padding: 0.55rem 1.1rem;
    font-size: 0.9rem;
    min-height: 36px;
  }

  .menu-container {
    margin-left: 1.25rem;
  }

  .dropdown-menu {
    min-width: 190px;
  }

  .dropdown-menu a {
    padding: 0.7rem 0.95rem;
    font-size: 0.9rem;
  }
}

/* Tablet Portrait (481px to 767px) */
@media (min-width: 481px) and (max-width: 767px) {
  header {
    padding: 0.9rem;
  }

  nav .container {
    padding: 0 0.5rem;
  }

  .logo-text {
    font-size: 0.9rem;
    letter-spacing: 2px;
  }

  .menu-button {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    min-height: 34px;
  }

  .menu-container {
    margin-left: 1rem;
  }

  .dropdown-menu {
    min-width: 180px;
  }

  .dropdown-menu a {
    padding: 0.65rem 0.9rem;
    font-size: 0.85rem;
  }
}

/* Mobile (320px to 480px) */
@media (max-width: 480px) {
  header {
    padding: 0.75rem;
  }

  nav .container {
    padding: 0 0.4rem;
  }

  .logo-text {
    font-size: 0.85rem;
    letter-spacing: 1.5px;
  }

  .menu-button {
    padding: 0.45rem 0.9rem;
    font-size: 0.8rem;
    min-height: 32px;
  }

  .menu-container {
    margin-left: 0.75rem;
  }

  .dropdown-menu {
    min-width: 170px;
    right: -0.4rem;
  }

  .dropdown-menu a {
    padding: 0.6rem 0.85rem;
    font-size: 0.8rem;
  }
}

/* Small Mobile (320px and below) */
@media (max-width: 320px) {
  header {
    padding: 0.6rem;
  }

  .logo-text {
    font-size: 0.8rem;
    letter-spacing: 1px;
  }

  .menu-button {
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
    min-height: 30px;
  }

  .menu-container {
    margin-left: 0.5rem;
  }

  .dropdown-menu {
    min-width: 160px;
    right: -0.3rem;
  }

  .dropdown-menu a {
    padding: 0.55rem 0.8rem;
    font-size: 0.75rem;
  }
}

/* Device Orientation */
@media (orientation: landscape) and (max-height: 500px) {
  header {
    padding: 0.6rem;
  }

  .menu-button {
    min-height: 32px;
    padding: 0.4rem 0.9rem;
  }

  .dropdown-menu {
    max-height: calc(100vh - 80px);
    overflow-y: auto;
  }
}

/* High DPI Screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .logo-text,
  .menu-button,
  .dropdown-menu a {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
}

/* Touch Device Optimizations */
@media (hover: none) {
  .menu-button:hover {
    transform: none;
    background: transparent;
  }

  .dropdown-menu a:hover {
    transform: none;
  }
}

/* Ensure menu is usable when zoomed */
@media screen and (max-width: 100%) {
  .dropdown-menu {
    position: fixed;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
  }
}

/*/* === Chat widget (embed) — hardening === */
.chat-embed-wrap {
  flex: 1;
  display: flex;
  min-height: 0;
}

.chat-embed-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
}

/* Optional: consistent look for the bubble/panel */
:root {
  --brand: var(--accent, #0b8f6a);
  --surface: #fff;
  --surface-2: #f7faf9;
  --border: #e5e7eb;
  --text: #0f172a;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}
.chat-button {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1000;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.chat-button svg {
  width: 24px;
  height: 24px;
  stroke: rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
}

.chat-button:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  color: rgba(255, 255, 255, 1);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.chat-button:hover svg {
  stroke: rgba(255, 255, 255, 1);
}
.chat-container {
  position: fixed;
  right: 20px;
  bottom: 86px;
  z-index: 1000;
  width: 320px;
  max-width: 92vw;
  height: 420px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  display: none;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(6px) scale(0.98);
  transition: opacity 0.14s ease, transform 0.14s ease;
}
.chat-container.open {
  display: flex;
  opacity: 1;
  transform: translateY(0) scale(1);
}
.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.chat-close {
  border: none;
  background: transparent;
  font-size: 20px;
  cursor: pointer;
}
