/* === GLOBAL STYLES === */
:root {
  --primary-color: #1a2a6c; /* Deep Blue */
  --secondary-color: #b21f1f; /* Strong Red */
  --accent-color: #fdbb2d; /* Gold */
  --text-dark: #2c3e50;
  --text-light: #8d99ae;
  --background-light: #edf2f4;
  --background-white: #ffffff;
  --border-color: #dbe2e5;
  --font-family: 'Poppins', sans-serif;
}

body {
  font-family: var(--font-family);
  margin: 0;
  background-color: var(--background-light);
  color: var(--text-dark);
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

/* === HEADER & NAVIGATION === */
header {
  background-color: var(--background-white);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.06);
  padding: 15px 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 700;
  text-decoration: none;
  color: var(--primary-color);
  font-size: 24px;
}

nav a {
  margin-left: 20px;
  text-decoration: none;
  color: var(--primary-color);
  font-weight: 500;
}

/* === MAIN TOOL BOX === */
.tool-box {
  background-color: var(--background-white);
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.tool-icon {
  width: 70px;
  height: 70px;
  margin-bottom: 15px;
}

.description {
  max-width: 650px;
  margin: 0 auto 30px auto;
  color: var(--text-light);
  font-size: 1.1rem;
}

/* === INPUT FORM === */
.input-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 30px;
  text-align: left;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
}

.form-group input, .form-group select {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 16px;
  box-sizing: border-box;
}

/* === MAIN CONTROLS === */
.main-controls {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
}

.main-controls button {
  padding: 12px 40px;
  font-size: 18px;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

#generate-btn {
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  color: white;
}

#reset-btn {
  background-color: var(--text-light);
  color: white;
}

/* === OUTLINE DISPLAY === */
.outline-wrapper {
  background-color: #fdfdfd;
  padding: 30px;
  border-radius: 12px;
  text-align: left;
  border: 1px solid var(--border-color);
}

.outline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 15px;
}

#copy-btn {
  background-color: var(--accent-color);
  color: var(--text-dark);
  padding: 8px 15px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-weight: 600;
}

#outline-output {
  background-color: transparent;
  white-space: pre-wrap;
  word-wrap: break-word;
  font-family: 'Courier New', Courier, monospace;
  font-size: 15px;
  line-height: 1.7;
  color: #333;
  margin: 0;
}

/* === OTHER SECTIONS === */
section {
  margin-top: 60px;
}

h2 {
  text-align: center;
  margin-bottom: 30px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
}

.card {
  background: var(--background-white);
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  text-align: center;
}

.faq-item {
  background: var(--background-white);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 15px;
  text-align: left;
}

/* === FOOTER & BACK TO TOP === */
footer {
  text-align: center;
  padding: 30px 20px;
  background: var(--background-white);
  margin-top: 60px;
  border-top: 1px solid #eee;
}

#backToTop {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 24px;
  cursor: pointer;
  display: none;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 600px) {
  .input-form {
    grid-template-columns: 1fr;
  }
}
/* style.css */

/* --- Global Styles & Variables --- */
:root {
  --primary: #0056ff;
  --secondary: linear-gradient(135deg, #00E0FF, #00FFFF); /* Bright Cyan Gradient */
  --text: #222;
}

body {
  font-family: Poppins, sans-serif;
  margin: 0;
  background: var(--secondary);
  color: var(--text);
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 20px;
}

/* --- Header Styles --- */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(90deg, #0056ff, #00aaff);
  padding: 15px 30px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: auto;
}

/* Logo */
.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.logo-img {
  margin-right: 12px;
  filter: brightness(1) invert(0.9) sepia(0.8) saturate(3) hue-rotate(45deg);
}

.logo-text {
  font-size: 24px;
  color: #fff;
  text-shadow: 1px 1px 5px rgba(0,0,0,0.3);
  font-weight: 700;
}

/* Navbar links */
#navbar {
  display: flex;
  align-items: center;
  gap: 20px;
}

#navbar a {
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 5px 0;
}

#navbar a:hover {
  color: #fffa;
  transform: scale(1.1);
}

