/* ================= Contact Page Styles ================= */

/* ---------- Root Variables ---------- */
:root {
  --radius: 12px;
  --transition-fast: 0.25s;
  --transition-medium: 0.4s;
  --accent: #ff6ec7;
  --accent-gradient: linear-gradient(135deg, #ff6ec7, #6e8bff);
  --text: #f0f0f0;
  --muted: #a0a0a0;
  --card-bg: rgba(20, 20, 30, 0.7);
  --muted-card-bg: rgba(20, 20, 30, 0.45);
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* ---------- Body & Main Layout ---------- */
body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  background: linear-gradient(135deg, #ff6ec7, #6e8bff);
  background-attachment: fixed;
  color: var(--text);
  transition: background 0.5s ease, color 0.5s ease;
}

.light-mode {
  --card-bg: rgba(255, 255, 255, 0.15);
  --muted-card-bg: rgba(255, 255, 255, 0.1);
  --text: #111;
  --muted: #555;
  --accent: #ff6ec7;
}

.dark-mode {
  --card-bg: rgba(20, 20, 30, 0.7);
  --muted-card-bg: rgba(20, 20, 30, 0.45);
  --text: #f0f0f0;
  --muted: #a0a0a0;
  --accent: #ff6ec7;
}

/* ---------- Header ---------- */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1.5rem;
  backdrop-filter: blur(12px);
  background: var(--card-bg);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-logo { width: 40px; height: 40px; border-radius: 50%; }
.site-title { font-weight: 700; font-size: 1.25rem; margin-left: 0.5rem; }

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

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius);
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
}
.nav-links a.active { color: var(--text); font-weight: 700; }
.nav-links a::after {
  content: '';
  position: absolute;
  left: 10%;
  bottom: 6px;
  width: 0%;
  height: 3px;
  background: var(--accent-gradient);
  border-radius: 2px;
  transition: width 0.35s ease;
}
.nav-links a:hover::after { width: 80%; }
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.08); }

/* ---------- Theme Toggle ---------- */
.theme-toggle {
  border: none;
  background: var(--muted-card-bg);
  padding: 0.5rem;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}
.theme-toggle:hover { transform: scale(1.1); box-shadow: 0 0 12px var(--accent); }

/* ---------- Contact Header ---------- */
.contact-header {
  text-align: center;
  margin: 2rem 1rem 3rem;
}
.contact-header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #ff6ec7, #6e8bff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.contact-header p { font-size: 1.1rem; color: var(--muted); }

/* ---------- Contact Container ---------- */
.contact-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 0 1.5rem 3rem;
}

/* ---------- Contact Info Cards ---------- */
.contact-info .info-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.contact-info .info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}
.contact-info i {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 1rem;
  display: inline-block;
}
.info-card h3 { margin: 0.5rem 0; font-weight: 700; }
.info-card p { margin: 0; color: var(--muted); }

/* ---------- Contact Form ---------- */
.contact-form-container {
  background: var(--card-bg);
  padding: 2rem 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.contact-form-container form { display: flex; flex-direction: column; gap: 1rem; }

.contact-form-container input,
.contact-form-container textarea {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  border: none;
  background: var(--muted-card-bg);
  color: var(--text);
  font-size: 1rem;
  transition: all var(--transition-medium) ease, box-shadow 0.3s ease;
}
.contact-form-container input::placeholder,
.contact-form-container textarea::placeholder {
  color: var(--muted);
  opacity: 0.85;
}
.contact-form-container input:focus,
.contact-form-container textarea:focus {
  outline: 2px solid var(--accent);
  background: var(--card-bg);
  box-shadow: 0 0 18px rgba(0,0,0,0.12);
}

/* ---------- Send Button ---------- */
#send-btn {
  background: var(--accent-gradient);
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
#send-btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

/* ---------- Footer ---------- */
.contact-footer {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------- Floating Particles ---------- */
.particle {
  position: absolute;
  background: rgba(255,255,255,0.6);
  border-radius: 50%;
  pointer-events: none;
  animation: floatParticle linear infinite;
}

@keyframes floatParticle {
  0% { transform: translateY(0) translateX(0); opacity: 0.3; }
  50% { transform: translateY(-20px) translateX(10px); opacity: 0.7; }
  100% { transform: translateY(0) translateX(0); opacity: 0.3; }
}
