/* ============================================
   Contact Page - Modern Redesign
   ============================================ */

:root {
  --primary-gradient: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  --secondary-gradient: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
  --tertiary-gradient: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --bg-light: #f9fafb;
  --border-color: #e5e7eb;
  --card-bg: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e0;
    --bg-light: #1e293b;
    --border-color: #334155;
    --card-bg: #0f172a;
  }
}

.contact-main {
  min-height: 100vh;
  background: var(--bg-light);
  color: var(--text-primary);
}

/* ============================================
   Hero Section
   ============================================ */

.contact-hero {
  position: relative;
  overflow: hidden;
  background: var(--primary-gradient);
  padding: 80px 20px;
  text-align: center;
  color: white;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.1;
  z-index: 0;
}

.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.5;
}

.shape-1 {
  width: 300px;
  height: 300px;
  background: #fff;
  top: -50px;
  right: -50px;
}

.shape-2 {
  width: 200px;
  height: 200px;
  background: #fff;
  bottom: 20px;
  left: -50px;
}

.shape-3 {
  width: 150px;
  height: 150px;
  background: #fff;
  top: 50%;
  left: 10%;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.hero-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  display: inline-block;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.1rem;
  opacity: 0.95;
  line-height: 1.6;
  margin: 0;
}

/* ============================================
   Container & Layout
   ============================================ */

.contact-container {
  max-width: 1200px;
  padding: 60px 20px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ============================================
   Form Section
   ============================================ */

.form-section {
  padding: 0;
}

.form-wrapper {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

@media (prefers-color-scheme: dark) {
  .form-wrapper {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  }
}

.form-header {
  margin-bottom: 32px;
}

.form-header h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.form-header p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin: 0;
}

/* Alert Custom */
.alert-custom {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(34, 197, 94, 0.05));
  border: 2px solid #22c55e;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

@media (prefers-color-scheme: dark) {
  .alert-custom {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(34, 197, 94, 0.08));
    border-color: rgba(34, 197, 94, 0.4);
  }
}

.alert-icon {
  font-size: 1.4rem;
  color: #22c55e;
  flex-shrink: 0;
}

.alert-content strong {
  color: var(--text-primary);
  display: block;
  margin-bottom: 4px;
}

.alert-content p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0;
}

/* Form Styling */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-label {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.form-control {
  padding: 12px 16px;
  border: 2px solid var(--border-color);
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: all 0.3s ease;
  background: var(--bg-light);
  color: var(--text-primary);
}

.form-control::placeholder {
  color: var(--text-secondary);
}

@media (prefers-color-scheme: dark) {
  .form-control {
    background: rgba(71, 85, 105, 0.2);
    border-color: var(--border-color);
    color: #f1f5f9;
  }

  .form-control::placeholder {
    color: #94a3b8;
  }
}

.form-control:focus {
  outline: none;
  border-color: #3b82f6;
  background: var(--card-bg);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

@media (prefers-color-scheme: dark) {
  .form-control:focus {
    background: rgba(71, 85, 105, 0.3);
    border-color: #60a5fa;
    box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.15);
  }
}

.form-textarea {
  resize: vertical;
  min-height: 150px;
}

.btn-submit {
  padding: 14px 32px;
  background: var(--primary-gradient);
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
}

.btn-submit:active {
  transform: translateY(0);
}

/* ============================================
   Info Section
   ============================================ */

.info-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.info-card {
  background: var(--card-bg);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

@media (prefers-color-scheme: dark) {
  .info-card {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
  }
}

.info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

@media (prefers-color-scheme: dark) {
  .info-card:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  }
}

.info-card .card-header {
  padding: 24px;
  border-bottom: 2px solid var(--border-color);
  background: var(--card-bg);
}

@media (prefers-color-scheme: dark) {
  .info-card .card-header {
    border-bottom-color: rgba(255, 255, 255, 0.1);
  }
}

.info-card .card-header h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.info-card .card-body {
  padding: 24px;
}

.info-card-primary .card-header {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(37, 99, 235, 0.04));
  border-bottom-color: #3b82f6;
}

@media (prefers-color-scheme: dark) {
  .info-card-primary .card-header {
    background: rgba(59, 130, 246, 0.08);
    border-bottom-color: rgba(59, 130, 246, 0.2);
  }
}

.info-card-primary .card-header h3 {
  color: #2563eb;
}

@media (prefers-color-scheme: dark) {
  .info-card-primary .card-header h3 {
    color: #60a5fa;
  }
}

.info-card-secondary .card-header {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.08), rgba(124, 58, 237, 0.04));
  border-bottom-color: #a855f7;
}

@media (prefers-color-scheme: dark) {
  .info-card-secondary .card-header {
    background: rgba(168, 85, 247, 0.08);
    border-bottom-color: rgba(168, 85, 247, 0.2);
  }
}

.info-card-secondary .card-header h3 {
  color: #7c3aed;
}

