:root {
  --text-main: #222; 
  --text-secondary: #444;
  --accent: #d84315;
  --glass-border: rgba(80, 80, 80, 0.3);
}

body {
  margin: 0;
  font-family: 'Noto Sans Armenian', sans-serif;
  background-color: #fff8e1;
  color: var(--text-main);
  min-height: 100vh;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  overflow-x: hidden;
}

/* --- Intro Background Animation --- */
.intro-bg {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 100%;
  background-image: url('yarhu.jpg');
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover; 
  z-index: -1; 
  animation: moveBack 3s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes moveBack {
  0% { opacity: 1; transform: scale(1.1); }
  100% { opacity: 0.5; transform: scale(1); }
}

/* --- Glass Card (Graphite Effect) --- */
.glass-card {
  width: 100%;
  max-width: 420px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 20px 30px;
  
  background-color: rgba(30, 30, 30, 0.15);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.07'/%3E%3C/svg%3E");
  
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
  
  border: 1px solid var(--glass-border);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px; 
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

/* Language Selector */
.lang-selector {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(5px);
  padding: 8px 15px;
  border-radius: 30px; 
  gap: 15px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  margin-top: 10px; 
  z-index: 11;
}

.lang-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  background: transparent;
  padding: 0;
  transition: transform 0.2s;
}
.lang-btn:hover { transform: scale(1.15); }
.lang-btn img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }

.content-wrapper {
  position: relative;
  z-index: 10;
  width: 100%;
  margin-top: auto;
  margin-bottom: auto;
}

.logo {
  width: 100px;
  margin-bottom: 10px;
  filter: drop-shadow(0 4px 5px rgba(0,0,0,0.15));
  animation: heartbeat 3s infinite ease-in-out;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

h1 {
  font-size: 1.7em;
  color: var(--accent);
  margin: 10px 0;
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
  text-shadow: 0 1px 1px rgba(255,255,255,0.5);
}

p.subtitle {
  font-size: 1.1em;
  color: var(--text-secondary);
  margin-top: 0;
  margin-bottom: 35px;
  font-weight: 600;
  text-align: center;
}

.buttons {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
}

.buttons-row {
  display: flex;
  gap: 15px;
  width: 100%;
}

.buttons-row > * { flex: 1; }

/* 3D Glass Buttons */
a.button, button.info-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 5px; 
  text-decoration: none;
  font-size: 1.05em;
  font-weight: 700;
  color: var(--text-main);
  border-radius: 22px;
  transition: all 0.2s ease;
  white-space: nowrap; 
  
  background: linear-gradient(145deg, rgba(255,255,255,0.9), rgba(255,255,255,0.5));
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-bottom: 2px solid rgba(200, 200, 200, 0.5);
  
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  cursor: pointer;
  font-family: inherit;
  width: 100%;
  box-sizing: border-box;
}

a.button:hover, button.info-trigger:hover {
  transform: translateY(-2px);
  background: linear-gradient(145deg, rgba(255,255,255,1), rgba(255,255,255,0.7));
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

a.button:active, button.info-trigger:active { transform: scale(0.98); border-bottom-width: 1px; }

/* SVG Icons Style */
.icon {
  width: 22px;
  height: 22px;
  margin-right: 10px;
  stroke: currentColor; 
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Button Variants */
.btn-about {
  background: linear-gradient(145deg, #e1f5fe, #b3e5fc) !important;
  color: #01579b !important;
  border-color: #81d4fa !important;
}

.btn-contact {
  background: linear-gradient(145deg, #e8f5e9, #c8e6c9) !important;
  color: #1b5e20 !important;
  border-color: #a5d6a7 !important;
}

/* --- Modal (Dark Graphite) --- */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgb(20 20 20 / 38%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 200;
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.show { display: flex; opacity: 1; }

.modal-content {
  background: transparent;
  box-shadow: none;
  border: none;
  width: 100%;
  max-width: 500px;
  max-height: 85vh;
  overflow-y: auto;
  border-radius: 24px;
  padding: 20px;
  position: relative;
  text-align: left;
  line-height: 1.6;
  color: #f0f0f0; 
}

.close-btn {
  position: absolute;
  top: 0px;
  right: 0px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  width: 35px; height: 35px;
  border: none;
  font-size: 1.5em;
  cursor: pointer;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
}

.modal-content h2 {
  text-align: center;
  color: var(--accent);
  margin-top: 10px;
  margin-bottom: 25px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.modal-content p { margin-bottom: 15px; font-size: 1em; color: #ddd; }
.modal-content a { color: #ff8a65; font-weight: bold; text-decoration: none; }

/* Donation Box */
.donation-box {
  background: rgba(0, 0, 0, 0.3);
  border: 1px dashed var(--accent);
  border-radius: 16px;
  padding: 15px;
  margin-top: 25px;
  text-align: center;
}

.donation-title { font-weight: bold; margin-bottom: 10px; font-size: 0.9em; color: #ccc; }

.copy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 8px;
}

.copy-text {
  font-family: monospace;
  font-size: 1.05em;
  font-weight: bold;
  color: #fff;
  overflow-x: auto;
  white-space: nowrap;
  margin-right: 10px;
}

.copy-btn {
  background: rgba(255,255,255,0.1);
  border: none;
  padding: 6px;
  cursor: pointer;
  display: flex;
  border-radius: 5px;
  color: #ccc;
}
.copy-btn:hover { background: rgba(255,255,255,0.2); color: var(--accent); }
.copy-btn svg { width: 20px; height: 20px; fill: currentColor; }

/* --- Mobile Adaptive --- */
@media (max-width: 480px) {
  body { padding: 0; }
  .glass-card {
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    border-radius: 0; 
    border: none;
    border-bottom: none;
    padding: 30px 20px; 
  }
  .logo { width: 85px; }
  
  h1 { font-size: 1.4em; margin: 5px 0; }
  p.subtitle { font-size: 0.95em; margin-bottom: 25px; }
  a.button, button.info-trigger { font-size: 0.95em; padding: 12px 5px; }
  
  .lang-selector { padding: 6px 12px; margin-bottom: 15px; }
  .lang-btn { width: 28px; height: 28px; }
  
  .modal-content h2 { font-size: 1.3em; }
  .modal-content p { font-size: 0.9em; }
  .copy-text { font-size: 0.9em; }
}