/* DESIGN SYSTEM: Tech-Lab / Clean Documentation */
:root {
  --bg-body: #f3f4f6; /* Light Grey Lab Background */
  --bg-white: #ffffff;
  --bg-dark: #0f172a; /* Deep Navy */

  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-light: #f8fafc;

  --accent: #14b8a6; /* Electric Teal */
  --accent-hover: #0d9488;

  --border: 1px solid #e2e8f0;
  --border-dark: 1px solid #1e293b;

  --font-mono: "JetBrains Mono", monospace;
  --font-sans: "Inter", sans-serif;

  --container: 1200px;
  --radius: 4px; /* Sharp corners */
}

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

/* UTILS */
a {
  text-decoration: none;
  color: inherit;
  transition: 0.2s;
}
ul {
  list-style: none;
}
img {
  width: 100%;
  display: block;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-mono);
  color: var(--bg-dark);
  font-weight: 700;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 20px;
}
h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 10px;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.narrow-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}
.section {
  padding: 100px 0;
  border-bottom: var(--border);
}
.bg-light {
  background: var(--bg-white);
}
.center-text {
  text-align: center;
  margin-bottom: 60px;
}

/* COMPONENTS */
.sec-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 10px;
  font-weight: 700;
}

.btn-console {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  background: var(--bg-dark);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: var(--radius);
  transition: 0.3s;
  border: 1px solid var(--bg-dark);
}
.btn-console:hover {
  background: var(--accent);
  color: var(--bg-dark);
}

.btn-solid {
  display: inline-block;
  padding: 15px 35px;
  background: var(--accent);
  color: white;
  font-family: var(--font-mono);
  font-weight: 700;
  border-radius: var(--radius);
  transition: 0.3s;
  text-transform: uppercase;
}
.btn-solid:hover {
  background: var(--accent-hover);
  box-shadow: 0 5px 15px rgba(20, 184, 166, 0.3);
}

/* HEADER */
.lab-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: var(--border);
  backdrop-filter: blur(10px);
  z-index: 100;
}
.h-wrap {
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--bg-dark);
  display: flex;
  gap: 2px;
}
.brand-bracket {
  color: var(--accent);
}

.lab-nav {
  display: flex;
  gap: 25px;
}
.lab-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  font-family: var(--font-mono);
}
.lab-nav a:hover {
  color: var(--bg-dark);
}
.hash {
  color: var(--accent);
  margin-right: 2px;
}

.h-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.link-contact {
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}
.lc-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 5px var(--accent);
}
.link-contact:hover {
  color: var(--accent);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--bg-dark);
}

/* MOBILE PANEL */
.mob-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100vh;
  background: var(--bg-dark);
  color: var(--text-light);
  z-index: 200;
  transform: translateX(100%);
  transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 30px;
  display: flex;
  flex-direction: column;
}
.mob-panel.active {
  transform: translateX(0);
}
.mp-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 50px;
  font-family: var(--font-mono);
  color: var(--accent);
}
#closeMob {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}
.mp-links a {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.2rem;
  margin-bottom: 20px;
  border-bottom: 1px solid #334155;
  padding-bottom: 10px;
}
.mp-highlight {
  color: var(--accent) !important;
  font-weight: 700;
  border-color: var(--accent) !important;
  margin-top: 20px;
}

/* HERO */
.hero-lab {
  padding-top: 140px;
  padding-bottom: 100px;
  min-height: 90vh;
  display: flex;
  align-items: center;
}
.hero-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-code {
  order: 2;
}
.code-window {
  background: var(--bg-dark);
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: #e2e8f0;
  line-height: 1.6;
  position: relative;
}
.cw-dots {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
  opacity: 0.5;
}
.cw-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
}
.c-comment {
  color: #64748b;
  font-style: italic;
}
.c-key {
  color: #c084fc;
}
.c-var {
  color: #38bdf8;
}
.c-func {
  color: #fcd34d;
}
.c-str {
  color: #4ade80;
}
.c-cursor {
  animation: blink 1s infinite;
  font-weight: 700;
  color: var(--accent);
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}

.hero-text {
  order: 1;
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 500px;
}
.hero-actions {
  display: flex;
  gap: 30px;
  align-items: center;
}
.stats-mini {
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  border-left: 2px solid var(--accent);
  padding-left: 15px;
}
.stats-mini strong {
  color: var(--bg-dark);
  display: block;
}

