/* -------------------- ROOT VARIABLES -------------------- */
:root {
  --bg: #0b132b;
  --bg2: #1c2541;
  --accent: #3a86ff;
  --text: #e0e0e0;
  --subtext: #9fa6b2;
  --radius: 12px;
}

/* -------------------- GLOBAL RESET -------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  width: 100%;
  margin: auto;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-family: "Segoe UI", Roboto, sans-serif;
}

.fullpg { width: 80%; margin: auto; }

/* -------------------- HEADER -------------------- */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: #151d37;
  color: #fff;
  position: relative;
  z-index: 1000;
}

header img { height: 70px; margin-bottom: 10px; }

.logo {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: bold;
}

p.logo-name { padding-left: 20px; }

/* -------------------- NAVIGATION -------------------- */
nav {
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-size: 1.2rem;
}

/* -------------------- HAMBURGER MENU -------------------- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 2001;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
  transition: 0.4s;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 6px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Hamburger button inside header */
button#navToggle {
  flex: 1;
  padding: 10px 14px;
  border: none;
  border-radius: var(--radius);
  font-size: 0.95rem;
  cursor: pointer;
  color: #fff;
  background: #17203e;
  transition: 0.2s;
  max-width: 55px;
  min-width: 55px;
  margin-top: 14px;
  box-shadow: 1px 1px 2px #5b5858;
}

/* -------------------- HEADINGS -------------------- */
.mainheading {
  text-align: center;
  margin-bottom: 30px;
  padding: 50px 0;
}

h1 { margin: 0; font-size: 2.3rem; font-weight: 700; }

#subtitle {
  max-width: 720px;
  margin: 12px auto;
  color: var(--subtext);
  font-size: 1.1rem;
}

/* -------------------- TEXTAREAS & PRE BLOCK -------------------- */
.jtot-a #inputJSON ,textarea,pre {
  width: 100%;
  min-height: 450px;
  padding: 16px;
  border-radius: var(--radius);
  border: 2px solid #33557b;
  background: var(--bg2);
  color: var(--text);
  text-align: left;
}

textarea {
  resize: vertical;
  transition: 0.2s;
}

textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(58, 134, 255, 0.6);
}

pre {
  overflow-x: auto;
  white-space: pre-wrap;
}

/* -------------------- BUTTONS -------------------- */
button {
  flex: 1;
  padding: 12px 16px;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  cursor: pointer;
  color: #fff;
  background: #17203e;
  transition: 0.2s;
  min-width: 150px;
  margin-top: 16px;
  box-shadow: 2px 2px 2px #5b5858;
}

button:hover {
  background: #0056b3;
  transform: translateY(-2px);
}

/* -------------------- SECTIONS -------------------- */
.section {
  margin: 20px 0;
  padding: 30px 20px;
  background: #111a34;
  border-radius: 12px;
  border: 1px solid #243b55;
}

.jtot, .ttoj {
  width: 100%;
  min-height: 720px;
  display: grid;
  align-items: center;
  background: #151d37;
  border-radius: 25px;
  margin: 20px 0;
  padding: 30px 0;
}

.jtot-1, .ttoj-1 {
  display: flex;
  width: 100%;
  justify-content: space-evenly;
  text-align: center;
}

.jtot-a, .jtot-b, .ttoj-a, .ttoj-b {
  width: 45%;
  margin: 5px;
  padding: 5px;
}

.jtot h2, .ttoj h2 {
  text-align: center;
}

/* -------------------- CONTACT FORM -------------------- */
#contact-Form {
  display: flex;
  justify-content: center;
  width: 80%;
  margin: auto;
  align-items: center;
  flex-direction: column;
}

.contact-section {
  width: 60%;
  background: #151d37;
  border-radius: 15px;
  padding: 35px;
  margin-top: 40px;
  border: 1px solid #243b55;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-form label {
  font-size: 1rem;
  color: var(--text);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: 2px solid #33557b;
  background: var(--bg2);
  color: var(--text);
  font-size: 1rem;
  transition: 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(58, 134, 255, 0.5);
}

/* -------------------- POPUP -------------------- */
.popup {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.popup-content {
  background: #304073;
  padding: 30px 40px;
  border-radius: 15px;
  text-align: center;
  width: 380px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  animation: fadeIn 0.3s ease-in-out;
}

.popup-content .icon {
  font-size: 55px;
  color: #2ecc71;
  margin-bottom: 10px;
}

.popup-content button {
  margin-top: 20px;
  background: #151d37;
  color: #fff;
  padding: 12px 25px;
  border-radius: 8px;
  cursor: pointer;
  border: none;
}

/* -------------------- FOOTER -------------------- */
footer {
  color: #fff;
  padding: 40px 20px 20px;
  font-family: Arial, sans-serif;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: auto;
}

.footer-section h3 { margin-bottom: 15px; font-size: 1.2rem; }
.footer-section p { font-size: 0.95rem; line-height: 1.5; }
.footer-section ul { list-style: none; }
.footer-section ul li { margin: 8px 0; }
.footer-section ul li a {
  color: #ddd;
  text-decoration: none;
  transition: 0.3s;
}
.footer-section ul li a:hover { color: #fff; }

.social-icons a {
  font-size: 1.6rem;
  margin-right: 10px;
  display: inline-block;
  color: #fff;
  transition: 0.3s;
}
.social-icons a:hover { transform: scale(1.2); }

.footer-bottom {
  text-align: center;
  padding: 15px 0 0;
  border-top: 1px solid #444;
  margin-top: 20px;
  font-size: 0.9rem;
}

/* -------------------- RESPONSIVE -------------------- */

/* 900px */
@media (max-width: 900px) {
     .nav-toggle { display: flex; }

  nav {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateX(100%);
    opacity: 0;
    transition: 0.3s;
    z-index: 2000;
  }

  nav.show {
    transform: translateX(0);
    opacity: 1;
  }

  .nav-links {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .nav-links a { font-size: 1.5rem; }
  .footer-container { grid-template-columns: repeat(2, 1fr); }
}

/* 768px (MOBILE MENU ACTIVATES) */
@media (max-width: 768px) {

 

  .fullpg { width: 100%; }

  .contact-section { width: 80%; }

  .jtot-1, .ttoj-1 {
    display: block;
    padding: 25px;
  }

  .jtot-a, .jtot-b,
  .ttoj-a, .ttoj-b {
    width: 100%;
    margin: 30px 5px;
  }
}

/* 600px */
@media (max-width: 600px) {
  body { padding: 20px; }
  button { min-width: 100%; }
  pre, textarea { height: 180px; }
  .footer-container { grid-template-columns: 1fr; text-align: center; }
  .social-icons a { margin: 0 8px; }
  .contact-section { width: 100%; }
}
