/* --- VARIABLES & THEME --- */
:root {
  --bg-deep: #030712; /* Deep space black/navy */
  --bg-surface: #0f172a; /* Slightly lighter navy for cards */
  --neon-cyan: #00f0ff; /* The glowing blue from the logo */
  --neon-cyan-dim: rgba(0, 240, 255, 0.15);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --metallic-gray: #475569;
  
  --font-heading: 'Orbitron', sans-serif;
  --font-body: 'Rajdhani', sans-serif;
}

/* --- RESET & BASE --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-deep);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  /* subtle grid background for tech feel */
  background-image: 
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 50px 50px;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  letter-spacing: 1px;
}

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

.highlight {
  color: var(--neon-cyan);
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

/* --- NAVIGATION --- */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.5rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(3, 7, 18, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 240, 255, 0.2);
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  padding: 1rem 5%;
  background: rgba(3, 7, 18, 0.95);
  box-shadow: 0 4px 30px rgba(0, 240, 255, 0.1);
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 2px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--neon-cyan);
}

.btn-contact {
  border: 1px solid var(--neon-cyan);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  color: var(--neon-cyan) !important;
  box-shadow: inset 0 0 10px rgba(0, 240, 255, 0.1);
}

.btn-contact:hover {
  background: var(--neon-cyan);
  color: var(--bg-deep) !important;
  box-shadow: 0 0 15px var(--neon-cyan);
}

/* --- BUTTONS --- */
.btn-primary {
  display: inline-block;
  font-family: var(--font-heading);
  background: transparent;
  color: var(--neon-cyan);
  border: 2px solid var(--neon-cyan);
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  border-radius: 0;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

.btn-primary:hover {
  background: var(--neon-cyan);
  color: var(--bg-deep);
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.6);
}

/* --- HERO SECTION --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 5% 2rem 5%;
  position: relative;
}

.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(0, 240, 255, 0.05) 0%, transparent 60%);
  z-index: -1;
}

.hero-content {
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.hero-logo-img {
  width: 900px;
  max-width: 100%;
  height: auto;
  margin-bottom: 2rem;
  filter: drop-shadow(0 0 45px rgba(0, 240, 255, 0.6));
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
}

.hero p {
  font-size: 1.4rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 1.5rem auto;
  font-weight: 500;
}

/* --- SERVICES SECTION --- */
.services {
  padding: 6rem 5%;
  background: linear-gradient(180deg, var(--bg-deep) 0%, #080c16 100%);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.5rem;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.divider {
  height: 3px;
  width: 60px;
  background: var(--neon-cyan);
  margin: 0 auto;
  box-shadow: 0 0 10px var(--neon-cyan);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(71, 85, 105, 0.4);
  padding: 2.5rem 2rem;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
  z-index: 1;
}

.service-card:hover {
  transform: translateY(-10px);
  border-color: var(--neon-cyan);
}

.card-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, var(--neon-cyan-dim) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: -1;
}

.service-card:hover .card-glow {
  opacity: 1;
}

.icon-wrapper {
  font-size: 2.5rem;
  color: var(--neon-cyan);
  margin-bottom: 1.5rem;
  text-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
}

.service-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: #fff;
}

.service-card p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* --- CONTACT MODAL --- */
.modal {
  display: none; /* Hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(3, 7, 18, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.open {
  display: flex;
  opacity: 1;
}

.close-modal {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 2.5rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.3s ease;
  z-index: 10;
}

.close-modal:hover {
  color: var(--neon-cyan);
}

.contact-card {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--neon-cyan);
  padding: 4rem 2rem;
  text-align: center;
  border-radius: 8px;
  max-width: 800px;
  width: 100%;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.1);
}

.contact-hologram {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--neon-cyan);
  box-shadow: 0 0 20px var(--neon-cyan);
}

.contact-card h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.contact-card p {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

/* --- FORM STYLES --- */
.cyber-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
}

.form-group {
  width: 100%;
}

.form-control {
  width: 100%;
  background: rgba(3, 7, 18, 0.6);
  border: 1px solid rgba(71, 85, 105, 0.5);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 1.15rem;
  padding: 1.2rem 1.5rem;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.form-control::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

.form-control:focus {
  outline: none;
  border-color: var(--neon-cyan);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
  background: rgba(3, 7, 18, 0.9);
}

select.form-control option {
  background: var(--bg-deep);
  color: var(--text-main);
}

/* --- FOOTER --- */
footer {
  background: #02040a;
  padding: 2rem 5%;
  text-align: center;
  border-top: 1px solid rgba(71, 85, 105, 0.3);
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.footer-content .logo {
  font-size: 1.2rem;
  opacity: 0.8;
}

.footer-content p {
  color: var(--metallic-gray);
  font-size: 0.9rem;
}

/* --- UTILITIES & ANIMATIONS --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  .hero p {
    font-size: 1.1rem;
  }
  .nav-links {
    display: none; /* In a full project, add a hamburger menu */
  }
}

/* --- FIREWALL AGAINST SERVER-INJECTED WATERMARKS (TURNKEY LINUX) --- */
/* Hides any element injected into the body that isn't one of our core semantic tags */
body > *:not(nav):not(section):not(footer):not(script):not(style) {
  display: none !important;
}
