/* ====== Theme Variables ====== */
:root {
  --primary: #006d77;
  --secondary: #83C5BE;
  --background: #EDF6F9;
  --text: #000001;
  --panel-bg: rgba(255, 255, 255, 0.7);
  --panel-border: 1px solid rgba(255, 255, 255, 0.3);
  --panel-blur: 16px;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --success: #28a745;
  --error: #dc3545;
}

body.dark-mode {
  --primary: #038894;          
  --secondary: #90e0ef;     
  --background: #121212;  
  --text: #e0e0e0;            
  --panel-bg: rgba(30, 30, 30, 0.75); 
  --panel-border: 1px solid rgba(255, 255, 255, 0.15);
  --panel-blur: 18px;           
  --shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
  --success: #28a745;    
  --error: #ff6b6b;           
}

body.dark-mode .input-box {
  background: rgba(40, 40, 40, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e0e0e0;
}

body.dark-mode .output-box {
  background: rgba(3, 136, 148, 0.3); 
  border: 1px solid rgba(144, 224, 239, 0.25); 
  color: #ffffff;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--background);
  font-family: 'Poppins', sans-serif;
}


/* Hero Section */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 50px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;          
  left: 0;        
  right: 0;       
  width: 100%;     
  height: auto;
  z-index: 0;    
}

.hero-bg svg {
  width: 100%;    
  height: auto;   
  display: block;  
}

.hero-content {
  position: relative;
  z-index: 1; 
  color: white;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin: 75px 27px;  
  font-family: 'Poppins', sans-serif; 
  line-height: 1.2;
}

@media (max-width: 768px) {

  .hero-title {
    margin-left: 10px;
    margin-right: 10px;
    margin-top: 40px;       
    font-size: 2.2rem;
    color: #000;
  }

  .hero {
    padding: 20px;        
    padding-top: 60px;        
  }
}

/* Boxes */
.editor-boxes {
  display: flex;
  gap: 30px;
  margin-top: 50px;
  flex-wrap: wrap; 
}

.editor-box {
  flex: 1;
  padding: 20px;
  border-radius: 15px;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  font-family: 'Poppins', sans-serif; 
}

.editor-box h2 {
  margin: 0 0 10px;
  font-size: 1.1rem;
  font-weight: 600;
  color: inherit;
  font-family: 'Poppins', sans-serif; 
}

.editor-box textarea {
  flex: 1;
  width: 100%;
  min-height: 250px;
  border: none;
  outline: none;
  resize: vertical;
  padding: 14px;
  font-family: monospace;
  font-size: 0.95rem;
  border-radius: 10px;
  background: transparent;
  color: inherit;
}

.input-box {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #001f54; 
}

.output-box {
  background: rgba(0, 109, 119, 0.6); 
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
}


/* Buttons */
.button-bar {
  display: flex;
  gap: 18px;
  margin: 40px 0 0 0;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center; 
}

.btn {
  background: var(--panel-bg);
  color: var(--primary);
  border: none;
  border-radius: 10px;
  padding: 20px 24px;
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: 
    background 0.2s ease,
    color 0.2s ease,
    box-shadow 0.25s ease,
    transform 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.btn:hover {
  background: var(--secondary);
  color: white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15); 
  transform: translateY(-4px); 
}

.btn:active {
  transform: translateY(-1px) scale(0.98); 
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); 
  background: var(--primary);
}

.dropdown {
  position: relative;
}

.dropdown-btn::after {
  content: " ▼";
  font-size: 0.8em;
}


.dropdown-content {
  display: none;
  position: absolute;
  top: 110%;
  left: 0;
  min-width: 160px;
  background: var(--panel-bg);
  box-shadow: var(--shadow);
  border-radius: 8px;
  z-index: 6;
  padding: 6px 0;
  opacity: 0;
  transform: translateY(5px);
  transition: all 0.25s ease;
}


/* ==============================
   Dropdown Styles 
   ============================== */

.dropdown {
  position: relative;
  overflow: visible; 
  z-index: 20; 
}