/* TICKER */
.tech-ticker {
  background: var(--bg-white);
  border-top: var(--border);
  border-bottom: var(--border);
  padding: 15px 0;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.tt-label {
  padding-left: 24px;
  font-family: var(--font-mono);
  font-weight: 700;
  margin-right: 30px;
  color: var(--accent);
}
.tt-track-wrap {
  overflow: hidden;
  flex-grow: 1;
}
.tt-track {
  white-space: nowrap;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-muted);
  animation: scroll 25s linear infinite;
}
.tt-track span {
  margin: 0 20px;
}
@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ABOUT GRID */
.section-about {
  background: var(--bg-body);
}
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}
.about-item {
  padding: 30px;
  background: var(--bg-white);
  border: var(--border);
  border-radius: var(--radius);
}
.about-item i {
  width: 30px;
  height: 30px;
  color: var(--accent);
  margin-bottom: 20px;
}
.about-item h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  font-family: var(--font-sans);
  color: var(--bg-dark);
}
.about-item p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* SERVICES LIST */
.services-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.srv-card {
  display: flex;
  gap: 40px;
  background: var(--bg-white);
  padding: 40px;
  border: var(--border);
  border-radius: var(--radius);
  transition: 0.3s;
  align-items: center;
}
.srv-card:hover {
  border-color: var(--accent);
  transform: translateX(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}
.active-border {
  border-left: 4px solid var(--accent);
}
.srv-num {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  color: var(--text-muted);
  opacity: 0.3;
  width: 120px;
  flex-shrink: 0;
}
.srv-content {
  flex-grow: 1;
}
.srv-content h3 {
  margin-bottom: 10px;
  font-family: var(--font-mono);
}
.srv-desc {
  color: var(--text-muted);
  margin-bottom: 20px;
  max-width: 600px;
}
.srv-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.srv-tags li {
  font-size: 0.8rem;
  background: var(--bg-body);
  padding: 5px 10px;
  border-radius: 4px;
  font-family: var(--font-mono);
  color: var(--text-main);
}
.btn-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-body);
  border-radius: 50%;
  color: var(--text-main);
  transition: 0.3s;
}
.srv-card:hover .btn-icon {
  background: var(--accent);
  color: white;
}

/* BLOG GRID */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.post-card {
  background: var(--bg-white);
  border: var(--border);
  padding: 30px;
  border-radius: var(--radius);
  transition: 0.3s;
}
.post-card:hover {
  border-color: var(--text-main);
}
.pc-date {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 15px;
}
.post-card h4 {
  font-family: var(--font-sans);
  font-size: 1.2rem;
  margin-bottom: 10px;
  font-weight: 700;
}
.post-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.pc-link {
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: underline;
  color: var(--bg-dark);
}

/* FAQ */
.lab-accordion {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.ac-item {
  background: var(--bg-white);
  border: var(--border);
  border-radius: var(--radius);
}
.ac-trigger {
  width: 100%;
  text-align: left;
  padding: 20px 30px;
  background: none;
  border: none;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ac-trigger i {
  transition: 0.3s;
}
.ac-trigger.active i {
  transform: rotate(180deg);
  color: var(--accent);
}
.ac-panel {
  max-height: 0;
  overflow: hidden;
  transition: 0.3s;
  padding: 0 30px;
}
.ac-panel p {
  padding-bottom: 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* CONTACT FORM */
.section-contact {
  background: var(--bg-white);
}
.contact-box {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
}
.cb-left h2 {
  margin-bottom: 20px;
}
.cb-desc {
  color: var(--text-muted);
  margin-bottom: 40px;
}
.cb-list li {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  align-items: start;
}
.cb-list i {
  color: var(--accent);
  width: 20px;
  margin-top: 3px;
}
.cb-list span {
  font-size: 0.95rem;
  color: var(--text-main);
}

.tech-form {
  background: var(--bg-body);
  padding: 40px;
  border-radius: 8px;
  border: var(--border);
}
.tf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.tf-group {
  margin-bottom: 20px;
}
.tf-group label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  margin-bottom: 8px;
  color: var(--text-muted);
}
.tf-group input,
.tf-group select,
.tf-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  background: white;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--bg-dark);
  transition: 0.3s;
}
.tf-group input:focus,
.tf-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.tf-check {
  display: flex;
  gap: 10px;
  font-size: 0.85rem;
  margin-bottom: 25px;
  color: var(--text-muted);
}
.tf-check a {
  text-decoration: underline;
}

.btn-submit-tech {
  width: 100%;
  padding: 15px;
  background: var(--bg-dark);
  color: var(--accent);
  border: none;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-weight: 700;
  cursor: pointer;
  transition: 0.3s;
}
.btn-submit-tech:hover {
  background: var(--accent);
  color: var(--bg-dark);
}

/* FOOTER */
.lab-footer {
  background: var(--bg-dark);
  color: var(--text-light);
  padding: 80px 0 0;
  border-top: 4px solid var(--accent);
}
.footer-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr 1.3fr;
  gap: 40px;
  margin-bottom: 60px;
}
.brand-sm {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: white;
}
.fl-brand p {
  color: #94a3b8;
  font-size: 0.9rem;
  margin-bottom: 20px;
}
.fl-social a {
  margin-right: 15px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
}

.fl-links h5,
.fl-legal h5,
.fl-contact h5 {
  color: #94a3b8;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  margin-bottom: 20px;
}
.fl-links a,
.fl-legal a {
  display: block;
  color: #cbd5e1;
  font-size: 0.9rem;
  margin-bottom: 10px;
  transition: 0.2s;
}
.fl-links a:hover,
.fl-legal a:hover {
  color: var(--accent);
  padding-left: 5px;
}

