/* =====================================================================
   CONTACT PAGE - Professional & Modern Styling
   Version: 3.0 - Fully Optimized, Responsive & Performance Enhanced
   ===================================================================== */

/* === Performance Optimization === */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* === Accessibility - Skip Link === */
.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 999;
  padding: 1em;
  background: #00ffff;
  color: #000;
  text-decoration: none;
  font-weight: bold;
}

.skip-link:focus {
  left: 0;
  top: 0;
}

/* === Contact Page Container === */
.contact-page {
  max-width: 1200px;
  margin: 100px auto 50px;
  padding: 20px;
  position: relative;
  z-index: 1;
  will-change: auto; /* Optimize rendering */
}

/* === Contact Intro Section === */
.contact-intro {
  text-align: center;
  margin-bottom: 60px;
  padding: 40px 20px;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(15px);
  border-radius: 20px;
  border: 1px solid rgba(0, 255, 255, 0.15);
  box-shadow: 0 8px 32px rgba(0, 255, 255, 0.2);
}

.contact-intro h1 {
  font-size: 3em;
  font-weight: 900;
  background: linear-gradient(135deg, #00ffff, #00ccff, #0099ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 2px;
  filter: drop-shadow(0 0 15px rgba(0, 255, 255, 0.6));
  animation: titleGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {
  0%, 100% { filter: drop-shadow(0 0 15px rgba(0, 255, 255, 0.6)); }
  50% { filter: drop-shadow(0 0 25px rgba(0, 255, 255, 0.9)); }
}

.contact-lead {
  font-size: 1.2em;
  color: #fff;
  line-height: 1.8;
  margin-bottom: 15px;
  font-weight: 500;
}

.contact-intro p {
  color: #bbb;
  line-height: 1.7;
  font-size: 1.05em;
}

/* === Contact Methods Section === */
.contact-methods-section {
  margin-bottom: 60px;
}

.contact-methods-section h2 {
  font-size: 2.2em;
  font-weight: 800;
  background: linear-gradient(135deg, #00ffff, #33ffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
  margin-bottom: 40px;
  filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.5));
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

/* === Contact Cards === */
.contact-card {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(15px);
  border-radius: 20px;
  padding: 35px 25px;
  border: 1px solid rgba(0, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 255, 255, 0.15);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.contact-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 255, 255, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.contact-card:hover::before {
  opacity: 1;
}

.contact-card:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow: 0 16px 48px rgba(0, 255, 255, 0.35), 0 0 30px rgba(0, 255, 255, 0.3);
  border-color: rgba(0, 255, 255, 0.5);
}

.contact-icon {
  font-size: 3.5em;
  margin-bottom: 20px;
  display: block;
  filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.4));
  animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.contact-card h3 {
  font-size: 1.6em;
  font-weight: 700;
  color: #00ffff;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact-card p {
  color: #ccc;
  line-height: 1.7;
  margin-bottom: 25px;
  font-size: 0.95em;
}

/* === Contact Button === */
.contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  background: linear-gradient(135deg, #00ffff, #00ccff);
  color: #000;
  font-weight: 700;
  text-decoration: none;
  border-radius: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
  gap: 10px;
  font-size: 1em;
  cursor: pointer;
  border: none;
  outline: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent; /* Remove tap highlight on mobile */
}

.contact-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
}

.contact-btn:hover::before {
  left: 100%;
}

