@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono&display=swap");

:root {
  --bg-dark: #0f0f0f;
  --bg-card: #1a1a1a;
  --accent: #00ff88;
  --accent-hover: #00cc6b;
  --input-bg: #2a2a2a;
  --text-light: #f0f0f0;
  --error-bg: #c62828;
  --error-text: #ff8a80;
  --success-bg: #2e7d32;
  --success-text: #a5d6a7;
}

/* :root.light {
  
  --bg-dark: #ffffff;
  --bg-card: #f9f9f9;
  --accent: #000000;
  --accent-hover: #333333;
  --input-bg: #f0f0f0;
  --text-light: #000000;

  --error-bg: #ffffff;
  --error-text: #cc0000;

  --success-bg: #ffffff;
  --success-text: #008000;
} */

body {
  margin: 0;
  font-family: "JetBrains Mono", monospace;
  background-color: var(--bg-dark);
  color: var(--text-light);
  padding: 2rem;
  padding-bottom: 0px;
  height: 100%;
}

.container {
  max-width: 1100px;
  margin: auto;
  padding: 2rem;
  background: var(--bg-card);
  border-radius: 16px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
}

h1,
h2,
h3 {
  color: #fff;
  margin-bottom: 1rem;
}

h1 {
  text-align: center;
  font-size: 2rem;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.tool-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
}

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

label {
  font-weight: 600;
  font-size: 0.95rem;
}

input[type="file"],
input[type="password"] {
  padding: 0.75rem;
  background-color: var(--input-bg);
  border: none;
  border-radius: 8px;
  color: var(--text-light);
  font-size: 0.95rem;
}

button.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.75rem 1.2rem;
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

button.btn:hover {
  background: var(--accent-hover);
}

.image-preview img {
  max-width: 100%;
  border: 2px solid var(--accent);
  border-radius: 10px;
  margin-top: 1rem;
}

.image-preview p {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #ccc;
}

.messages {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.messages li {
  padding: 0.7rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0.5rem;
  position: relative;
}

.messages .success {
  background-color: var(--success-bg);
  color: var(--success-text);
}

.messages .error {
  background-color: var(--error-bg);
  color: var(--error-text);
}
/*close button on flash message*/

.close-btn {
  background-color: inherit;
  border: none;
  border-radius: 5px;
  padding: 10px;
  color: white;
  aspect-ratio: 1;

  align-content: right;
  cursor: pointer;
  position: absolute;
  right: 5px;
}
.close-btn:hover {
  color: rgb(0, 0, 0);
  transition: 0.2s;
}

.inline-icon {
  width: 1.2em;
  height: 1.2em;
  vertical-align: middle;
  margin-right: 0.4em;
}

.btn-icon {
  width: 1em;
  height: 1em;
}

.drop-card {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.encrypt-section,
.decrypt-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.drop-box {
  padding: 1.5rem;
  border: 2px dashed var(--accent);
  border-radius: 10px;
  background-color: #151515;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.5rem;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.drop-box:hover {
  background-color: #1f1f1f;
  border-color: var(--accent-hover);
}

.drop-box header h4 {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-light);
  margin: 0;
}

.drop-box p {
  font-size: 0.85rem;
  color: #aaa;
  margin: 0.25rem 0 0.75rem;
}
.drop-box.dragover {
  border: 2px dashed #007bff;
  background-color: rgba(0, 123, 255, 0.05);
}

.main-header {
  padding: 1rem 0;
  border-bottom: 1px solid #2a2a2a;
  margin-bottom: 2rem;
}
.main-header .tagline {
  font-size: 1.2rem; /* smaller than main title */
  font-weight: 400; /* lighter font weight */
  color: #888; /* subtle color */
  margin-top: 5px; /* space below main title */
  text-align: center; /* centered under PixCrypt */
  font-style: italic; /* optional, makes it look like a tagline */
}
.logo-link {
  text-decoration: none; /* remove underline */
  color: inherit; /* inherit h1 color */
  display: inline-flex; /* align icon and text properly */
  align-items: center;
}

.logo-link:hover {
  transition: 0.2s;
  color: var(--accent-hover); /* optional hover effect */
}
.github-logo {
  text-align: right;
  background-color: red;
}
/* navbar */
/* Navbar container */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between; /* LEFT links on left, mask button on right */
  padding: 0.75rem 1rem;
  background-color: transparent;
  z-index: 1000;
  box-sizing: border-box; /* include padding in width */
}

/* Left links container */
.nav-left {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap; /* optional: wraps if screen is small */
}