.dropdown-btn::after {
  content: " ▼";
  font-size: 0.8em;
}

.dropdown-content {
  position: absolute; 
  top: 110%;
  left: 0;
  min-width: 200px;
  background: var(--panel-bg);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  padding: 8px 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.25s ease;
  display: none;
  z-index: 9999; 
  overflow: visible;
}

.dropdown.active .dropdown-content {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.dropdown-content a {
  display: block;
  padding: 12px 18px;
  color: var(--primary);
  font-size: 1rem;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
  border-radius: 6px;
}

.dropdown-content a:hover {
  background: var(--secondary);
  color: white;
  transform: translateX(3px);
}

@media (max-height: 500px) {
  .dropdown-content {
    top: auto;
    bottom: 110%;
  }
}
.dropdown-content {
  left: 50%;
  transform: translate(-50%, 8px);
}
.dropdown.active .dropdown-content {
  transform: translate(-50%, 0);
}


/* ===== Output Box Header Icons ===== */
.box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.icon-buttons {
  display: flex;
  gap: 10px;
}

.icon-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 1.2rem;
  cursor: pointer;
  transition: transform 0.2s, color 0.2s;
}
.icon-btn:hover {
  transform: scale(1.1);
  color: #83C5BE;
}

.icon-btn:active {
  transform: scale(0.9);
  opacity: 0.8;
}

/* ==============================
   Footer Styles
   ============================== */

.footer {
  margin-top: 100px;
  padding: 40px 20px;
  text-align: center;
  color: var(--text);
  background: rgba(255, 255, 255, 0.25);
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.1);
  border-radius: 24px 24px 0 0;
  font-family: 'Poppins', sans-serif;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.footer-links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.3px;
  opacity: 0.8;
  transition: all 0.3s ease;
  position: relative;
}

.footer-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 2px;
  background: var(--primary);
  border-radius: 4px;
  transition: transform 0.3s ease;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--primary);
}

.footer-links a:hover::after {
  transform: translateX(-50%) scaleX(1);
}

.footer-copy {
  font-size: 0.9rem;
  opacity: 0.65;
  margin-top: 8px;
  letter-spacing: 0.3px;
}

body.dark-mode .footer {
  background: rgba(0, 0, 0, 0.35);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.4);
}

/* ================== Navbar Styles ===================== */
.navbar {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1100px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 16px;
  padding: 12px 24px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  z-index: 100;
  color: var(--text);
  font-family: 'Poppins', sans-serif;
}


.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  opacity: 0.8;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.nav-links a:hover {
  opacity: 1;
  color: var(--primary);
}

.theme-toggle {
  background: transparent;
  border: none;
  color: var(#000000);
  cursor: pointer;
  transition: transform 0.2s ease, color 0.2s ease;
}

.theme-toggle:hover {
  transform: scale(1.1);
  color: var(--primary);
}

body.dark-mode .navbar {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text);
}
html, body {
  height: 100%;
  overflow-y: auto;
  scroll-behavior: smooth;
}

body.dark-mode .theme-toggle {
  color: #ffffff; 
}

/* ================== Mobile Navbar ===================== */
.hamburger {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text);
  font-size: 22px;
}

/* Mobile View */
@media (max-width: 768px) {

  /* Hide nav links initially */
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 80px;
    right: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-radius: 0 0 16px 16px;
    padding: 20px 0;
    text-align: center;
  }

  /* Show links when menu activated */
  .nav-links.show {
    display: flex;
  }

  .nav-links a {
    padding: 12px 0;
    display: block;
    font-size: 16px;
  }

  /* Show hamburger button */
  .hamburger {
    display: block;
  }

  /* Adjust theme toggle position */
  .theme-toggle {
    margin-right: 10px;
  }
}

/* Dark Mode Mobile Menu */
body.dark-mode .nav-links {
  background: rgba(0, 0, 0, 0.6);
}

/* ==============================
   Features Section (3 Cards)
   ============================== */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  margin-top: 120px;
  text-align: center;
  color: var(--text);
}