@media (prefers-color-scheme: dark) {
  .info-card-secondary .card-header h3 {
    color: #d8b4fe;
  }
}

.info-card-tertiary {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.08), rgba(22, 163, 74, 0.04));
  border: 2px solid rgba(34, 197, 94, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 24px;
}

.info-card-tertiary .card-icon {
  font-size: 2.5rem;
  color: #22c55e;
  margin-bottom: 16px;
}

.info-card-tertiary h4 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.info-card-tertiary p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin: 0;
}

/* Contact Items */
.contact-item {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}

.contact-item:last-child {
  margin-bottom: 0;
}

.item-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(59, 130, 246, 0.05));
  color: #3b82f6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

@media (prefers-color-scheme: dark) {
  .item-icon {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(59, 130, 246, 0.1));
    color: #60a5fa;
  }
}

.item-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.item-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  color: var(--text-secondary);
}

.item-value {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

.item-value:hover {
  color: #3b82f6;
}

@media (prefers-color-scheme: dark) {
  .item-value:hover {
    color: #60a5fa;
  }
}

/* Follow Section */
.follow-description {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 16px;
  line-height: 1.5;
}

.socials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(44px, 1fr));
  gap: 12px;
}

.contact-socials .social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.12), rgba(168, 85, 247, 0.06));
  color: #7c3aed;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1.1rem;
}

.contact-socials .social-link:hover {
  transform: translateY(-4px);
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(168, 85, 247, 0.12));
  box-shadow: 0 8px 20px rgba(168, 85, 247, 0.2);
}

.socials-grid .social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.12), rgba(168, 85, 247, 0.06));
  color: #7c3aed;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1.1rem;
}

.socials-grid .social-link:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(168, 85, 247, 0.12));
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.15);
}

@media (prefers-color-scheme: dark) {
  .socials-grid .social-link {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(168, 85, 247, 0.1));
    color: #d8b4fe;
  }

  .socials-grid .social-link:hover {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.3), rgba(168, 85, 247, 0.2));
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.3);
  }
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 768px) {
  .contact-hero {
    padding: 60px 20px;
  }

  .hero-icon {
    font-size: 3rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .contact-container {
    padding: 40px 20px;
  }

  .form-wrapper,
  .info-card {
    padding: 28px 20px;
  }

  .form-header h2 {
    font-size: 1.5rem;
  }

  .contact-item {
    gap: 12px;
    margin-bottom: 16px;
  }

  .item-value {
    font-size: 0.9rem;
  }
}

/* ============================================
   Dark Mode Support - .dark-mode class
   ============================================ */

.dark-mode {
  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e0;
  --bg-light: #1e293b;
  --border-color: #334155;
  --card-bg: #0f172a;
}

.dark-mode .contact-main {
  background: var(--bg-light);
  color: var(--text-primary);
}

.dark-mode .form-wrapper,
.dark-mode .info-card {
  background: var(--card-bg);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
}

.dark-mode .form-header h2,
.dark-mode .form-header p,
.dark-mode .info-card .card-header h3 {
  color: var(--text-primary);
}

.dark-mode .form-label {
  color: var(--text-primary);
}

.dark-mode .form-control {
  background: rgba(71, 85, 105, 0.2);
  border-color: var(--border-color);
  color: #f1f5f9;
}

.dark-mode .form-control::placeholder {
  color: #94a3b8;
}

.dark-mode .form-control:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.15);
}

.dark-mode .btn-submit {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.dark-mode .btn-submit:hover {
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
}

.dark-mode .contact-item {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.dark-mode .item-icon {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(59, 130, 246, 0.1));
  color: #60a5fa;
}

.dark-mode .item-value {
  color: var(--text-primary);
}

.dark-mode .item-value:hover {
  color: #60a5fa;
}

.dark-mode .alert-custom {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(34, 197, 94, 0.08));
  border-color: rgba(34, 197, 94, 0.4);
}

.dark-mode .alert-content strong {
  color: var(--text-primary);
}

.dark-mode .follow-description {
  color: var(--text-secondary);
}

.dark-mode .socials-grid .social-link {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(168, 85, 247, 0.1));
  color: #d8b4fe;
}

.dark-mode .socials-grid .social-link:hover {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.3), rgba(168, 85, 247, 0.2));
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.3);
}

.dark-mode .info-card-primary .card-header {
  background: rgba(59, 130, 246, 0.08);
  border-bottom-color: rgba(59, 130, 246, 0.2);
}

.dark-mode .info-card-secondary .card-header {
  background: rgba(168, 85, 247, 0.08);
  border-bottom-color: rgba(168, 85, 247, 0.2);
}

.dark-mode .info-card-tertiary {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.12), rgba(34, 197, 94, 0.06));
  border-color: rgba(34, 197, 94, 0.25);
}

.dark-mode .info-card-tertiary p {
  color: var(--text-secondary);
}
