/* =========================================
   RESET & BASE
   ========================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html, body {
  margin: 0;
  padding: 0;
  font-size: 16px;
  background: #FFFFFF;
  color: #000000;
  overflow-x: hidden; /* Prevents accidental side-scrolling */
}

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.5;
  background: var(--wag-page-bg);
}

/* =========================================
   TOKENS (WAG AAA)
   ========================================= */
:root {
  --wag-page-bg: #F5F5F5;
  --wag-surface-bg: #FFFFFF;
  --wag-fg: #000000;
  --wag-border: #E5E5E5;
  --wag-focus: #000000;
  --wag-hover-bg: #F2F2F2;
  --wag-shadow: #00000014;
}

/* =========================================
   ACCESSIBILITY
   ========================================= */
a,
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--wag-focus);
  outline-offset: 2px;
}

/* =========================================
This rule is about accessibility. It respects a user’s system setting that asks websites
to reduce motion and animation.
========================================= */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
/* =========================================
   PAGE LAYOUT
   ========================================= */
.page {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  color: var(--wag-fg);
}

/* =========================================
   HEADER
   ========================================= */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;  /* Keeps logo left and nav right */
  gap: 24px;
  padding: 10px 18px;
  background: var(--wag-surface-bg);
  color: var(--wag-fg);
  border-bottom: 1px solid var(--wag-border);
  width: 100%;
}
/* =========================================
   Footer
   ========================================= */
.footer {
   display: flex;
   flex-direction: column;      /* stack items vertically */
   align-items: center;         /* center horizontally */
   justify-content: center;
   gap: 6px;                    /* small space between lines */
   padding: 20px;
   background: var(--wag-surface-bg);
   color: var(--wag-fg);
   border-top: 1px solid var(--wag-border);
   text-align: center;
}
/* =========================================
   CONTENT / CARDS
   ========================================= */
.content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 10px;
  padding: 10px 0;
}

.card {
  background: var(--wag-surface-bg);
  color: var(--wag-fg);
  padding: 32px;
  border-radius: 10px;
  box-shadow: 0 8px 24px var(--wag-shadow);
}
/* =========================================
   LINKS / BUTTONS
   ========================================= */
.link {
  color: var(--wag-fg);
  text-decoration: underline;
}

.link:hover {
  text-decoration-thickness: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--wag-border);
  background: var(--wag-surface-bg);
  color: var(--wag-fg);
  border-radius: 8px;
  cursor: pointer;
}

.btn:hover {
  background: var(--wag-hover-bg);
}

.btn:active {
  transform: translateY(1px);
}
/* =========================================
   LOGO
   ========================================= */
.logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  min-width: 0;
  max-width: none;
}

.logo a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 1;
  width: auto;
}

.logo img {
  display: block;
  height: 64px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
}


/* =========================================
   NAV BASE
   ========================================= */
.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0;
}

/* Top-level static links */
.nav > a,
.nav > span > a {
  color: var(--wag-fg);
  text-decoration: none;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 10px;
}

.nav > a:hover,
.nav > span > a:hover {
  background: var(--wag-hover-bg);
}

/* =========================================
   MENU RESET
   ========================================= */
.main-menu,
.main-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* =========================================
   MAIN MENU
   ========================================= */
.main-menu {
  display: flex;
  align-items: center;
  gap: 10px;
}

.main-menu a {
  color: var(--wag-fg);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 10px;
  display: inline-block;
  white-space: nowrap;
}

.main-menu a:hover {
  background: var(--wag-hover-bg);
}

/* =========================================
   DESKTOP DROPDOWN
   ========================================= */
.main-menu li {
  position: relative;
}

.main-menu li > ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--wag-surface-bg);
  border: 1px solid var(--wag-border);
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 10px 30px var(--wag-shadow);
  z-index: 1000;
}

.main-menu li:hover > ul {
  display: block;
}

/* =========================================
   MOBILE TOGGLE BUTTON
   ========================================= */
.nav-toggle__btn {
  list-style: none;
  cursor: pointer;
  border: 1px solid var(--wag-border);
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--wag-surface-bg);
  font-weight: 800;
}

.nav-toggle__btn::-webkit-details-marker {
  display: none;
}

/* =========================================
   MOBILE MENU PANEL
   ========================================= */
.nav-mobile {
  display: block;
  margin-left: auto;
  position: relative;
}

.nav-mobile .nav {
  display: none;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: min(92vw, 400px);
  padding: 12px;
  border: 1px solid var(--wag-border);
  border-radius: 12px;
  background: var(--wag-surface-bg);
  box-shadow: 0 10px 30px var(--wag-shadow);
  z-index: 999;
}

.nav-mobile[open] .nav {
  display: flex;
}

/* Mobile menu list becomes vertical */
.nav-mobile .main-menu {
  display: grid;
  gap: 6px;
}

