/* 1. Variables and Global Reset */
:root {
  --accent-blue: #5cc8ff;       /* Primary accent */
  --accent-red: #c0392b;        /* Vibrant red accent */
  --accent-darkred: #8e260e;    /* Deep red for hover/active states */
  --card: #111936;
  --muted: #a9b5d1;
  --text: #e9eefc;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(0,0,0,0.25);
}

* { 
  box-sizing: border-box; 
}

html, body { 
  height: 100%; 
  margin: 0; 
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
  background: linear-gradient(180deg, #0a0f24 0%, #0e1534 100%); 
  color: var(--text); 
  line-height: 1.6;
}

a { 
  color: var(--accent-blue); 
  text-decoration: none; 
  transition: 0.3s;
}

a:hover { 
  text-decoration: underline; 
}

.container { 
  max-width: 1100px; 
  margin: 0 auto; 
  padding: 24px; 
}

/* 2. Header and Navigation */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 15, 36, 0.8); /* Semi-transparent background */
  
  /* FIXED CODE BELOW */
  backdrop-filter: blur(8px);         /* Standard property */
  -webkit-backdrop-filter: blur(8px); /* Required for Safari on iPhone/iPad */
  
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  padding: 16px 24px; 
}

.brand { 
  display: flex; 
  align-items: center; 
  gap: 12px; 
}

.brand-logo { 
  width: 36px; 
  height: 36px; 
  border-radius: 12px; 
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-red)); 
  box-shadow: var(--shadow); 
}

.brand-title { 
  font-weight: 800; 
  font-size: 1.2rem;
  letter-spacing: 0.3px; 
}

.nav a.btn { 
  margin-left: 10px; 
}

/* 3. Hero Section */
.hero { 
  padding: 80px 24px; 
  text-align: center; 
}

.hero h1 { 
  font-size: clamp(28px, 5vw, 48px); 
  margin: 0.2em 0 0.4em; 
  color: #fff;
}

.hero p { 
  color: var(--muted); 
  max-width: 800px; 
  margin: 0 auto 32px; 
  font-size: 1.1rem;
}

/* 4. Buttons */
.btn {
  display: inline-block; 
  padding: 12px 24px; 
  border-radius: 12px;
  font-weight: 600;
  transition: 0.3s;
  border: 1px solid rgba(255,255,255,0.12); 
  cursor: pointer;
  text-align: center;
}

.btn-primary { 
  background: var(--accent-blue); 
  color: #02111b; 
  border: none; 
}

.btn-primary:hover {
  background: #4bb5eb;
  transform: translateY(-2px);
}

.btn-outline { 
  background: transparent; 
  color: var(--text); 
}

.btn-danger { 
  background: var(--accent-red); 
  color: #fff; 
  border: none; 
}

.btn-danger:hover { 
  background: var(--accent-darkred); 
  transform: translateY(-2px);
}

/* 5. Grid and Cards */
.grid { 
  display: grid; 
  gap: 24px; 
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
}

.card {
  background: var(--card); 
  border: 1px solid rgba(255,255,255,0.08); 
  border-radius: var(--radius);
  padding: 24px; 
  box-shadow: var(--shadow);
  transition: 0.3s;
}

.card:hover {
  border-color: var(--accent-blue);
  transform: translateY(-5px);
}

.card h3 { 
  margin: 0 0 12px; 
  color: var(--accent-blue);
}

/* 6. About Box (The fix for "White Table" issue) */
.about-box {
  background: var(--card); 
  padding: 32px; 
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.1);
  border-left: 6px solid var(--accent-blue);
  margin: 24px 0;
  text-align: left;
}

.about-box h2 {
  color: var(--accent-blue);
  margin-top: 0;
}

.about-box p {
  color: var(--text);
  margin-bottom: 16px;
}

/* 7. Forms and Tables */
.form {
  background: var(--card); 
  padding: 32px; 
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.08); 
  box-shadow: var(--shadow);
  max-width: 560px; 
  margin: 24px auto;
}

label { 
  display: block; 
  margin: 12px 0 6px; 
  font-weight: 600; 
}

input, select, textarea {
  width: 100%; 
  padding: 12px; 
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.15); 
  background: #0b132b; 
  color: var(--text);
  outline: none;
}

input:focus {
  border-color: var(--accent-blue);
}

.table {
  width: 100%; 
  border-collapse: collapse; 
  background: var(--card); 
  border-radius: 16px;
  overflow: hidden; 
  border: 1px solid rgba(255,255,255,0.08);
}

.table th, .table td { 
  padding: 16px; 
  border-bottom: 1px solid rgba(255,255,255,0.08); 
  text-align: left; 
}

/* 8. Miscellaneous */
.section { 
  padding: 48px 0; 
}

footer { 
  padding: 48px 24px; 
  color: var(--muted); 
  text-align: center; 
  border-top: 1px solid rgba(255,255,255,0.08); 
}

.badge { 
  display: inline-block; 
  padding: 6px 16px; 
  border-radius: 999px; 
  background: rgba(92,200,255,0.1); 
  color: var(--accent-blue); 
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.actions { 
  display: flex; 
  gap: 16px; 
  flex-wrap: wrap; 
  justify-content: center;
  margin-top: 24px; 
}

/* 9. Mobile Responsiveness */
@media (max-width: 700px) {
  .nav {
    flex-direction: column;
    gap: 16px;
  }
  .nav .right { 
    display: flex; 
    gap: 8px; 
    flex-wrap: wrap; 
    justify-content: center; 
  }
  .hero {
    padding: 40px 16px;
  }
}