:root {
  --bg: #0b1220;
  --surface: #111a2e;
  --surface-soft: #16213d;
  --text: #e5e7eb;
  --text-muted: #9ca3af;
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --border: #1f2a44;
  --radius: 14px;
  --shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  --font: "Inter", system-ui, sans-serif;
}

/* Base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font);
  background: linear-gradient(180deg, #0b1220, #060a14);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1100px, 92%);
  margin-inline: auto;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(11, 18, 32, 0.85);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  cursor: pointer;
}

.brand-icon {
  color: var(--primary);
  transition: transform 0.25s ease, color 0.25s ease;
}

.brand:hover .brand-icon {
  transform: rotate(-8deg) scale(1.1);
  color: #60a5fa;
}

/* Navigation */
.nav-link {
  font-weight: 500;
  opacity: 0.85;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.25s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Contact Section */
.contact {
  padding: 3rem 0 4rem;
}

.contact-header {
  max-width: 600px;
  margin-bottom: 3rem;
}

.contact-header h1 {
  font-size: clamp(2rem, 4vw, 2.6rem);
}

.contact-header p {
  color: var(--text-muted);
}

/* Layout */
.contact-layout {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
  }
}

/* Card */
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55);
}

.card-intro {
  color: var(--text-muted);
  margin-bottom: 1.6rem;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-list li {
  display: flex;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border);
}

.contact-list li:last-child {
  border-bottom: none;
}

.contact-list i {
  color: var(--primary);
  font-size: 1.2rem;
  transition: transform 0.25s ease, color 0.25s ease;
}

.contact-list li:hover i {
  transform: translateX(4px) scale(1.1);
  color: #60a5fa;
}

.contact-list span {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: block;
}

.contact-list a {
  font-weight: 500;
  position: relative;
}

.contact-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.25s ease;
}

.contact-list a:hover::after {
  width: 100%;
}

.privacy-note {
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Form */
.contact-form {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.contact-form:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55);
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.2rem;
}

label {
  font-size: 0.85rem;
  margin-bottom: 0.3rem;
  color: var(--text-muted);
}

input,
textarea {
  background: #0b1220;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
  color: var(--text);
  font-family: inherit;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

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

/* Buttons */
.form-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.btn-primary,
.btn-secondary {
  padding: 0.7rem 1.3rem;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border: none;
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  border: 1px solid var(--border);
  font-weight: 500;
}

.btn-secondary:hover {
  transform: translateY(-1px);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

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

.footer-links a {
  position: relative;
}

.footer-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.25s ease;
}

.footer-links a:hover::after {
  width: 100%;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
