/* =========================
   Techneog — base.css (clean, simplified)
   - header buttons: .header-btn
   - page / CTA buttons: .page-btn (also .primary-btn supported)
   - mobile nav shows when body.nav-open
   - background covers full page (no 250vh cutoff)
   - responsive and accessible
   ========================= */

/* -------------------------
   Variables
   ------------------------- */
:root{
  --techneog-blue: #19d3ff;
  --techneog-blue-glow: rgba(25,211,255,0.60);
  --bg-very-dark: #060c12;
  --bg-mid-dark: #0a1018;
  --panel: rgba(18,24,33,0.85);
  --text-primary: #e6f1ff;
  --text-muted: #9fb3c8;

  --header-height: 78px;
  --logo-height: 64px;
  --page-gutter: 40px;

  --ease-fast: 180ms;
  --ease-base: 220ms;
  --radius-lg: 16px;
  --radius-pill: 28px;
}

/* Light theme overrides */
:root[data-theme="light"]{
  --bg-very-dark: #f6fbfd;
  --bg-mid-dark: #f1f5f9;
  --panel: rgba(255,255,255,0.96);
  --text-primary: #0b1220;
  --text-muted: #556270;
  --techneog-blue-glow: rgba(25,211,255,0.22);
}

/* -------------------------
   Reset / base
   ------------------------- */
*{ box-sizing: border-box; margin:0; padding:0; }
html,body{ height:100%; font-family: Georgia, 'Times New Roman', serif; }
body {
  /* single radial + subtle linear overlay, fixed so it covers any page height */
  background:
    radial-gradient(
      circle farthest-corner at 50% -20%,
      rgba(25,211,255,0.08) 0%,
      rgba(10,16,24,1) 50%,
      var(--bg-very-dark) 100%
    ),
    linear-gradient(180deg, rgba(6,12,18,0.18), rgba(6,12,18,0.04));
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  color: var(--text-primary);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

/* Light theme body */
:root[data-theme="light"] body{
  background:
    radial-gradient(
      circle farthest-corner at 50% -20%,
      rgba(25,211,255,0.12) 0%,
      #eef4f8 50%,
      #f8fbff 100%
    ),
    linear-gradient(180deg, rgba(255,255,255,0.9), rgba(248,251,255,0.98));
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  color: var(--text-primary);
}

/* -------------------------
   Header
   ------------------------- */
header{
  position:fixed;
  top:0; left:0; right:0;
  height:var(--header-height);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px calc(var(--page-gutter)/2);
  background: rgba(0,0,0,0.28);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(25,211,255,0.06);
  z-index:9999;
}
:root[data-theme="light"] header{
  background: rgba(255,255,255,0.92);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  backdrop-filter: none;
}

header .brand img{ height:var(--logo-height); width:auto; display:block; }

/* Navigation layout */
nav{ display:flex; align-items:center; gap:12px; }
nav ul{ display:flex; gap:14px; align-items:center; list-style:none; padding:0; margin:0; }

/* mobile menu toggle - shown via media queries (see below) */
#menuToggle{
  display:none;
  background:transparent;
  border:1px solid rgba(255,255,255,0.06);
  color:var(--text-primary);
  padding:8px 10px;
  border-radius:8px;
  cursor:pointer;
}

/* -------------------------
   Buttons (clean, two styles)
   - header-btn: slim outlined pill (used in header)
   - page-btn / primary-btn: primary CTAs
   ------------------------- */

/* shared button baseline */
.header-btn,
.page-btn,
.primary-btn,
button,
a.button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  text-decoration:none;
  font-weight:600;
  font-size:0.95rem;
  cursor:pointer;
  transition: transform var(--ease-fast) ease, box-shadow var(--ease-fast) ease, background var(--ease-fast) ease;
  border-radius:var(--radius-pill);
  border:none;
  line-height:1;
}