/* Navbar left links */
.nav-left a {
  color: #c5c5c5;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.nav-left a:hover {
  background-color: var(--accent);
  color: black;
  transform: translateY(-2px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Mask button on the right */
.mask-btn {
  font-size: 0.85rem;
  padding: 0.4rem 0.8rem;
  background: var(--accent);
  color: #000;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
  display: inline-flex;
  align-items: center;
}

.mask-btn:hover {
  background: var(--accent-hover);
}

/* Right-aligned mask button */
.mask-btn {
  margin-left: auto; /* pushes to far right */
  font-size: 0.85rem;
  padding: 0.4rem 0.8rem;
  background: var(--accent);
  color: #000;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  transition: background 0.3s ease;
}

.mask-btn:hover {
  background: var(--accent-hover);
}

/* Responsive: stack links on smaller screens */
@media (max-width: 600px) {
  .navbar {
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
  }
}

/* Push page content below navbar */

.footer {
  text-align: center;
  padding: 2rem 0 0;
  margin-top: 4rem;
  font-size: 0.9rem;
  color: #888;
  border-top: 1px solid #2a2a2a;
}

.progress-wrapper {
  width: 100%;
  background-color: #333;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 1rem;
  height: 18px;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.5);
}

.progress-bar {
  width: 0%;
  height: 100%;
  background: var(--accent);
  transition: width 0.1s linear;
}

/* Home Page */
.home-page {
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(
    145deg,
    rgba(0, 255, 136, 0.05),
    rgba(255, 255, 255, 0.02)
  );
  border: 1px solid rgba(0, 255, 136, 0.2);
  border-radius: 20px;
  box-shadow: 0 0 60px rgba(0, 255, 136, 0.1);
  backdrop-filter: blur(10px);
  transition: all 0.4s ease;
}

.home-page h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 1.5rem;
  text-shadow: 0 0 8px rgba(0, 255, 136, 0.4);
}

.home-page p {
  font-size: 1.1rem;
  color: #bbb;
  margin-bottom: 2.5rem;
  max-width: 700px;
  margin-inline: auto;
  line-height: 1.6;
}

.home-buttons {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.home-buttons .btn {
  background-color: var(--accent);
  color: #000;
  font-size: 1rem;
  font-weight: bold;
  padding: 0.9rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0, 255, 136, 0.4);
  transition: all 0.3s ease;
  text-decoration: none;
}

.home-buttons .btn:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(0, 255, 136, 0.6);
}

.home-about {
  margin-top: 3rem;
  background: rgba(255, 255, 255, 0.02);
  padding: 2rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.05);
  backdrop-filter: blur(6px);
  max-width: 700px;
  margin-inline: auto;
}

.home-about h3 {
  font-size: 1.6rem;
  color: var(--accent);
  margin-bottom: 1rem;
  text-align: center;
}

.home-about ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.home-about li {
  padding-left: 1.2rem;
  position: relative;
  color: #ccc;
  font-size: 1rem;
  text-align: left;
  line-height: 1.6;
}

.home-about li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

/* 🌐 MOBILE STYLES */
@media screen and (max-width: 600px) {
  body {
    padding: 1rem;
  }

  .container {
    padding: 1rem;
  }

  h1 {
    font-size: 1.5rem;
  }

  .tool-grid {
    grid-template-columns: 1fr;
  }

  .home-page {
    padding: 2rem 1rem;
  }

  .home-page h2 {
    font-size: 1.8rem;
  }

  .home-page p {
    font-size: 1rem;
  }

  .home-buttons .btn {
    font-size: 0.95rem;
    padding: 0.75rem 1.2rem;
  }

  .home-about {
    padding: 1.5rem;
  }

  .home-about h3 {
    font-size: 1.4rem;
  }

  .navbar {
    flex-direction: column;
    gap: 1rem;
  }

  .footer {
    font-size: 0.8rem;
  }
}

.password-wrapper {
  position: relative;
  width: 100%;
  margin-bottom: 0.75rem;
}

.password-wrapper input {
  width: 100%;
  padding: 0.5rem 2.5rem 0.5rem 0.75rem; /* space for icon on the right */
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
}

.password-wrapper i {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  cursor: pointer;
  color: #555;
  font-size: 1rem;
  z-index: 2;
}

.password-label {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.9rem;
  color: #ffffff;
}

/*encrypt and decrypt focus*/
#encrypt-focus,
#decrypt-focus {
  scroll-margin-top: 200px; /* height of your fixed header */
}

.image-heading {
  text-align: center;
  background-color: #121212;
  margin-top: 80px;
  margin-bottom: 20px;
  padding: 10px;
  border-radius: 20px;
}

/*Section below home page, for demo images showing how it works*/
.image-container {
  margin: 40px auto;
  background: linear-gradient(135deg, #000000, #464646);
  border-radius: 20px;
  text-align: center;
  padding: 30px;
  width: 60%;
  box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.15);
  box-shadow: 0 0 15px 5px rgba(0, 204, 107, 0.05);
}

