:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #0f0f11;
  --bg-tertiary: #1a1a1c;
  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  --accent-primary: #3b82f6; /* Vibrant Blue */
  --accent-secondary: #6366f1; /* Indigo */
  --accent-gradient: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  --border-color: rgba(255, 255, 255, 0.08);
  --glass-bg: rgba(15, 15, 17, 0.7);
  --glass-border: rgba(255, 255, 255, 0.05);

  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;

  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
}

/* Background Atmosphere */
.atmosphere {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
}

.atmosphere::before,
.atmosphere::after {
  content: '';
  position: absolute;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
}

.atmosphere::before {
  top: -200px;
  left: -200px;
  background: var(--accent-primary);
  animation: float 20s infinite alternate ease-in-out;
}

.atmosphere::after {
  bottom: -200px;
  right: -200px;
  background: var(--accent-secondary);
  animation: float 25s infinite alternate-reverse ease-in-out;
}

@keyframes float {
  0% { transform: translate(0, 0); }
  100% { transform: translate(100px, 50px); }
}

.container {
  width: 100%;
  max-width: 90vw; /* Flexible width to prevent clipping on various screens */
  padding: 2rem;
  text-align: center;
  z-index: 1;
}

.logo-container {
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 0.8s forwards;
}

.logo-img {
  height: 64px;
  width: auto;
  object-fit: contain;
}

.hero-content {
  margin-bottom: 3rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 0.8s 0.2s forwards;
}

.badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-primary);
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

h1 {
  font-size: clamp(1.5rem, 7vw, 2.5rem); /* Responsive size to prevent overflow */
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  line-height: 1.4; /* Extra space for descenders */
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
  padding: 0.2rem 1rem; /* Padding to ensure no characters are clipped */
  text-align: center;
}

p.subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 400px;
  margin: 0 auto;
}

/* Contact Form */
.contact-card {
  max-width: 500px; /* Keep the card narrower than the container */
  margin: 0 auto;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 0.8s 0.4s forwards;
}

.contact-card h2 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.form-group {
  margin-bottom: 1.25rem;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

input, textarea {
  width: 100%;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

textarea {
  resize: vertical;
  min-height: 100px;
}

.btn {
  width: 100%;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition-normal);
  background: var(--text-primary);
  color: var(--bg-primary);
  border: none;
  margin-top: 0.5rem;
}

.btn:hover {
  background: #e4e4e7;
  transform: translateY(-2px);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.footer {
  margin-top: 3rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  opacity: 0;
  transform: translateY(10px);
  animation: fadeIn 0.8s 0.6s forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Spinner */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-top-color: var(--bg-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: none;
  margin: 0 auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.btn.loading .btn-text { display: none; }
.btn.loading .spinner { display: block; }

/* Status Messages */
.status {
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: 6px;
  font-size: 0.875rem;
  display: none;
}

.status.success {
  display: block;
  background: rgba(34, 197, 94, 0.1);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.status.error {
  display: block;
  background: rgba(239, 68, 68, 0.1);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.2);
}