/* Hamburger Icon */
#hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  z-index: 1002;
}

#hamburger span {
  width: 25px;
  height: 3px;
  background: #fff;
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Dropdown styles */
.dropdown {
  position: relative;
}

.dropbtn {
  background: none;
  border: none;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  font-size: 16px;
  font-family: Poppins, sans-serif;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #0056ff;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  min-width: 180px;
  z-index: 999;
  border: 1px solid #004acb;
}

.dropdown-content a {
  display: block;
  padding: 10px 15px;
  color: #ffffff;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.dropdown-content a:hover {
  background-color: #004acb;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* --- Mobile Responsive Menu --- */
@media screen and (max-width: 768px) {
  #hamburger {
    display: flex;
  }

  #navbar {
    position: fixed;
    top: 80px;
    right: 15px;
    width: 250px;
    background: linear-gradient(180deg, #0056ff, #00399d);
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 0;
    gap: 0;
    box-shadow: -5px 5px 15px rgba(0,0,0,0.25);
    z-index: 1001;
    border-radius: 12px;
    transform: translateX(110%);
    transition: transform 0.3s ease-in-out;
  }

  #navbar.show {
    display: flex;
    transform: translateX(0);
  }

  #navbar a, .dropdown {
    padding: 15px 25px;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
  }

  .dropdown-content {
    position: static;
    display: none;
    background: rgba(0, 0, 0, 0.2);
    box-shadow: none;
    border-radius: 0;
    border: none;
    min-width: 100%;
  }

  .dropdown-content a {
    color: #e0f7ff;
    font-weight: normal;
    padding-left: 40px;
  }

  .dropdown.active .dropdown-content {
    display: block;
  }
}

/* --- Footer Styles --- */
footer a {
  text-decoration: none;
  color: var(--primary);
  margin-right: 15px;
}

footer a:hover {
  color: #0039c1;
}

/* Social media icon hover effect */
.footer-social a:hover {
    transform: scale(1.15);
}
/* =========================================
   1. GLOBAL RESET & TYPOGRAPHY
   ========================================= */
:root {
    --primary-color: #0056ff;
    --primary-hover: #0044cc;
    --text-color: #333;
    --bg-color: #f4f7f6;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --font-family: 'Poppins', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.7;
    font-size: 18px;
    -webkit-font-smoothing: antialiased;
}

/* =========================================
   2. LAYOUT CONTAINERS
   ========================================= */
/* STRICT RULE: 1200px max-width */
.container {
    width: 100%;
    max-width: 1200px; 
    margin: 0 auto;
    padding: 0 20px;
}

.content-wrapper {
    background-color: var(--white);
    padding: 40px;
    margin-top: 30px;
    margin-bottom: 50px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* =========================================
   3. HEADER (NON-STICKY)
   ========================================= */
/* STRICT RULE: Not sticky */
.main-header {
    position: relative; 
    background: linear-gradient(135deg, #0056ff, #00aaff);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
    width: 100%;
    margin-bottom: 30px;
}

.main-header h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.main-header .subtitle {
    font-size: 1.25rem;
    opacity: 0.95;
    font-weight: 400;
    max-width: 800px;
    margin: 0 auto;
}

/* =========================================
   4. TYPOGRAPHY STYLES
   ========================================= */
h2 {
    font-size: 2rem;
    color: #1a1a1a;
    margin-top: 50px;
    margin-bottom: 20px;
    font-weight: 700;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
}

h2:first-of-type {
    margin-top: 0;
}

p {
    margin-bottom: 20px;
    color: #4a4a4a;
}

ul {
    margin-bottom: 25px;
    padding-left: 25px;
}

li {
    margin-bottom: 10px;
    color: #4a4a4a;
}

strong {
    color: var(--primary-color);
}

code {
    background-color: #f0f4f8;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', Courier, monospace;
    color: #d63384;
    font-size: 0.95em;
}

/* =========================================
   5. TABLE STYLES (RESPONSIVE)
   ========================================= */
.table-container {
    width: 100%;
    overflow-x: auto; /* Responsive scrolling */
    margin: 30px 0;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px; /* Ensures table doesn't squish */
    background-color: var(--white);
}

thead {
    background-color: var(--primary-color);
    color: var(--white);
}

th, td {
    padding: 18px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

tbody tr:hover {
    background-color: #f1f5ff;
}

/* =========================================
   6. CTA BOX & BUTTONS
   ========================================= */
.cta-box {
    background-color: #eef6ff;
    border-left: 6px solid var(--primary-color);
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    margin: 50px 0;
}

.cta-box h2 {
    border-bottom: none;
    margin-top: 0;
    color: var(--primary-color);
}

.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 86, 255, 0.3);
    margin-top: 10px;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 86, 255, 0.4);
}