.contact-btn:hover,
.contact-btn:focus {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 32px rgba(0, 255, 255, 0.5), 0 0 20px rgba(0, 255, 255, 0.4);
  background: linear-gradient(135deg, #00ccff, #00ffff);
  outline: 2px solid rgba(0, 255, 255, 0.3);
  outline-offset: 2px;
}

.contact-btn:active {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 4px 16px rgba(0, 255, 255, 0.4);
}

.btn-arrow {
  font-size: 1.3em;
  transition: transform 0.3s ease;
  display: inline-block;
}

.contact-btn:hover .btn-arrow {
  transform: translateX(5px);
}

.contact-meta {
  margin-top: 15px;
  font-size: 0.85em;
  color: #00ffff;
  font-style: italic;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.contact-card:hover .contact-meta {
  opacity: 1;
}

/* === Platform-specific Card Styling === */
.contact-card.telegram { border-color: rgba(0, 136, 204, 0.3); }
.contact-card.telegram:hover { 
  border-color: rgba(0, 136, 204, 0.6);
  box-shadow: 0 16px 48px rgba(0, 136, 204, 0.35);
}

.contact-card.email { border-color: rgba(234, 67, 53, 0.3); }
.contact-card.email:hover { 
  border-color: rgba(234, 67, 53, 0.6);
  box-shadow: 0 16px 48px rgba(234, 67, 53, 0.35);
}

.contact-card.facebook { border-color: rgba(24, 119, 242, 0.3); }
.contact-card.facebook:hover { 
  border-color: rgba(24, 119, 242, 0.6);
  box-shadow: 0 16px 48px rgba(24, 119, 242, 0.35);
}

.contact-card.twitter { border-color: rgba(29, 155, 240, 0.3); }
.contact-card.twitter:hover { 
  border-color: rgba(29, 155, 240, 0.6);
  box-shadow: 0 16px 48px rgba(29, 155, 240, 0.35);
}

.contact-card.instagram { border-color: rgba(225, 48, 108, 0.3); }
.contact-card.instagram:hover { 
  border-color: rgba(225, 48, 108, 0.6);
  box-shadow: 0 16px 48px rgba(225, 48, 108, 0.35);
}

/* === Contact Topics Section === */
.contact-topics {
  margin-bottom: 60px;
}

.contact-topics h2 {
  font-size: 2.2em;
  font-weight: 800;
  background: linear-gradient(135deg, #00ffff, #33ffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
  margin-bottom: 40px;
  filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.5));
}

.topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.topic-item {
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 25px 20px;
  border: 1px solid rgba(0, 255, 255, 0.15);
  transition: all 0.3s ease;
  text-align: center;
}

.topic-item:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 255, 255, 0.4);
  box-shadow: 0 8px 24px rgba(0, 255, 255, 0.25);
}

.topic-icon {
  font-size: 2.5em;
  margin-bottom: 15px;
  display: block;
  filter: drop-shadow(0 0 8px rgba(0, 255, 255, 0.3));
}

.topic-item h3 {
  font-size: 1.2em;
  color: #00ffff;
  margin-bottom: 10px;
  font-weight: 600;
}

.topic-item p {
  color: #aaa;
  font-size: 0.9em;
  line-height: 1.6;
}

/* === Guidelines Section === */
.contact-guidelines {
  margin-bottom: 60px;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(15px);
  border-radius: 20px;
  padding: 40px;
  border: 1px solid rgba(0, 255, 255, 0.15);
}

.contact-guidelines h2 {
  font-size: 2em;
  font-weight: 800;
  background: linear-gradient(135deg, #00ffff, #33ffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 25px;
  filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.5));
}

.guidelines-content > p {
  color: #ccc;
  margin-bottom: 20px;
  font-size: 1.05em;
}

.guidelines-list {
  list-style: none;
  padding: 0;
}

.guidelines-list li {
  padding: 12px 0;
  color: #ddd;
  font-size: 1em;
  line-height: 1.7;
  border-bottom: 1px solid rgba(0, 255, 255, 0.1);
}

.guidelines-list li:last-child {
  border-bottom: none;
}

.guidelines-list li strong {
  color: #00ffff;
}

/* === Response Time Section === */
.contact-response {
  margin-bottom: 60px;
}

.contact-response h2 {
  font-size: 2.2em;
  font-weight: 800;
  background: linear-gradient(135deg, #00ffff, #33ffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
  margin-bottom: 40px;
  filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.5));
}

