/* ========================================
   TECHSPLOIT MAIN STYLESHEET (LIGHT MODE, FIXED PARTICLES & TERMINAL INTERACTIVITY)
   ======================================== */

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

/* Base Reset */
html, body {
  margin: 0;
  padding: 0;
  font-family: 'Space Grotesk', sans-serif;
  color: #1a1a1a;
  background: transparent; /* ✅ make body transparent so particles show */
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto; /* ✅ allow scrolling */
}

/* Background layer (light gradient behind particles) */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f5f7fa 0%, #e6ecf1 100%);
  z-index: -3; /* ✅ very bottom */
}

/* Links */
a {
  color: #0078ff;
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: #ff4ecd;
}

/* Sidebar */
.sidebar {
  width: 240px;
  background: linear-gradient(180deg, #101418 0%, #1b1f25 100%);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20; /* ✅ top layer for nav */
  border-right: 1px solid #2c3239;
}

.logo img {
  width: 185px;
  height: auto;
  display: block;
  margin-bottom: 2rem;
  transition: transform 0.2s ease;
}
.logo img:hover {
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.nav-links a {
  color: #cfd8e3;
  font-size: 0.95rem;
  letter-spacing: 0.2px;
}
.nav-links a:hover {
  color: #0dcaf0;
}

/* Page Wrapper */
.page {
  margin-left: 240px;
  width: calc(100% - 240px);
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  background: transparent;
  z-index: 1;
}

/* Particles.js Background */
#particles-js {
  position: fixed;
  top: 0;
  left: 240px; /* same as sidebar width */
  width: calc(100% - 240px);
  height: 100%;
  background: transparent;
  z-index: 0; /* sits below terminal and content */
  pointer-events: auto; /* ensures terminal interactivity */
}

/* Main Content */
.main-content {
  position: relative;
  z-index: 1; 
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4rem 2rem;
  pointer-events: none !important;
}

#terminal-bar {
  width: 100%;
  max-width: 900px;
  min-height: 600px;
  height: 65vh;
  background: #000;
  color: #0dcaf0;
  border-radius: 8px;
  overflow: auto;
  display: block;
  margin: 0 auto 2rem auto;
  position: relative;
  z-index: 2; /* above particles */
  pointer-events: auto !important;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* jQuery Terminal */
.terminal {
  font-family: 'Fira Mono', monospace;
  font-size: 14px;
  height: 100%;
  color: #0dcaf0;
  background: #000;
}

/* Make everything inside terminal selectable */
#terminal-bar .terminal * {
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
  user-select: text !important;
}

/* Content Box (used on Services + Contact) */
.content-box {
  background: #ffffff;
  border: 1px solid #dde1e5;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.05);
  padding: 2.5rem;
  max-width: 900px;
  width: 100%;
  color: #111;
  z-index: 3;
  pointer-events: auto;
}

/* Sections */
section {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid #e0e6eb;
}

section h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #0b2239;
}

section h3 {
  color: #0078ff;
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
}

/* Lists */
section ul {
  list-style: none;
  padding-left: 0;
  margin: 1rem 0;
}
section ul li {
  margin-bottom: 0.5rem;
  color: #333;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  border-radius: 6px;
  background: linear-gradient(90deg, #0dcaf0, #0078ff);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.1s ease;
}
.btn:hover {
  background: linear-gradient(90deg, #00b8ff, #ff4ecd);
  transform: translateY(-1px);
}

/* Footer */
.site-footer {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(180deg, #101418 0%, #1b1f25 100%);
  color: #cfd8e3;
  font-size: 0.85rem;
  text-align: center;
  border-top: 1px solid #2c3239;
  position: relative;
  z-index: 8;
}

.site-footer a {
  color: #0dcaf0;
}

.site-footer a:hover {
  color: #66e3ff;
}

/* Responsive */
@media (max-width: 1024px) {
  .sidebar { width: 200px; }
  .page {
    margin-left: 200px;
    width: calc(100% - 200px);
  }
}

@media (max-width: 768px) {
  .sidebar {
    width: 100%;
    height: auto;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    position: fixed;
    top: 0;
    left: 0;
    border-bottom: 1px solid #2c3239;
    border-right: none;
    z-index: 20;
  }

  .logo img {
    width: 120px;
    margin-bottom: 0;
  }

  .nav-links {
    flex-direction: row;
    gap: 1rem;
  }

  .page {
    margin-left: 0;
    margin-top: 80px;
    width: 100%;
  }

  .main-content {
    padding: 2rem 1.25rem;
  }

  .content-box {
    padding: 2rem 1.25rem;
    border-radius: 8px;
  }
}

/* ====== Terminal Section Spacing Fix ====== */
.terminal-section {
  background: #f3f3f3;
  margin: 0;                   /* no outside gaps */
  padding: 2.5rem 1rem;        /* reduced vertical padding */
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Match spacing above and below terminal */
#terminal-bar {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

/* ====== Mobile Hero Gap Fix ====== */
@media (max-width: 768px) {
  .hero {
    margin-top: 0;   
  }

  .page {
    margin-top: 72px;  
  }

  .hero {
    height: 320px;
  }
}