/* =========================================
   7. MEDIA QUERIES (RESPONSIVE DESIGN)
   ========================================= */

/* Tablet Adjustments */
@media (max-width: 992px) {
    .main-header h1 {
        font-size: 2.4rem;
    }
    .content-wrapper {
        padding: 30px;
    }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    body {
        font-size: 16px; /* Readable mobile font size */
    }

    .container {
        padding: 0 15px;
    }

    .main-header {
        padding: 40px 0;
    }

    .main-header h1 {
        font-size: 2rem;
        line-height: 1.2;
    }

    .main-header .subtitle {
        font-size: 1.1rem;
        padding: 0 10px;
    }

    .content-wrapper {
        padding: 20px;
        margin-top: 20px;
        border-radius: 8px;
    }

    h2 {
        font-size: 1.6rem;
        margin-top: 40px;
    }

    th, td {
        padding: 12px 15px;
        font-size: 0.95rem;
    }

    .cta-box {
        padding: 25px;
    }

    .btn-primary {
        width: 100%; /* Full width button for easier tapping */
        padding: 18px;
    }
}

/* Small Mobile Adjustments */
@media (max-width: 480px) {
    .main-header h1 {
        font-size: 1.7rem;
    }
    h2 {
        font-size: 1.4rem;
    }
}
/* =========================================
   FAQ SECTION STYLES
   ========================================= */

/* Root Variables for Consistency */
:root {
    --primary-color: #0056ff;       /* Matches your Blue theme */
    --primary-hover: #0044cc;
    --text-color: #333;
    --bg-color: #f4f7f6;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --font-family: 'Poppins', sans-serif; /* Matches your site font */
}

/* Section Container */
.faq-section {
    padding: 60px 0;
    background-color: var(--white);
    border-top: 1px solid var(--border-color);
    margin-top: 40px;
    font-family: var(--font-family);
    color: var(--text-color);
}

/* STRICT RULE: 1200px max-width container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Intro Styling */
.faq-intro {
    text-align: center;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.faq-intro h2 {
    font-size: 2.2rem;
    color: #222;
    margin-bottom: 15px;
    font-weight: 700;
}

.faq-intro p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
}

/* FAQ Grid/List */
.faq-list {
    display: grid;
    grid-template-columns: 1fr; /* Single column for readability */
    gap: 20px;
    margin-bottom: 50px;
}

/* Individual FAQ Card */
.faq-item {
    background: #fdfdfd;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    transition: box-shadow 0.3s ease, transform 0.2s ease, border-color 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transform: translateY(-2px);
    border-color: var(--primary-color);
}

.faq-item h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 12px;
    font-weight: 600;
}

.faq-item p {
    font-size: 1rem;
    color: #444;
    text-align: justify;
    margin-bottom: 0;
    line-height: 1.6;
}

/* Code Snippet Styling inside Answers */
.faq-item code {
    background-color: #f0f4f8;
    padding: 2px 5px;
    border-radius: 4px;
    font-family: 'Courier New', Courier, monospace;
    color: #d63384;
    font-size: 0.9em;
}

/* =========================================
   COMPARISON TABLE STYLES
   ========================================= */
.comparison-section {
    margin-top: 60px;
    margin-bottom: 40px;
}

.comparison-section h3 {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 30px;
    color: #222;
}