.response-content {
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(15px);
  border-radius: 20px;
  padding: 40px;
  border: 1px solid rgba(0, 255, 255, 0.15);
}

.response-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  margin-bottom: 30px;
}

.response-item {
  background: rgba(0, 255, 255, 0.05);
  border-radius: 15px;
  padding: 25px;
  text-align: center;
  border: 1px solid rgba(0, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.response-item:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 255, 255, 0.4);
  box-shadow: 0 8px 24px rgba(0, 255, 255, 0.25);
}

.response-channel {
  font-size: 1.1em;
  font-weight: 700;
  color: #00ffff;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.response-time {
  font-size: 1.8em;
  font-weight: 900;
  color: #fff;
  margin-bottom: 8px;
}

.response-desc {
  font-size: 0.9em;
  color: #aaa;
}

.response-note {
  color: #ccc;
  font-size: 0.95em;
  line-height: 1.7;
  text-align: center;
  margin-top: 20px;
}

/* === FAQ Section === */
.contact-faq {
  margin-bottom: 60px;
}

.contact-faq h2 {
  font-size: 2.2em;
  font-weight: 800;
  background: linear-gradient(135deg, #00ffff, #33ffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
  margin-bottom: 40px;
  filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.5));
}

.faq-content {
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(15px);
  border-radius: 20px;
  padding: 40px;
  border: 1px solid rgba(0, 255, 255, 0.15);
}

.faq-content > p {
  color: #ccc;
  margin-bottom: 25px;
  font-size: 1.05em;
}

.faq-list {
  margin: 25px 0;
}

.faq-item {
  background: rgba(0, 255, 255, 0.05);
  border-radius: 12px;
  margin-bottom: 15px;
  border: 1px solid rgba(0, 255, 255, 0.15);
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: rgba(0, 255, 255, 0.3);
  box-shadow: 0 4px 16px rgba(0, 255, 255, 0.2);
}

.faq-item summary {
  padding: 20px 25px;
  font-size: 1.1em;
  font-weight: 600;
  color: #00ffff;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: all 0.3s ease;
  position: relative;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 25px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5em;
  color: #00ffff;
  transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
  content: '−';
  transform: translateY(-50%) rotate(180deg);
}

.faq-item summary:hover {
  background: rgba(0, 255, 255, 0.08);
  padding-left: 30px;
}

.faq-item p {
  padding: 0 25px 20px;
  color: #ddd;
  line-height: 1.7;
  font-size: 0.95em;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.faq-item a {
  color: #00ffff;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.faq-item a:hover {
  color: #33ffff;
}

.faq-footer {
  margin-top: 25px;
  text-align: center;
  color: #ccc;
  font-size: 1em;
}

.faq-footer a {
  color: #00ffff;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.faq-footer a:hover {
  color: #33ffff;
  text-decoration: underline;
}

/* === Contact Footer Section === */
.contact-footer {
  margin-bottom: 40px;
}

.disclaimer-box {
  background: rgba(255, 165, 0, 0.1);
  border: 2px solid rgba(255, 165, 0, 0.3);
  border-radius: 15px;
  padding: 30px;
  backdrop-filter: blur(10px);
}

.disclaimer-box h3 {
  color: #ffa500;
  font-size: 1.5em;
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.disclaimer-box ul {
  list-style: none;
  padding: 0;
  margin: 15px 0 0 0;
}

.disclaimer-box li {
  padding: 10px 0;
  color: #ddd;
  line-height: 1.7;
  position: relative;
  padding-left: 25px;
}

.disclaimer-box li::before {
  content: '⚠️';
  position: absolute;
  left: 0;
  top: 10px;
  font-size: 1em;
}

.disclaimer-box strong {
  color: #ffa500;
  font-weight: 600;
}

/* === Alert Box === */
.alert-box {
  background: rgba(255, 193, 7, 0.1);
  border-left: 4px solid #ffc107;
  padding: 20px;
  margin: 20px 0;
  border-radius: 8px;
  backdrop-filter: blur(10px);
}

.alert-box strong {
  color: #ffc107;
  font-weight: 700;
}

.alert-box p {
  color: #ddd;
  margin-top: 10px;
  line-height: 1.7;
}

/* === Responsive Design === */
@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
  }
  
  .topics-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
  
  .contact-page {
    margin: 90px auto 40px;
  }
}