.feature-card {
  background: var(--panel-bg);
  border: var(--panel-border);
  border-radius: 20px;
  padding: 40px 20px;
  backdrop-filter: blur(var(--panel-blur));
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.feature-card i {
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  color: var(--primary);
}

.feature-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.95rem;
  opacity: 0.8;
  line-height: 1.5;
}

/* ===== Contact Page Styles ===== */
.contact-panel {
  background: var(--panel-bg);
  border: var(--panel-border);
  border-radius: 18px;
  backdrop-filter: blur(var(--panel-blur));
  box-shadow: var(--shadow);
  padding: 40px 32px;
  max-width: 480px;
  margin: 60px auto 0 auto;
  color: var(--text);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 1rem;
  margin-bottom: 2px;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.11);
  font-family: 'Poppins', sans-serif;
  background: rgba(255,255,255,0.7);
  color: var(--text);
  font-size: 1rem;
  resize: vertical;
  outline: none;
  transition: border 0.18s;
}
body.dark-mode .contact-form input,
body.dark-mode .contact-form textarea {
  background: var(--panel-bg);
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.13);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border: 1.5px solid var(--primary);
}

.contact-form button.btn {
  width: 100%;
  align-self: flex-end;
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

@media (max-width: 600px) {
  .contact-panel {
    padding: 17px 7px;
    margin-top: 20px;
  }
  .hero-title { font-size: 2rem; }
}

/* ===== Docs Page Styles ===== */
.docs-panel {
  background: var(--panel-bg);
  border: var(--panel-border);
  border-radius: 18px;
  backdrop-filter: blur(var(--panel-blur));
  box-shadow: var(--shadow);
  padding: 40px 32px;
  max-width: 800px;
  margin: 60px auto 0 auto;
  color: var(--text);
}
.docs-section {
  margin-bottom: 38px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.docs-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}
.docs-section h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 7px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
}
.docs-section ul {
  padding-left: 18px;
  margin: 0;
}
.docs-section li {
  font-size: 1rem;
  margin-bottom: 8px;
  opacity: 0.96;
  font-family: 'Poppins', sans-serif;
  color: var(--text);
}

body.dark-mode .docs-panel {
  background: var(--panel-bg);
  border: var(--panel-border);
  color: var(--text);
}

@media (max-width: 650px) {
  .docs-panel {
    padding: 16px 7px;
    margin-top: 20px;
    max-width: 98vw;
  }
  .hero-title { font-size: 2rem; }
}

#message {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: #222;
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  z-index: 1000;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

#message.show {
  opacity: 1;
  pointer-events: auto;
}


/* ===============================
   FAQ Section Styling
   =============================== */
.faq-section {
  background: var(--panel-bg);
  border: var(--panel-border);
  backdrop-filter: blur(var(--panel-blur));
  padding: 30px;
  border-radius: 16px;
  margin-top: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.faq-section h2 {
  font-weight: 700;
  margin-bottom: 25px;
  color: var(--text);
}

.faq-item {
  margin-bottom: 25px;
  padding: 15px 20px;
  background: rgba(255, 255, 255, 0.5);
  border-left: 4px solid var(--primary);
  border-radius: 10px;
  transition: 0.3s ease;
}

.faq-item h3 {
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--text);
}

.faq-item p {
  margin: 0;
  color: var(--text);
  line-height: 1.6;
}

/* Hover effect */
.faq-item:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: translateX(4px);
}

/* ===============================
   Dark Mode Support
   =============================== */
.dark-mode .faq-section {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark-mode .faq-item {
  background: rgba(255, 255, 255, 0.05);
  border-left-color: var(--secondary);
}

.dark-mode .faq-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.dark-mode .faq-section h2,
.dark-mode .faq-item h3,
.dark-mode .faq-item p {
  color: var(--text);
}

.page-section p,
.page-section li,
.page-section h1,
.page-section h2,
.page-section h3,
.page-section h4 {
  color: var(--text);
}