/* Mobile submenu: stacked, not floating */
.nav-mobile .main-menu li > ul {
  display: block;
  position: static;
  min-width: 0;
  margin-top: 6px;
  margin-left: 12px;
  padding: 0 0 0 12px;
  border: 0;
  border-left: 2px solid var(--wag-border);
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.nav-mobile .main-menu li > ul a {
  display: block;
  padding: 8px 0;
  white-space: normal;
}

/* =========================================
   DESKTOP / MOBILE SWITCH
   ========================================= */
.nav-desktop {
  display: none;
}

@media only screen and (max-width: 899px) {
  .nav-desktop {
    display: none;
  }

  .nav-mobile {
    display: block;
    margin-left: auto;
  }

  .logo img {
    height: 44px;
    max-width: 160px;
  }
}

@media only screen and (min-width: 768px) {
  .logo img {
    height: 60px;
  }
}

@media only screen and (min-width: 900px) {
  .nav-desktop {
    display: block;
    margin-left: auto;
  }

  .nav-mobile {
    display: none;
  }

  .header {
    padding: 14px 24px;
    gap: 18px;
  }

  .nav-desktop .nav {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .nav-desktop .main-menu {
    display: flex;
    align-items: center;
    gap: 10px;
  }
}

@media only screen and (min-width: 1200px) {
  .logo img {
    height: 64px;
  }

  .header {
    padding: 16px 40px;
  }
}

/* =========================================
   HomePage
   ========================================= */

.hero {
  grid-column: 1 / -1;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

/* =========================================
Disclaimer
   ========================================= */
.disclaimer {
  font-size: 0.8rem;
  color: #666;
  max-width: 700px;
  margin-top: 6px;
  line-height: 1.5;
}
/* =========================================
HoneyPot
   ========================================= */

.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
/* ------------------------------
   Generic Form Layout
--------------------------------*/

/* Card container controls layout width */

.content .card form {
    max-width: 640px;
}
.content .card p {
    margin-bottom: 24px;
}

/* ----------------------------------------------------
   Base Form Controls
---------------------------------------------------- */

form input,
form textarea,
form select,
form button {
    font: inherit;
    color: #000;
}


/* ----------------------------------------------------
   Text-based Inputs
---------------------------------------------------- */

form input[type="text"],
form input[type="email"],
form input[type="password"],
form input[type="search"],
form input[type="url"],
form input[type="tel"],
form input[type="number"],
form input[type="date"],
form input[type="datetime-local"],
form input[type="month"],
form input[type="week"],
form input[type="time"],
form textarea,
form select {

    display: block;
    width: 100%;
    padding: 10px 12px;

    border: 2px solid #000;
    background: #fff;

    box-sizing: border-box;
    margin-bottom: 14px;
}


/* ----------------------------------------------------
   Textarea
---------------------------------------------------- */

form textarea {
    min-height: 140px;
    resize: vertical;
}


/* ----------------------------------------------------
   Checkbox and Radio
---------------------------------------------------- */

form input[type="checkbox"],
form input[type="radio"] {
    margin-right: 6px;
}


/* ----------------------------------------------------
   File Input
---------------------------------------------------- */

form input[type="file"] {
    margin-bottom: 14px;
}


/* ----------------------------------------------------
   Select Dropdown
---------------------------------------------------- */

form select {
    cursor: pointer;
}


/* ----------------------------------------------------
   Buttons
---------------------------------------------------- */

form button,
form input[type="submit"],
form input[type="reset"],
form input[type="button"] {

    display: inline-block;
    padding: 10px 18px;

    border: 2px solid #000;
    background: #000;
    color: #fff;

    cursor: pointer;
}

/* ----------------------------------------------------
   Button Hover
---------------------------------------------------- */

form button:hover,
form input[type="submit"]:hover,
form input[type="reset"]:hover,
form input[type="button"]:hover {

    background: #f5f5f5;
    color: #000;
}
/* ----------------------------------------------------
   Focus State (Accessibility)
---------------------------------------------------- */

form input:focus,
form textarea:focus,
form select:focus {

    outline: none;
    border-color: #000;
    box-shadow: 0 0 0 2px rgba(0,0,0,0.2);
}

/* Labels */

form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

/* Field validation message */

.form-error {
    margin-top: -4px;
    margin-bottom: 16px;
    font-size: 0.85rem;
    color: #8B0000;
}

/* Highlight invalid fields */

form input.field-error,
form textarea.field-error {
    border: 3px solid #8B0000;
}

/* ------------------------------
   Form Alerts
--------------------------------*/

.form-alert {
    margin-bottom: 16px;
    padding: 12px 16px;
    border: 2px solid #000;
    background: #fff;
    font-size: 0.95rem;
}

.form-alert-error {
    border-left: 6px solid #8B0000;
}

.form-alert strong {
    margin-right: 6px;
    color: #8B0000;
}

.form-alert-success {
    border-left: 6px solid #006400;
}

.form-alert-success strong {
    color: #006400;
}

/* CSS improvement for logout Since logout is a form:*/
.logout-form {
    display: inline;
    margin: 0;
}

.logout-link {
    background: none;
    border: none;
    font: inherit;
    color: #000;
    cursor: pointer;
}

/* About Page Layout */
.about-section,
.journey-section,
.why-section,
.topics-section {
    max-width: 900px;
    margin: 0 auto 48px auto;
    padding: 0 20px;
}

/* Main heading / lead heading */
.about-section h2 {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
}

/* Section headings */
.journey-section h2,
.why-section h2,
.topics-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 18px;
}

/* Paragraph styling */
.about-section p,
.journey-section p,
.why-section p,
.topics-section p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

/* Lists */
.about-section ul,
.topics-section ul {
    margin: 16px 0 20px 20px;
}

.about-section li,
.topics-section li {
    margin-bottom: 6px;
}

/* Lead intro paragraph */
.about-section .lead {
    font-size: 1.2rem;
    font-weight: 500;
}

/* Improve readability for long lines */
.about-section,
.journey-section,
.why-section,
.topics-section {
    color: #000000;
}

/* Optional: subtle section divider */
.journey-section,
.why-section,
.topics-section {
    border-top: 1px solid #e5e5e5;
    padding-top: 32px;
}
/* ------------------------------
  Row divider
--------------------------------*/
.row + .row {
    border-top: 1px solid #e5e5e5;
    padding-top: 35px;
    margin-top: 35px;
}
/* ------------------------------
   Category -- Layout V1
--------------------------------*/
.category {
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px 20px;
}

.intro {
    margin-bottom: 30px;
}

.row {
    margin: 40px 0;
    overflow: hidden;
}

.diagram {
    width: 420px;
    max-width: 42%;
    margin: 0;
}

.diagram img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 6px;
}

.diagram figcaption {
    margin-top: 6px;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
}

.row.two-col .diagram {
    float: left;
    margin-right: 24px;
    margin-bottom: 12px;
}

.row.two-col.reverse .diagram {
    float: right;
    margin-left: 24px;
    margin-bottom: 12px;
}

.cat-content {
    line-height: 1.6;
}

.cat-content::after {
    content: "";
    display: block;
    clear: both;
}

h1 {
    margin-bottom: 10px;
}

h2 {
    margin-top: 0;
    margin-bottom: 10px;
}

p {
    margin-bottom: 12px;
}

ul {
    margin: 10px 0 14px 18px;
}

/* ideation-Box */
.insight-box,
.design-box,
.architecture-box,
.thought-box {
    border-left: 4px solid #000;
    background: #f8f8f8;
    padding: 14px;
    margin: 16px 0;
}

.design-box {
    border-left-color: #2c7be5;
}

.architecture-box {
    border-left-color: #28a745;
}

.thought-box {
    border-left-color: #ff9800;
}
.cta-box {
    max-width: 720px;
    margin: 48px auto;
    padding: 28px;
    border: 1px solid #000;
    background: #fafafa;
}

.cta-box h2 {
    margin-top: 0;
    margin-bottom: 12px;
}

.cta-box p {
    margin-bottom: 20px;
    line-height: 1.6;
}

.cta-button {
    display: inline-block;
    padding: 10px 18px;
    border: 2px solid #000;
    text-decoration: none;
    color: #000;
    font-weight: 500;
}

.cta-button:hover,
.cta-button:focus {
    background: #000;
    color: #fff;
}

.row.single {
    max-width: 850px;
    margin: 40px auto;
}

.row.single .diagram {
    float: none;
    width: 100%;
    max-width: 100%;
    margin: 0 0 15px 0;
}

@media (max-width: 900px) {
    .row.two-col .diagram,
    .row.two-col.reverse .diagram {
        float: none;
        width: 100%;
        max-width: 100%;
        margin: 0 0 15px 0;
    }
}
/**
For Curios Box in contact Me Page
**/
.content-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 24px;
    align-items: start;
}

.form-panel,
.promo-panel {
    min-width: 0;
}

@media (max-width: 768px) {
    .content-split {
        grid-template-columns: 1fr;
    }
}

/** Curious Box **/
.curious-box {
    padding: 16px 18px;
    border-left: 4px solid #000;
    background: #f7f7f7;
}

.curious-text {
    margin: 0 0 10px 0;
    line-height: 1.6;
}

.curious-box .icon {
    margin-right: 6px;
}

.curious-link {
    color: #000;
    text-decoration: none;
}

.curious-link:hover,
.curious-link:focus {
    text-decoration: underline;
    text-underline-offset: 3px;
}
/**
Policy Date
**/
.policy-date {
    font-size: 0.9rem;
    color: #555;
    margin-top: -8px;
    margin-bottom: 20px;
}

/** Copyright **/
.footer-nav a {
    text-decoration: none;
    color: #000;
}

.footer-nav a:hover,
.footer-nav a:focus {
    text-decoration: underline;
    text-underline-offset: 3px;
}
.copyright {
    font-size: 0.85rem;
}