/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: #0a0a0a;
  color: #f5f5f5;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Starfield */
#contact-starfield {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: #0a0a0a;
}

/* Overlay */
.contact-overlay {
  position: relative;
  z-index: 1;
  text-align: center;
  flex: 1; /* take remaining space so footer stays at bottom */
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 50px;
  background: rgba(15, 15, 15, 0.7);
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #62d1f3;
  letter-spacing: 1px;
}

nav a {
  margin-left: 20px;
  text-decoration: none;
  color: #f5f5f5;
  font-weight: bold;
  transition: all 0.3s;
}

nav a:hover {
  color: #62d1f3;
  text-shadow: 0 0 8px #62d1f3;
}

/* Hero */
.contact-hero {
  padding: 100px 20px 50px 20px;
}

.contact-hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  background: linear-gradient(90deg, #62d1f3, #9b6bff, #f3e662);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 1px; /* added to match main hero */
  animation: glow 3s infinite alternate, float 6s ease-in-out infinite;
}

.contact-hero p {
  font-size: 1.3rem;
  margin-bottom: 40px;
  color: #ccc;
}

/* Contact Card */
.contact-card {
  display: inline-block;
  background: rgba(20, 20, 20, 0.8);
  padding: 40px 50px;
  margin: 40px auto;
  border-radius: 20px;
  box-shadow: 0 0 40px #62d1f3, 0 0 60px #9b6bff;
  text-align: center;
  max-width: 500px;
}

.contact-card h2 {
  font-size: 2rem;
  color: #62d1f3;
  margin-bottom: 20px;
}

.contact-card p {
  font-size: 1.1rem;
  margin-bottom: 15px;
  color: #ddd;
}

.contact-card a {
  color: #9b6bff;
  text-decoration: none;
  font-weight: bold;
}

.contact-card a:hover {
  color: #62d1f3;
  text-shadow: 0 0 10px #62d1f3;
}

/* Footer */
footer {
  text-align: center;
  padding: 20px;
  background: rgba(15, 15, 15, 0.7);
  font-size: 0.9rem;
  color: #999;
}

/* Smooth transitions */
body {
  opacity: 0;
  transition: opacity 0.5s ease;
}

body.loaded {
  opacity: 1;
}

body.fade-out {
  opacity: 0;
}

/* Animations */
@keyframes glow {
  from { text-shadow: 0 0 10px #62d1f3; }
  to { text-shadow: 0 0 25px #9b6bff; }
}

@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}
