* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Georgia', 'Times New Roman', serif;
  line-height: 1.6;
  color: #ffffff;
  background-color: #000000;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 70vh;
  background-image: url('attached_assets/stock_images/night_sky_stars_milk_8a893d12.jpg');
  background-size: cover;
  background-position: center center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 3rem;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.2);
}

.subliminal-layer {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('attached_assets/Ubiquiii_Cropped_Eye_Entity_Photo_1765645111038.jpg');
  background-size: cover;
  background-position: center center;
  opacity: 0.20;
  mix-blend-mode: screen;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem;
}

.site-title {
  font-family: 'Arial', sans-serif;
  font-size: 4rem;
  font-weight: 400;
  letter-spacing: 0.4em;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 5rem;
  text-transform: uppercase;
}

.launching-text {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 3.5rem;
  font-weight: 400;
  font-style: italic;
  color: #ffffff;
  letter-spacing: 0.05em;
}

.mission-title {
  font-family: 'Arial', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 3rem;
  text-transform: uppercase;
}

.mission-text {
  font-family: 'Times New Roman', Times, serif;
  font-size: 1.1rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  margin: 1.5rem auto 0 auto;
  max-width: 700px;
  line-height: 1.8;
  text-align: center;
}

.announcement-banner {
  margin: 2rem auto 2rem auto;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  max-width: 600px;
}

.announcement-text {
  font-family: 'Arial', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  text-align: center;
  margin: 0;
  letter-spacing: 0.02em;
}

/* Action Buttons Section */
.action-buttons-section {
  background-color: #000000;
  padding: 4rem 2rem 3rem 2rem;
  position: relative;
}

.buttons-container {
  display: flex;
  justify-content: center;
  gap: 5rem;
  max-width: 900px;
  margin: 0 auto;
}

.action-button {
  display: inline-block;
  padding: 1rem 2rem;
  font-family: 'Arial', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 2px solid #ffffff;
  color: #000000;
  background-color: #ffffff;
  transition: background-color 0.3s, color 0.3s, transform 0.2s;
  cursor: pointer;
  width: 220px;
  text-align: center;
  white-space: nowrap;
  box-sizing: border-box;
}

.action-button:hover {
  background-color: #000000;
  color: #ffffff;
  transform: translateY(-2px);
}

/* Language Dropdown */
.language-dropdown {
  position: relative;
  display: inline-block;
  width: 220px;
}

.language-button {
  width: 220px;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem 2rem;
  box-sizing: border-box;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  margin: 0;
  line-height: 1.6;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #ffffff;
  border: 2px solid #000000;
  min-width: 100%;
  z-index: 10;
  margin-top: 0.5rem;
}

.dropdown-menu.show {
  display: block;
}

.dropdown-item {
  display: block;
  padding: 0.8rem 1.5rem;
  font-family: 'Arial', sans-serif;
  font-size: 0.95rem;
  text-decoration: none;
  color: #000000;
  text-align: center;
  transition: background-color 0.3s, color 0.3s;
}

.dropdown-item:hover {
  background-color: #000000;
  color: #ffffff;
}

/* Hamburger Menu */
.hamburger-menu {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 52px;
  width: 65px;
}

.hamburger-line {
  display: block;
  width: 100%;
  height: 7px;
  background-color: #ffffff;
  border-radius: 3px;
  transition: background-color 0.3s;
}

.hamburger-menu:hover .hamburger-line {
  background-color: #cccccc;
}

.hamburger-dropdown {
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
}

.hamburger-menu-content {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background-color: #ffffff;
  border: 2px solid #000000;
  padding: 1.5rem;
  margin-top: 0.5rem;
  z-index: 10;
  width: 400px;
}

.hamburger-menu-content.show {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  justify-items: center;
}

.social-link {
  display: block;
  transition: transform 0.2s, opacity 0.2s;
}

.social-link:hover {
  transform: scale(1.1);
  opacity: 0.8;
}

.social-icon {
  width: 70px;
  height: 70px;
  object-fit: contain;
  border-radius: 8px;
}

