:root {
  --bg: #0a0e27;
  --fg: #ffffff;
  --muted: #a0aec0;
  --border: #1a1f3a;
  --accent: #ef4444;
  --accent-dark: #dc2626;
  --glass-light: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  background: linear-gradient(135deg, #0a0e27 0%, #1a1530 50%, #0f0a1a 100%);
  background-attachment: fixed;
  color: var(--fg);
  line-height: 1.7;
  font-weight: 400;
  letter-spacing: 0.3px;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Layout helpers */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

/* Navigation */
.nav {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--glass-border);
}

.nav-link {
  color: var(--muted);
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--accent);
}

/* Hero */
.hero {
  padding: 7rem 3rem;
  border-radius: 2rem;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.12) 0%, rgba(30, 30, 46, 0.35) 100%);
  border: 1px solid rgba(239, 68, 68, 0.2);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 20px 60px rgba(239, 68, 68, 0.2),
              inset 0 1px 0 rgba(255, 255, 255, 0.1),
              0 0 60px rgba(239, 68, 68, 0.05);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -15%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(239, 68, 68, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(50px);
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(239, 68, 68, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(40px);
  z-index: 0;
}

.hero h1 {
  font-size: 4rem;
  margin: 0 0 1rem 0;
  letter-spacing: -0.03em;
  position: relative;
  z-index: 2;
  font-weight: 700;
  background: linear-gradient(135deg, #fff 0%, #fca5a5 50%, #fecaca 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.25rem;
  color: #cbd5e1;
  position: relative;
  z-index: 2;
  margin: 0;
  font-weight: 300;
  line-height: 1.6;
}

/* Sections */
section {
  margin-bottom: 5rem;
}

h2 {
  font-size: 2rem;
  margin: 0 0 1.5rem 0;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* Table */
.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 0.75rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.table th {
  color: var(--muted);
  font-weight: 500;
}

/* Forms */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-label {
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--fg);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-input {
  padding: 1rem;
  background: linear-gradient(135deg, rgba(30, 30, 50, 0.4) 0%, rgba(20, 20, 40, 0.2) 100%);
  border: 1px solid rgba(239, 68, 68, 0.15);
  border-radius: 0.875rem;
  font-family: inherit;
  font-size: 0.975rem;
  color: var(--fg);
  transition: all 0.3s ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  letter-spacing: 0.3px;
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.form-input:focus {
  outline: none;
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(239, 68, 68, 0.03) 100%);
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12), inset 0 1px 2px rgba(239, 68, 68, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.submit-btn {
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: white;
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: 0.875rem;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 8px 20px rgba(239, 68, 68, 0.35),
              0 0 0 0 rgba(239, 68, 68, 0.2),
              inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.submit-btn:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(239, 68, 68, 0.45),
              0 0 30px rgba(239, 68, 68, 0.2),
              inset 0 1px 0 rgba(255, 255, 255, 0.2);
  background: linear-gradient(135deg, var(--accent-dark) 0%, #b91c1c 100%);
}

.submit-btn:active:not(:disabled) {
  transform: translateY(-1px);
}

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

.spinner {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  margin-right: 0.5rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

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

.form-status {
  padding: 1rem;
  border-radius: 0.5rem;
  margin-top: 1rem;
  display: none;
  font-size: 0.95rem;
}

.form-status.success {
  background: rgba(34, 197, 94, 0.1);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.form-status.error {
  background: rgba(239, 68, 68, 0.1);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.card {
  background: var(--glass-light) !important;
  border: 1px solid var(--glass-border) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
}

/* Sections */
.glass-section {
  background: linear-gradient(135deg, rgba(20, 20, 40, 0.3) 0%, rgba(15, 15, 30, 0.2) 100%);
  border: 1px solid rgba(239, 68, 68, 0.15);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: 0 20px 60px rgba(239, 68, 68, 0.08),
              inset 0 1px 0 rgba(255, 255, 255, 0.06);
  border-radius: 2rem;
}

.glass-card {
  background: linear-gradient(135deg, rgba(30, 30, 46, 0.4) 0%, rgba(20, 20, 35, 0.2) 100%);
  border: 1px solid rgba(239, 68, 68, 0.15);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 1.5rem;
  padding: 2rem;
  transition: all 0.4s ease;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.glass-card:hover {
  background: linear-gradient(135deg, rgba(30, 30, 46, 0.6) 0%, rgba(20, 20, 35, 0.35) 100%);
  border-color: rgba(239, 68, 68, 0.35);
  box-shadow: 0 16px 48px rgba(239, 68, 68, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

h2 {
  background: linear-gradient(135deg, #fff 0%, #fecaca 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Footer */
.footer {
  border-top: 1px solid var(--glass-border);
  padding: 2rem 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  /* Layout */
  .container {
    padding: 2rem 1rem;
    max-width: 100%;
  }

  /* Hero */
  .hero {
    padding: 4rem 1.5rem;
    border-radius: 1.25rem;
    margin-bottom: 2rem;
  }

  .hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
  }

  .hero p {
    font-size: 1rem;
    line-height: 1.5;
  }

  .hero::before {
    width: 300px;
    height: 300px;
    top: -30%;
    right: -20%;
  }

  .hero::after {
    width: 250px;
    height: 250px;
    bottom: -15%;
  }

  /* Sections */
  section {
    margin-bottom: 3rem;
  }

  h2 {
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
  }

  /* Grid to flex for better mobile wrapping */
  div[style*="display: grid"] {
    display: flex !important;
    flex-direction: column !important;
  }

  /* Asset section adjustments */
  div[style*="max-width: 900px"],
  div[style*="max-width: 1000px"] {
    max-width: 100% !important;
    padding: 0 !important;
  }

  /* Glass section - specific fix for contact form */
  .glass-section {
    padding: 1.5rem 1rem !important;
    border-radius: 1.25rem !important;
    max-width: 100% !important;
  }

  .glass-section > div {
    min-height: auto !important;
    padding: 2rem 1.5rem !important;
  }

  /* Glass card adjustments */
  .glass-card {
    padding: 1.5rem;
    border-radius: 1rem;
  }

  /* Form adjustments */
  .contact-form {
    gap: 0.875rem;
  }

  .submit-btn {
    padding: 0.875rem 2rem;
    font-size: 0.85rem;
    width: 100%;
  }

  .form-input {
    padding: 0.875rem;
    font-size: 0.95rem;
  }

  .form-textarea {
    min-height: 100px;
  }

  .form-label {
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
  }

  /* Font sizing */
  body p {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  p[style*="font-size: 1.05rem"] {
    font-size: 0.95rem !important;
    margin-bottom: 1.5rem !important;
  }

  /* Navigation */
  .nav {
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem 0;
  }

  .nav-link {
    font-size: 0.9rem;
  }

  /* Text alignment */
  [style*="text-align: center"] {
    text-align: center !important;
  }

  /* Flex containers */
  div[style*="display: flex"] {
    flex-direction: column;
  }

  /* Reduce icon sizes on mobile */
  span[style*="font-size: 2rem"] {
    font-size: 1.5rem !important;
  }

  span[style*="font-size: 1.75rem"] {
    font-size: 1.25rem !important;
  }

  /* Margin/padding tweaks */
  div[style*="margin-bottom: 3.5rem"] {
    margin-bottom: 2rem !important;
  }

  div[style*="margin-bottom: 3rem"] {
    margin-bottom: 2rem !important;
  }

  div[style*="margin-bottom: 2rem"] {
    margin-bottom: 1.5rem !important;
  }

  div[style*="margin-bottom: 1.5rem"] {
    margin-bottom: 1rem !important;
  }
}

@media (max-width: 480px) {
  /* Extra small screens */
  .container {
    padding: 1.5rem 1rem;
    max-width: 100%;
  }

  .hero {
    padding: 2.5rem 1rem;
    border-radius: 1rem;
    margin-bottom: 1.5rem;
  }

  .hero h1 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
  }

  .hero p {
    font-size: 0.9rem;
    line-height: 1.4;
  }

  .hero::before,
  .hero::after {
    display: none;
  }

  h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
  }

  h3 {
    font-size: 0.95rem !important;
  }

  /* Section spacing */
  section {
    margin-bottom: 2rem;
  }

  .glass-card {
    padding: 1.25rem;
    border-radius: 0.875rem;
  }

  .glass-section {
    border-radius: 1.25rem !important;
    padding: 1rem !important;
    margin: 0 auto !important;
  }

  .glass-section > div {
    padding: 1.25rem 0.875rem !important;
  }

  /* Form */
  .contact-form {
    gap: 0.75rem;
  }

  .form-label {
    font-size: 0.8rem;
    margin-bottom: 0.35rem;
  }

  .form-input {
    padding: 0.75rem;
    font-size: 0.9rem;
    border-radius: 0.75rem;
  }

  .form-textarea {
    min-height: 80px;
    font-size: 0.9rem;
  }

  .submit-btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.8rem;
    border-radius: 0.75rem;
  }

  /* Overall font size reduction */
  body {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  p {
    font-size: 0.9rem;
  }

  p[style*="font-size: 1.05rem"] {
    font-size: 0.85rem !important;
    margin-bottom: 1.25rem !important;
    line-height: 1.5 !important;
  }

  p[style*="font-size: 1.15rem"] {
    font-size: 0.9rem !important;
  }

  /* Remove decorative elements that overflow on small screens */
  .nav {
    padding: 0.75rem 0;
  }

  .nav-link {
    font-size: 0.85rem;
    margin: 0;
  }

  /* Reduce gaps */
  div[style*="gap: 1rem"] {
    gap: 0.75rem !important;
  }

  div[style*="gap: 1.25rem"] {
    gap: 0.75rem !important;
  }

  div[style*="gap: 1.5rem"] {
    gap: 0.875rem !important;
  }

  /* Padding reductions */
  div[style*="padding: 3rem"] {
    padding: 1.5rem !important;
  }

  div[style*="padding: 2rem"] {
    padding: 1rem !important;
  }

  div[style*="padding: 1.5rem"] {
    padding: 0.875rem !important;
  }

  /* Margins */
  div[style*="margin-bottom: 3.5rem"] {
    margin-bottom: 1.5rem !important;
  }

  div[style*="margin-bottom: 3rem"] {
    margin-bottom: 1.5rem !important;
  }

  div[style*="margin-bottom: 2rem"] {
    margin-bottom: 1rem !important;
  }

  div[style*="margin-bottom: 1.5rem"] {
    margin-bottom: 0.875rem !important;
  }

  /* Max widths */
  [style*="max-width"] {
    max-width: 100% !important;
  }
}