/* header-btn - thin outline pill (matches header look) */
.header-btn{
  padding:8px 16px;
  background:transparent;
  color:var(--techneog-blue);
  border:2px solid rgba(25,211,255,0.12);
  box-shadow:none;
  backdrop-filter: blur(2px);
  letter-spacing:0.6px;
}
.header-btn:hover,
.header-btn:focus{
  background:var(--techneog-blue);
  color:#000;
  box-shadow:0 10px 40px var(--techneog-blue-glow);
  transform:translateY(-4px);
  outline:none;
}

/* page-btn / primary-btn - outlined default, fills on hover */
.page-btn,
.primary-btn{
  padding:10px 26px;
  background:transparent;
  color:var(--techneog-blue);
  border:2px solid var(--techneog-blue);
  box-shadow:none;
  letter-spacing:1px;
  transition: background var(--ease-fast) ease,
              color var(--ease-fast) ease,
              transform var(--ease-fast) ease,
              box-shadow var(--ease-fast) ease;
}

/* hover = solid blue */
.page-btn:hover,
.page-btn:focus,
.primary-btn:hover,
.primary-btn:focus{
  background:var(--techneog-blue);
  color:#000;
  box-shadow:0 16px 60px var(--techneog-blue-glow);
  transform:translateY(-6px) scale(1.02);
  outline:none;
}

/* small variant */
.page-btn.small{
  padding:8px 18px;
  font-size:0.92rem;
}

/* accessibility focus */
:focus-visible{
  outline:3px solid rgba(25,211,255,0.18);
  outline-offset:3px;
  border-radius:10px;
}

/* -------------------------
   Layout: main offset under fixed header
   ------------------------- */
main{
  flex:1;
  padding-top: calc(var(--header-height) + 18px);
  min-height: calc(100vh - var(--header-height));
}

/* -------------------------
   Hero
   ------------------------- */
.hero{
  min-height: calc(60vh - var(--header-height));
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:28px 20px;
}
.hero h1{
  font-size:4rem;
  color:var(--techneog-blue);
  text-shadow:0 0 24px var(--techneog-blue-glow);
  letter-spacing:6px;
}
.hero p{
  max-width:760px;
  color:var(--text-muted);
  margin-top:12px;
  font-size:1.05rem;
}
.hero-buttons{ margin-top:18px; display:flex; gap:16px; align-items:center; justify-content:center; }

/* -------------------------
   Services preview (grid)
   ------------------------- */
.services-preview{ padding:56px calc(var(--page-gutter)/1.2); text-align:center; }
.services-preview h2{
  color:var(--techneog-blue);
  font-size:2.2rem;
  margin-bottom:28px;
  letter-spacing:2px;
  text-shadow:0 0 12px var(--techneog-blue-glow);
}
.services-grid{
  max-width:1100px;
  margin:0 auto;
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap:28px;
  align-items:stretch;
}

/* Card styles (kept simple) */
.service-card,
.package-card{
  background: var(--panel);
  border-radius: var(--radius-lg);
  padding:26px;
  border:1px solid rgba(25,211,255,0.08);
  text-align:center;
  transition: transform var(--ease-base) ease, box-shadow var(--ease-base) ease, border-color var(--ease-base) ease;
}
.service-card h3{ color:var(--techneog-blue); margin-bottom:10px; letter-spacing:1px; }
.service-card p{ color:var(--text-muted); line-height:1.6; margin-bottom:16px; }
.service-card:hover{
  transform:translateY(-8px);
  box-shadow:0 18px 48px rgba(0,0,0,0.5), 0 0 34px var(--techneog-blue-glow);
  border-color: rgba(25,211,255,0.18);
}

/* -------------------------
   Contact / footer
   ------------------------- */