.social-icon-large {
  width: 100%;
  height: 90px;
  object-fit: contain;
  border-radius: 8px;
}

.social-link-wide {
  grid-column: span 2;
}

.nonprofit-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.blogs-button-container {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.blogs-button {
  display: block;
  transition: transform 0.3s, opacity 0.2s;
}

.blogs-button:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

.blogs-button-img {
  width: 280px;
  height: auto;
  border-radius: 10px;
  border: 2px solid #ffffff;
}

.follow-button-container {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.follow-button {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 2rem;
  font-family: 'Arial', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 3px solid #1877F2;
  color: #ffffff;
  background: linear-gradient(135deg, #0d5bbd 0%, #1877F2 50%, #4293f5 100%);
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(24, 119, 242, 0.4);
}

.follow-button:hover {
  background: linear-gradient(135deg, #4293f5 0%, #1877F2 50%, #0d5bbd 100%);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(24, 119, 242, 0.6);
}

.follow-button.followed {
  background: linear-gradient(135deg, #0a4a9e 0%, #1565c0 50%, #1877F2 100%);
  border-color: #1565c0;
  box-shadow: 0 4px 15px rgba(21, 101, 192, 0.5);
}

.follow-button.followed:hover {
  background: linear-gradient(135deg, #1877F2 0%, #1565c0 50%, #0a4a9e 100%);
  box-shadow: 0 6px 20px rgba(21, 101, 192, 0.7);
}

.follow-icon {
  font-size: 1.3rem;
  color: #ff6b6b;
}

.follow-button.followed .follow-icon {
  color: #ff4757;
  animation: heartBeat 0.5s ease;
}

@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.3); }
}

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

.follow-count {
  background: rgba(255, 255, 255, 0.2);
  padding: 0.3rem 0.6rem;
  border-radius: 20px;
  font-size: 0.9rem;
}

.daily-musings-container {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.daily-musings-button {
  display: inline-block;
  padding: 1rem 3rem;
  font-family: 'Arial', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 3px solid #ffd700;
  color: #ffffff;
  background: linear-gradient(135deg, #8B6914 0%, #DAA520 50%, #ffd700 100%);
  border-radius: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  min-width: 280px;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.daily-musings-button:hover {
  background: linear-gradient(135deg, #ffd700 0%, #DAA520 50%, #8B6914 100%);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
}

.bs-buttons-container {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.bs-button {
  display: inline-block;
  padding: 1rem 2rem;
  font-family: 'Arial', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 3px solid #c0c0c0;
  color: #000000;
  background: linear-gradient(135deg, #808080 0%, #c0c0c0 50%, #e8e8e8 100%);
  border-radius: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  width: 280px;
  box-shadow: 0 4px 15px rgba(192, 192, 192, 0.4);
}

.bs-button:hover {
  background: linear-gradient(135deg, #e8e8e8 0%, #c0c0c0 50%, #808080 100%);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(192, 192, 192, 0.6);
}

/* Contact Section */
/* Follow Us Section */
.follow-section {
  background-color: #0a0a0a;
  padding: 4rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.follow-title {
  font-family: 'Arial', sans-serif;
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: #ffffff;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.follow-subtitle {
  font-family: 'Times New Roman', Times, serif;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2rem;
}

.subscribe-form {
  max-width: 450px;
  margin: 0 auto 2rem auto;
}

.subscribe-input-group {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

.subscribe-input-group input {
  flex: 1;
  max-width: 280px;
  padding: 0.8rem 1rem;
  font-family: 'Arial', sans-serif;
  font-size: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

.subscribe-input-group input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.subscribe-input-group input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.6);
  background-color: rgba(255, 255, 255, 0.1);
}

.subscribe-button {
  padding: 0.8rem 1.5rem;
  font-family: 'Arial', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background-color: #ffffff;
  color: #000000;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
}

.subscribe-button:hover {
  background-color: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
}

.subscribe-message {
  margin-top: 1rem;
  font-family: 'Arial', sans-serif;
  font-size: 0.9rem;
  min-height: 1.2rem;
}

.subscribe-message.success {
  color: #4ade80;
}

.subscribe-message.error {
  color: #f87171;
}

.stats-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  margin-top: 2rem;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-family: 'Arial', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
}

.stat-label {
  display: block;
  font-family: 'Arial', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 0.5rem;
}

.stat-divider {
  width: 1px;
  height: 50px;
  background-color: rgba(255, 255, 255, 0.2);
}

/* Contact Section */
.contact-section {
  background-color: #000000;
  padding: 4rem 2rem;
}

.container {
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
}

.contact-title {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 2.5rem;
  font-weight: 400;
  color: #ffffff;
  margin-bottom: 1rem;
}

.divider {
  width: 50px;
  height: 2px;
  background-color: #666666;
  margin: 0 auto 1.5rem auto;
}

.contact-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2.5rem;
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem 1.2rem;
  font-size: 1rem;
  font-family: 'Arial', sans-serif;
  color: #000000;
  background-color: #ffffff;
  border: 1px solid #ffffff;
  outline: none;
  transition: border-color 0.3s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #000000;
  font-weight: 600;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #888888;
}

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

.submit-button {
  background-color: #ffffff;
  color: #000000;
  border: none;
  padding: 1rem 3rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
  align-self: center;
  margin-top: 1rem;
}

.submit-button:hover {
  background-color: #dddddd;
  transform: translateY(-2px);
}

/* Footer */
footer {
  background-color: #000000;
  padding: 2rem;
  text-align: center;
  border-top: 1px solid #222222;
}

footer p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero {
    height: auto;
    min-height: auto;
    padding: 3rem 1.5rem 4rem 1.5rem;
  }

  .hero-content {
    padding: 1rem;
  }

  .site-title {
    font-size: 1.6rem;
    margin-bottom: 2rem;
    letter-spacing: 0.3em;
  }

  .launching-text {
    font-size: 2rem;
  }

  .mission-title {
    font-size: 1.2rem;
    margin-top: 2rem;
  }

  .mission-text {
    font-size: 1rem;
    max-width: 100%;
    padding: 0 0.5rem;
    line-height: 1.7;
  }

  .announcement-banner {
    margin: 1.5rem auto 0 auto;
    padding: 0.8rem 1.5rem;
    max-width: 90%;
  }

  .announcement-text {
    font-size: 0.9rem;
  }

  .contact-title {
    font-size: 2rem;
  }

  .contact-section {
    padding: 3rem 1.5rem;
  }

  .follow-section {
    padding: 3rem 1.5rem;
  }

  .follow-title {
    font-size: 1.5rem;
  }

  .subscribe-input-group {
    flex-direction: column;
    align-items: center;
  }

  .subscribe-input-group input {
    max-width: 100%;
    width: 100%;
  }

  .subscribe-button {
    width: 100%;
    max-width: 280px;
  }

  .stats-container {
    gap: 2rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .action-buttons-section {
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .buttons-container {
    gap: 2.5rem;
    margin-bottom: 1.5rem;
  }

  .action-button {
    padding: 0.8rem 2rem;
    font-size: 0.9rem;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ffffff;
    color: #000000;
    border-color: #ffffff;
  }

  .hamburger-dropdown {
    position: static;
    transform: none;
    margin-top: 0.5rem;
  }

  .blogs-button-container {
    margin-top: 1.5rem;
  }

  .blogs-button-img {
    width: 240px;
  }

  .daily-musings-container {
    margin-top: 1.5rem;
  }

  .daily-musings-button {
    min-width: 260px;
    font-size: 0.95rem;
    padding: 0.9rem 2rem;
  }

  .bs-buttons-container {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
  }

  .bs-button {
    width: 260px;
    font-size: 0.9rem;
    padding: 0.9rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 2.5rem 1rem 3.5rem 1rem;
  }

  .site-title {
    font-size: 1.3rem;
    letter-spacing: 0.25em;
    margin-bottom: 1.5rem;
  }

  .launching-text {
    font-size: 1.6rem;
  }

  .mission-title {
    font-size: 1.1rem;
    margin-top: 1.5rem;
  }

  .mission-text {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .buttons-container {
    flex-direction: column;
    gap: 1.5rem;
  }

  .action-button {
    padding: 0.7rem 1.5rem;
    font-size: 0.85rem;
    width: 100%;
    text-align: center;
    background-color: #ffffff;
    color: #000000;
    border-color: #ffffff;
  }

  .language-dropdown {
    width: 100%;
  }

  .language-button {
    width: 100%;
  }

  .hamburger-menu {
    height: 40px;
    width: 50px;
  }

  .hamburger-line {
    height: 5px;
  }

  .blogs-button-container {
    margin-top: 1.5rem;
  }

  .blogs-button-img {
    width: 220px;
  }

  .daily-musings-container {
    margin-top: 1.5rem;
  }

  .daily-musings-button {
    min-width: 220px;
    font-size: 0.85rem;
    padding: 0.8rem 1.5rem;
  }

  .bs-buttons-container {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
  }

  .bs-button {
    width: 220px;
    font-size: 0.8rem;
    padding: 0.8rem 1.2rem;
  }
}

/* Modal Styles */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.modal-overlay.show {
  display: flex;
}

.modal-content {
  background-color: #000000;
  border: 2px solid #ffffff;
  border-radius: 12px;
  max-width: 600px;
  width: 100%;
  padding: 2.5rem;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 2rem;
  cursor: pointer;
  transition: opacity 0.2s;
}

.modal-close:hover {
  opacity: 0.7;
}

.modal-title {
  font-family: 'Arial', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.modal-divider {
  width: 60px;
  height: 2px;
  background-color: #ffffff;
  margin: 0 auto 2rem auto;
}

.modal-body {
  font-family: 'Times New Roman', Times, serif;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.8;
  text-align: center;
}

.modal-body p {
  margin-bottom: 1.5rem;
}

.modal-emphasis {
  font-style: italic;
  color: rgba(255, 255, 255, 0.8);
}

.modal-list {
  font-weight: 600;
  font-size: 1.2rem;
  color: #ffffff;
  line-height: 2;
}

.modal-tagline {
  font-weight: 700;
  font-size: 1.3rem;
  color: #ffffff;
  margin-top: 1rem;
}

.modal-subtitle {
  font-family: 'Arial', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

/* White background modal variant */
.modal-content-light {
  background-color: #ffffff;
  border: 2px solid #333333;
}

.modal-content-light .modal-close {
  color: #333333;
}

.modal-content-light .modal-title {
  color: #000000;
}

.modal-content-light .modal-divider {
  background-color: #333333;
}

.modal-content-light .modal-body {
  color: #333333;
}

.modal-content-light .modal-body p {
  color: #333333;
}

.modal-content-light .modal-subtitle {
  color: #000000;
}

.ein-number {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  font-size: 1rem;
  color: #1a1a1a;
}

.modal-content-light .support-choice-button {
  border-color: #333333;
  color: #333333;
}

.modal-content-light .support-choice-button:hover {
  background-color: #333333;
  color: #ffffff;
}

.no-facebook-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

/* Support Modal Styles */
.support-modal-content {
  text-align: center;
}

.support-buttons {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  margin-top: 1rem;
}

.support-choice-button {
  display: inline-block;
  background-color: transparent;
  border: 2px solid #ffffff;
  color: #ffffff;
  font-family: 'Arial', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  padding: 1rem 2.5rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 250px;
}

.support-choice-button:hover {
  background-color: #ffffff;
  color: #000000;
}

@media (max-width: 768px) {
  .support-choice-button {
    font-size: 1rem;
    padding: 0.8rem 2rem;
    min-width: 200px;
  }
}

@media (max-width: 768px) {
  .modal-content {
    padding: 1.5rem;
    margin: 1rem;
  }

  .modal-title {
    font-size: 1.4rem;
  }

  .modal-body {
    font-size: 1rem;
  }

  .modal-list {
    font-size: 1.1rem;
  }

  .modal-tagline {
    font-size: 1.1rem;
  }
}

/* Large Desktop - show more of the background landscape */
@media (min-width: 1200px) {
  .hero {
    min-height: 90vh;
    background-size: cover;
    background-position: center 40%;
  }

  .subliminal-layer {
    background-position: center 40%;
  }
}

/* Waving American Flag Animation */
.flag-container {
  position: relative;
  width: 300px;
  height: 180px;
  margin: 0 auto 2rem auto;
  perspective: 1000px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.waving-flag {
  position: relative;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg,
    #bf0a30 0%, #bf0a30 7.69%,
    #ffffff 7.69%, #ffffff 15.38%,
    #bf0a30 15.38%, #bf0a30 23.07%,
    #ffffff 23.07%, #ffffff 30.76%,
    #bf0a30 30.76%, #bf0a30 38.45%,
    #ffffff 38.45%, #ffffff 46.14%,
    #bf0a30 46.14%, #bf0a30 53.83%,
    #ffffff 53.83%, #ffffff 61.52%,
    #bf0a30 61.52%, #bf0a30 69.21%,
    #ffffff 69.21%, #ffffff 76.9%,
    #bf0a30 76.9%, #bf0a30 84.59%,
    #ffffff 84.59%, #ffffff 92.28%,
    #bf0a30 92.28%, #bf0a30 100%
  );
  animation: wave 3s ease-in-out infinite;
  transform-origin: left center;
}

.flag-canton {
  position: absolute;
  top: 0;
  left: 0;
  width: 40%;
  height: 53.85%;
  background-color: #002868;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  padding: 2px 0;
}

.star-row {
  display: flex;
  justify-content: space-evenly;
  width: 100%;
}

.star-row.row-5 {
  padding: 0 6%;
}

.star {
  color: #ffffff;
  font-size: 8px;
  line-height: 1;
  text-shadow: 0 0 1px rgba(255, 255, 255, 0.5);
}

.flag-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
    rgba(0, 0, 0, 0.1) 0%,
    rgba(255, 255, 255, 0.15) 25%,
    rgba(0, 0, 0, 0.1) 50%,
    rgba(255, 255, 255, 0.15) 75%,
    rgba(0, 0, 0, 0.1) 100%
  );
  animation: wave-shadow 3s ease-in-out infinite;
  pointer-events: none;
}

.flag-text-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Arial', sans-serif;
  font-size: 1.8rem;
  font-weight: 900;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  text-shadow: 
    2px 2px 4px rgba(0, 0, 0, 0.8),
    -1px -1px 2px rgba(0, 0, 0, 0.6),
    0 0 20px rgba(0, 0, 0, 0.5);
  z-index: 10;
  animation: text-wave 3s ease-in-out infinite;
  white-space: nowrap;
}

@keyframes wave {
  0%, 100% {
    transform: perspective(500px) rotateY(0deg) skewY(0deg);
  }
  25% {
    transform: perspective(500px) rotateY(3deg) skewY(1deg);
  }
  50% {
    transform: perspective(500px) rotateY(-2deg) skewY(-0.5deg);
  }
  75% {
    transform: perspective(500px) rotateY(2deg) skewY(0.5deg);
  }
}

@keyframes wave-shadow {
  0%, 100% {
    background-position: 0% 50%;
    opacity: 0.6;
  }
  50% {
    background-position: 100% 50%;
    opacity: 0.4;
  }
}

@keyframes text-wave {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
  }
  25% {
    transform: translate(-50%, -50%) scale(1.02) skewX(0.5deg);
  }
  50% {
    transform: translate(-50%, -50%) scale(0.99);
  }
  75% {
    transform: translate(-50%, -50%) scale(1.01) skewX(-0.5deg);
  }
}

/* Mobile responsive flag */
@media (max-width: 768px) {
  .flag-container {
    width: 260px;
    height: 156px;
  }
  
  .flag-text-overlay {
    font-size: 1.5rem;
  }
  
  .star {
    font-size: 6px;
  }
}

@media (max-width: 480px) {
  .flag-container {
    width: 220px;
    height: 132px;
  }
  
  .flag-text-overlay {
    font-size: 1.3rem;
    letter-spacing: 0.1em;
  }
  
  .star {
    font-size: 5px;
  }
}