.process-title {
  font-size: 1.8rem;
  color: white;
  margin-bottom: 20px;
  font-weight: bold;
  letter-spacing: 1px;
}

.demo-images {
  width: 80%;
  border-radius: 15px;
  object-fit: cover;
  transition: transform 0.3s ease-in-out;
  box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.9);
}

.demo-images:hover {
  transform: scale(1.01);
}

.caption {
  margin-top: 10px;
  font-size: 1rem;
  color: white;
  font-weight: 500;
}

.arrow-down {
  font-size: 2.5rem;
  margin: 20px 0;
  animation: bounce 1.2s infinite;
  color: #00ff88;
}

/* Home Mask Section */
.home-mask {
  background: rgba(0, 255, 136, 0.05); /* subtle green tint to match accent */
  border: 1px solid rgba(0, 255, 136, 0.3);
  border-radius: 16px;
  padding: 2rem;
  margin-top: 3rem;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 255, 136, 0.2);
  backdrop-filter: blur(12px);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.home-mask:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 255, 136, 0.35);
  background: rgba(0, 255, 136, 0.08);
}

.home-mask h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--accent);
}

.home-mask h2 .highlight {
  color: #00ff88;
  font-weight: 700;
}

.home-mask p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  color: #ccc;
}

.home-mask .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.75rem 1.2rem;
  background: var(--accent);
  color: #000;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.3s ease, transform 0.2s ease;
  text-decoration: none;
}

.home-mask .btn:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}
.stego-info-sidebar {
  width: 100%; /* Full width of container */
  max-width: 95%; /* Adjust to match the combined width of your two forms */
  margin: 1.5rem auto 0; /* Top margin pushes it below the forms, auto centers */
  padding: 1.2rem 1.5rem;
  border-radius: 12px;
  background-color: rgba(40, 40, 40, 0.95); /* Dark background for contrast */
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);

  color: #eaeaea;
  line-height: 1.55;
  font-size: 0.95rem;
}

/* Header styling */
.stego-info-sidebar header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
}

.stego-info-sidebar header h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0;
  color: #fff;
}

/* Body styling */
.stego-info-sidebar .info-body p {
  margin-bottom: 0.6rem;
}

.stego-info-sidebar .info-body ul {
  margin: 0.3rem 0 0.6rem 1.2rem;
  padding: 0;
  list-style-type: disc;
  color: #ccc;
}

.stego-info-sidebar .info-body li {
  margin-bottom: 0.4rem;
}

/* Optional: subtle icon highlight */
.stego-info-sidebar i {
  color: #ff6767;
  margin-right: 10px;
}

/* ABOUT PAGE */
/* About Page */
.about-page {
  padding: 2rem 1rem;
  display: flex;
  justify-content: center;
}

.about-container {
  max-width: 900px;
  background: rgba(25, 25, 25, 0.95);
  padding: 2.5rem 3rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 30px rgba(0, 255, 136, 0.1);
  backdrop-filter: blur(10px);
  color: #eaeaea;
}

.about-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--accent);
}

.about-title .highlight {
  color: #00ff88;
}

.about-intro {
  font-size: 1.05rem;
  text-align: center;
  margin-bottom: 2rem;
  line-height: 1.7;
  color: #ccc;
}

.about-section {
  margin-bottom: 1.8rem;
}

.about-section h3 {
  font-size: 1.3rem;
  color: var(--accent);
  margin-bottom: 0.7rem;
}

.about-section p {
  font-size: 1rem;
  line-height: 1.6;
  color: #ddd;
}

.about-section ul {
  list-style-type: disc;
  margin-left: 1.5rem;
  color: #ccc;
}

.about-section ul li {
  margin-bottom: 0.5rem;
}

/* Links */
.about-section a {
  color: var(--accent);
  text-decoration: underline;
  transition: color 0.2s ease;
}

.about-section a:hover {
  color: var(--accent-hover);
}
/* Theme toggle button */
.theme-btn {
  background: var(--bg-card);
  color: var(--accent);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.theme-btn:hover {
  background: var(--accent);
  color: var(--bg-dark);
  transform: scale(1.1);
}

.theme-btn:active {
  transform: scale(0.95);
}

/* Responsive */
@media screen and (max-width: 768px) {
  .about-container {
    padding: 1.8rem 2rem;
  }

  .about-title {
    font-size: 1.8rem;
  }

  .about-section h3 {
    font-size: 1.15rem;
  }
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(2px);
  }
}
html {
  scroll-behavior: smooth;
}
.headline {
  background: linear-gradient(90deg, #1bff4c, #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}
.headline .highlight {
  background: linear-gradient(90deg, #6c63ff, #ff6584);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}