.table-container {
    width: 100%;
    overflow-x: auto; /* Horizontal scroll for mobile safety */
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid var(--border-color);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    min-width: 600px; /* Ensures table doesn't break on very small screens */
}

th, td {
    padding: 18px;
    text-align: left;
    border-bottom: 1px solid #eee;
    font-size: 1rem;
}

th {
    background-color: var(--primary-color);
    color: var(--white);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

/* Alternating row colors */
tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

tbody tr:hover {
    background-color: #eef6ff;
}

/* =========================================
   OUTRO STYLING
   ========================================= */
.faq-outro {
    text-align: center;
    margin-top: 40px;
    padding: 30px;
    background-color: #e8f4fd;
    border-radius: 8px;
    border-left: 5px solid var(--primary-color);
}

.faq-outro p {
    margin-bottom: 0;
    font-weight: 500;
    color: #333;
    font-size: 1.05rem;
}

/* =========================================
   MEDIA QUERIES (RESPONSIVE DESIGN)
   ========================================= */

/* Tablet Adjustments (Max Width 992px) */
@media (max-width: 992px) {
    .faq-intro h2 {
        font-size: 2rem;
    }
    .container {
        max-width: 95%; /* Fluid width on tablets */
    }
}

/* Mobile Adjustments (Max Width 768px) */
@media (max-width: 768px) {
    .faq-section {
        padding: 40px 0;
    }

    .faq-intro h2 {
        font-size: 1.6rem;
        line-height: 1.3;
    }

    .faq-item {
        padding: 20px;
    }

    .faq-item h3 {
        font-size: 1.2rem;
    }

    .comparison-section h3 {
        font-size: 1.4rem;
    }

    /* Table adjustments for mobile */
    th, td {
        padding: 12px;
        font-size: 0.9rem;
    }
    
    .faq-outro {
        padding: 20px;
        font-size: 0.95rem;
    }
}

/* Small Mobile Adjustments (Max Width 480px) */
@media (max-width: 480px) {
    .faq-intro h2 {
        font-size: 1.4rem;
    }

    .faq-item h3 {
        font-size: 1.1rem;
    }
    
    .faq-item p {
        font-size: 0.95rem;
    }
}
/* --- GRID LAYOUT --- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

/* --- CARD DESIGN (Green Background) --- */
.card {
  background: linear-gradient(160deg, #00e600, #00ff00); /* Bright Green Gradient */
  border-radius: 30px;
  padding: 20px 25px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 320px; /* Height fix for button alignment */
}

/* --- BLUE ENERGY ANIMATION EFFECT --- */
@keyframes blueEnergyAnimation {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(0, 224, 255, 0.4), rgba(0, 255, 255, 0.6), rgba(0, 224, 255, 0.4), rgba(0, 255, 255, 0.6), rgba(0, 224, 255, 0.4));
  background-size: 200% 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  z-index: 0;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.card:hover::before {
  opacity: 1;
  animation: blueEnergyAnimation 4s linear infinite;
}

.card > * {
  position: relative;
  z-index: 1;
}

/* --- IMAGES & TEXT --- */
.card img {
  width: 100px;
  height: 100px;
  margin: 0 auto 15px auto;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.3));
}

.card h2 {
  color: #ffffff;
  font-size: 1.35rem;
  text-shadow: 1px 1px 6px rgba(0,0,0,0.6);
  margin: 0 0 10px 0;
  font-family: 'Poppins', sans-serif;
}

.card p {
  color: #f5f5f5;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
  font-family: 'Poppins', sans-serif;
}

/* --- BUTTON STYLE (Cyan with Black Border) --- */
.card a {
  text-decoration: none;
}

.card button {
  background: linear-gradient(45deg, #00BFFF, #00FFFF);
  color: #ffffff;
  border: 2px solid black; /* Black Border Added */
  border-radius: 12px;
  padding: 14px 25px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  box-shadow: 0 5px 15px rgba(0, 200, 255, 0.4);
  transition: all 0.3s ease;
}

.card button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 200, 255, 0.6);
}