@media (max-width: 768px) {
  .contact-page {
    margin: 80px auto 30px;
    padding: 15px;
  }
  
  .contact-intro {
    padding: 30px 15px;
    margin-bottom: 40px;
  }
  
  .contact-intro h1 {
    font-size: 2em;
    letter-spacing: 1px;
  }
  
  .contact-lead {
    font-size: 1.05em;
  }
  
  .contact-methods-section h2,
  .contact-topics h2,
  .contact-response h2,
  .contact-faq h2 {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .contact-card {
    padding: 25px 20px;
  }
  
  .contact-card:hover {
    transform: translateY(-5px) scale(1.01);
  }
  
  .topics-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .response-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .contact-guidelines,
  .response-content,
  .faq-content {
    padding: 25px 20px;
  }
  
  .faq-item summary {
    padding: 15px 40px 15px 20px;
    font-size: 1em;
  }
  
  .faq-item summary::after {
    right: 15px;
  }
  
  .faq-item p {
    padding: 0 20px 15px;
    font-size: 0.9em;
  }
  
  /* Better touch targets for mobile */
  .contact-btn {
    padding: 16px 30px;
    font-size: 1.05em;
    min-height: 48px; /* Accessibility - minimum touch target */
  }
  
  .faq-item summary {
    min-height: 48px;
    display: flex;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .contact-intro h1 {
    font-size: 1.6em;
  }
  
  .contact-intro {
    padding: 25px 15px;
  }
  
  .contact-icon {
    font-size: 2.8em;
  }
  
  .contact-card {
    padding: 20px 15px;
  }
  
  .contact-card h3 {
    font-size: 1.3em;
  }
  
  .contact-card p {
    font-size: 0.9em;
  }
  
  .topic-icon {
    font-size: 2em;
  }
  
  .topic-item {
    padding: 20px 15px;
  }
  
  .disclaimer-box {
    padding: 20px 15px;
  }
  
  .contact-methods-section h2,
  .contact-topics h2,
  .contact-response h2,
  .contact-faq h2 {
    font-size: 1.5em;
  }
  
  .guidelines-list li,
  .response-note {
    font-size: 0.95em;
  }
  
  /* Optimize spacing for small screens */
  .contact-methods-section,
  .contact-topics,
  .contact-guidelines,
  .contact-response,
  .contact-faq,
  .contact-footer {
    margin-bottom: 40px;
  }
}

/* === Loading State (Optional Enhancement) === */
.contact-page.loading {
  opacity: 0.5;
  pointer-events: none;
}

.contact-page.loading::after {
  content: '';
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  border: 3px solid rgba(0, 255, 255, 0.2);
  border-top-color: #00ffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  z-index: 9999;
}

@keyframes spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* === Notification/Toast Styles === */
.contact-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #00ffff;
  color: #000;
  padding: 15px 25px;
  border-radius: 10px;
  z-index: 10000;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(0, 255, 255, 0.5);
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

/* === Focus visible for better accessibility === */
.contact-btn:focus-visible,
.faq-item summary:focus-visible,
a:focus-visible {
  outline: 2px solid #00ffff;
  outline-offset: 2px;
  border-radius: 4px;
}

/* === Print styles === */
@media print {
  .contact-page {
    margin: 0;
    padding: 20px;
  }
  
  .contact-card::before,
  .contact-btn::before {
    display: none;
  }
  
  .contact-card,
  .topic-item,
  .faq-item {
    break-inside: avoid;
  }
  
  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #666;
  }
}