.fl-contact p {
  color: #cbd5e1;
  font-size: 0.9rem;
  margin-bottom: 8px;
}
.hl-link {
  color: var(--accent);
  display: block;
  margin-top: 10px;
}

.footer-copy {
  background: #020617;
  text-align: center;
  padding: 20px 0;
  color: #475569;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

/* COOKIE */
.cookie-tech {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 320px;
  background: var(--bg-white);
  border: 1px solid var(--accent);
  padding: 20px;
  display: none;
  flex-direction: column;
  gap: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  z-index: 500;
  border-radius: 8px;
}
.ct-icon {
  font-size: 1.5rem;
  color: var(--accent);
}
.ct-text {
  font-size: 0.9rem;
  color: var(--text-main);
}
#acceptCookie {
  background: var(--bg-dark);
  color: var(--accent);
  border: none;
  padding: 10px;
  font-family: var(--font-mono);
  font-weight: 700;
  cursor: pointer;
  border-radius: 4px;
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .lab-nav,
  .h-right .link-contact,
  .h-right .btn-console {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
  .hero-layout,
  .about-grid,
  .contact-box,
  .footer-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-code {
    order: -1;
  }
  .srv-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .h1 {
    font-size: 2.5rem;
  }
  .tech-ticker {
    flex-direction: column;
    align-items: flex-start;
  }
  .tt-label {
    margin-bottom: 10px;
    padding-left: 24px;
  }
}

.pages {
  padding: 120px 0;
}

.pages-wrap {
  max-width: 1000px;
  padding: 0 20px;
  margin: 0 auto 20px;
}

.pages h1 {
  font-size: 40px;
  font-weight: 900;
  color: var(--accent);
  margin-bottom: 40px;
  text-align: center;
}

.text-wrapper {
  background: #f8fafc;
  padding: 50px 40px;
  border-radius: 20px;
  line-height: 1.8;
}

.text-wrapper h2 {
  font-size: 28px;
  font-weight: 700;
  color: #1e293b;
  margin-top: 40px;
  margin-bottom: 15px;
  border-bottom: 2px solid rgba(99, 102, 241, 0.2);
  padding-bottom: 5px;
}

.text-wrapper h3 {
  color: #000000;
  margin-bottom: 20px;
}

.text-wrapper p {
  color: #64748b;
  margin-bottom: 20px;
}

.text-wrapper ul {
  list-style-type: none;
  padding-left: 0;
  margin-bottom: 20px;
}

.text-wrapper ul li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 15px;
  color: #1e293b;
}

.text-wrapper ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  font-size: 20px;
  line-height: 1;
  color: var(--primary);
  top: 0;
}

.text-wrapper strong {
  color: var(--color-error);
}

.text-wrapper a {
  color: #001eff;
  text-decoration: underline;
  font-weight: 600;
}

.text-wrapper ol {
  display: flex;
  flex-direction: column;
  padding: 20px;
  color: #000000;
}

.margin {
  margin: 120px 0 50px;
  font-size: 40px;
}

@media (max-width: 768px) {
  .pages {
    padding: 100px 0 60px;
  }
  .pages h1 {
    font-size: 22px;
    margin-bottom: 30px;
  }
  h3 {
    font-size: 18px;
  }
  .text-wrapper {
    padding: 30px 20px;
  }
  .text-wrapper h2 {
    font-size: 24px;
    margin-top: 30px;
  }
  .margin {
    margin: 80px 0 30px;
    font-size: 28px;
  }
}

/* --- CONTACT PAGE SPECIFIC STYLES --- */
.contact-page-main {
  padding-top: 180px;
  padding-bottom: 120px;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cp-title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 400;
  letter-spacing: -2px;
  color: var(--accent);
  margin-bottom: 30px;
  line-height: 1;
}

.cp-divider {
  width: 60px;
  height: 1px;
  background-color: var(--accent);
  margin: 0 auto 40px auto;
}

.cp-status {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--text-muted);
  border: 1px solid var(--line);
  display: inline-block;
  padding: 10px 20px;
  margin-bottom: 60px;
  background: #fcfcfc;
}

.cp-details {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.cp-label {
  font-family: var(--font-sans);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 2px;
  color: var(--text-muted);
}

.cp-phone-link {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--accent);
  line-height: 1.2;
  border-bottom: 2px solid transparent;
  transition: 0.3s;
  margin-bottom: 40px;
}

.cp-phone-link:hover {
  border-bottom-color: var(--accent);
  opacity: 0.8;
}

.cp-address-box {
  border-top: 1px solid var(--line);
  padding-top: 40px;
  width: 100%;
  max-width: 400px;
}

.cp-addr {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 10px;
}

.cp-email {
  font-family: var(--font-sans);
  color: var(--text-muted);
  font-size: 1rem;
}

.cp-email a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.cp-email a:hover {
  color: var(--accent);
}

@media (max-width: 600px) {
  .contact-page-main {
    padding-top: 140px;
    text-align: center;
  }

  .cp-phone-link {
    font-size: 2rem;
  }
}
