:root {
  --bg-color: #050507;
  --text-color: #ffffff;
  --text-muted: #a0aab5;
  --accent-primary: #0088ff;
  --accent-secondary: #00f0ff;
  --card-bg: rgba(255, 255, 255, 0.03);
  --card-border: rgba(255, 255, 255, 0.08);
}

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

body {
  font-family: 'Montserrat', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* Twinkling Stars Background */
.stars-container {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  z-index: -1; pointer-events: none; overflow: hidden;
}

.star {
  position: absolute; background-color: #ffffff; border-radius: 50%;
  opacity: 0; animation: twinkle linear infinite;
}

@keyframes twinkle {
  0% { opacity: 0; transform: scale(0.5); }
  50% { opacity: 0.8; transform: scale(1); box-shadow: 0 0 5px #fff; }
  100% { opacity: 0; transform: scale(0.5); }
}

/* Navigation - Locked to a slim 80px height */
.navbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 5%; height: 80px; background: rgba(5, 5, 7, 0.85);
  backdrop-filter: blur(10px); position: fixed; top: 0;
  width: 100%; z-index: 1000; border-bottom: 1px solid rgba(255,255,255,0.05);
}

.logo {
  display: flex; align-items: center; height: 100%;
}

/* Uncoupled Logo Sizing - Scales large without stretching the header */
.brand-logo {
  height: 110px; /* Large mobile visual size */
  width: auto;
  margin: -15px 0; /* Uncouples logo from pushing the header taller */
  transition: all 0.3s ease;
}

@media (min-width: 768px) {
  .brand-logo {
    height: 160px; /* Massive desktop visual presence */
    margin: 10px 0 -90px 0; /* Lowers desktop logo so top edge is never cut off */
  }
}

.nav-links { display: flex; list-style: none; gap: 30px; }
.nav-links a { font-size: 0.95rem; font-weight: 500; color: var(--text-muted); transition: color 0.3s; }
.nav-links a:hover, .nav-links a.active { color: var(--accent-secondary); }
.menu-toggle { display: none; font-size: 1.5rem; cursor: pointer; }

/* Mobile Menu Fix */
@media (max-width: 768px) {
  .nav-links {
    display: none; flex-direction: column; position: absolute;
    top: 80px; right: 0; width: 100%; background: #050507; padding: 20px 0;
    text-align: center; border-bottom: 1px solid var(--card-border);
  }
  .nav-links.active { display: flex; }
  .menu-toggle { display: block; }
}

/* Main Content & Hero - Adjusted for the slim 80px header */
main { padding-top: 110px; }
@media (min-width: 768px) { main { padding-top: 140px; } }

.hero { text-align: center; padding: 40px 5% 40px; }
.hero h1 { font-size: 3.5rem; font-weight: 700; margin-bottom: 15px; }
.hero h1 span {
  background: linear-gradient(to right, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p { font-size: 1.2rem; color: var(--text-muted); max-width: 700px; margin: 0 auto; }

/* Grid & Cards */
.section { padding: 40px 5% 80px; }
.section-title { font-size: 2.2rem; font-weight: 600; margin-bottom: 20px; }
.text-center { text-align: center; }
.grid { display: grid; gap: 30px; max-width: 1200px; margin: 0 auto; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.service-card {
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: 12px; padding: 30px; transition: all 0.4s ease;
  position: relative; overflow: hidden;
}
.service-card:hover {
  transform: translateY(-5px); border-color: var(--accent-primary);
  box-shadow: 0 10px 30px rgba(0, 136, 255, 0.15);
}
.service-card h3 { font-size: 1.25rem; margin-bottom: 15px; color: #fff; display: flex; align-items: center; }
.service-card h3 i { color: var(--accent-secondary); margin-right: 10px; font-size: 1.4rem; }
.service-card p { font-size: 0.95rem; color: var(--text-muted); line-height: 1.7; }

/* Buttons & Forms */
.btn {
  display: inline-block; background: linear-gradient(to right, var(--accent-primary), var(--accent-secondary));
  color: #000; font-weight: 600; padding: 14px 32px; border-radius: 6px;
  border: none; cursor: pointer; transition: transform 0.3s, box-shadow 0.3s;
}
.btn:hover { transform: scale(1.05); box-shadow: 0 0 20px rgba(0, 240, 255, 0.4); }

.input-group { margin-bottom: 20px; text-align: left; }
.input-group label { display: block; margin-bottom: 8px; font-size: 0.9rem; color: var(--text-muted); }
.input-group input, .input-group textarea {
  width: 100%; padding: 14px; background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border); border-radius: 6px; color: #fff;
  font-family: inherit; font-size: 1rem;
}
.input-group input:focus, .input-group textarea:focus {
  outline: none; border-color: var(--accent-secondary); box-shadow: 0 0 10px rgba(0, 240, 255, 0.1);
}
.input-group textarea { min-height: 150px; resize: vertical; }

/* Footer */
footer { background: #020203; padding: 40px 5% 20px; border-top: 1px solid var(--card-border); text-align: center; }
.footer-bottom { font-size: 0.9rem; color: var(--text-muted); }
.footer-bottom a { color: var(--text-muted); transition: color 0.3s; }
.footer-bottom a:hover { color: var(--accent-primary); }