.site-footer{
  margin-top:auto;
  padding:20px 14px;
  text-align:center;
  border-top:1px solid rgba(25,211,255,0.06);
  background: linear-gradient(180deg, rgba(0,0,0,0.03), transparent);
}
.site-footer p{ color:var(--text-muted); font-size:0.92rem; margin-bottom:12px; }
.social-links{ display:flex; gap:12px; justify-content:center; align-items:center; }
.social-links a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:40px; height:40px;
  border-radius:50%;
  border:1px solid rgba(25,211,255,0.08);
  color:var(--text-primary);
  transition: transform var(--ease-fast) ease, box-shadow var(--ease-fast) ease, background var(--ease-fast) ease;
}
.social-links a:hover{ background:var(--techneog-blue); color:#000; box-shadow:0 10px 30px var(--techneog-blue-glow); transform:translateY(-4px); }

/* -------------------------
   Forms / inputs (simple)
   ------------------------- */
input,textarea,select{
  background: rgba(11,15,20,0.9);
  color:var(--text-primary);
  border:1px solid rgba(25,211,255,0.10);
  padding:10px 12px;
  border-radius:8px;
  font-size:1rem;
  width:100%;
  box-sizing:border-box;
}
:root[data-theme="light"] input,
:root[data-theme="light"] textarea,
:root[data-theme="light"] select{
  background:#fff;
  color:var(--text-primary);
  border:1px solid rgba(0,0,0,0.08);
}

/* Form labels and placeholders - ensure legibility */
label{
  color:var(--text-primary);
  display:block;
  margin-bottom:6px;
  font-weight:600;
}
input::placeholder,
textarea::placeholder {
  color:var(--text-muted);
}

/* Contact form specific spacing and helpers */
.contact-form, .contact-form-section {
  max-width:720px;
  margin:0 auto;
  padding:18px;
}
.contact-form .form-group,
.contact-form-section .form-group{
  margin-bottom:20px;
}
.contact-form textarea{ min-height:140px; resize:vertical; }

/* -------------------------
   Utility / responsiveness
   ------------------------- */
.hidden{ display:none !important; }

/* Mobile navigation: hide by default (js toggles body.nav-open) */
@media (max-width:920px){
  #menuToggle{ display:inline-flex; }
  nav ul{ display:none; } /* mobile menu expected in js to show */
  :root{ --page-gutter:24px; --logo-height:56px; }
  .hero h1{ font-size:3.2rem; }
}

/* When mobile menu is opened (via JS setting body.nav-open) */
@media (max-width:920px){
  body.nav-open nav ul{
    display:flex;
    position:fixed;
    top:var(--header-height);
    right:16px;
    width:calc(100% - 32px);
    max-width:420px;
    background: rgba(8,12,16,0.98);
    padding:18px;
    border-radius:12px;
    flex-direction:column;
    gap:14px;
    z-index:9999;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  }

  body.nav-open nav ul li{
    width:100%;
  }

  body.nav-open nav ul .header-btn{
    width:100%;
    justify-content:center;
  }
}

/* small screen tweaks */
@media (max-width:520px){
  .hero{ padding:20px; }
  .service-card{ padding:18px; }
  .hero h1{ font-size:2.6rem; }
  .page-btn{ padding:8px 18px; }
  .header-btn{ padding:6px 12px; }
  .services-preview{ padding:32px 18px; }
  .contact-form, .contact-form-section { padding:14px; }
  .contact-form .form-group { margin-bottom:18px; }
}

/* =========================
   Custom Scrollbar
   ========================= */

/* Chrome, Edge, Safari */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #050b12;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(
    180deg,
    rgba(25,211,255,0.9),
    rgba(25,211,255,0.6)
  );
  border-radius: 10px;
  border: 2px solid #050b12;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--techneog-blue);
}
:root[data-theme="light"] ::-webkit-scrollbar-track {
  background: #e6edf3;
}

:root[data-theme="light"] ::-webkit-scrollbar-thumb {
  background: linear-gradient(
    180deg,
    rgba(25,211,255,0.7),
    rgba(25,211,255,0.5)
  );
  border: 2px solid #e6edf3;
}

/* Firefox */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--techneog-blue) #050b12;
}

:root[data-theme="light"] html {
  scrollbar-color: var(--techneog-blue) #e6edf3;
}
