/* ============================================================
    DESIGN TOKENS — mirrors style.css :root
    ============================================================ */
:root {
    --dark-bg:        #020617;
    --dark-gray:      #090f20;
    --dark-blue:      #090f20;
    --light-text:     #ccc;
    --accent-blue:    #007bff;
    --accent-blue-hover: #0056b3;
    --border-color:   #3b3f54;
    --bg-secondary:   #16161D;
    --color-purple:   #5e11e3;
    --color-yellow:   #FFAA00;
    --color-orange:   #f97316;
    --color-green:    #00ff00;
    --color-blue:     #1673bd;
    --color-red:      #dc2626;
    --color-pink:     #B9375D;
    --accent-cyan:    #00D9FF;
    --accent-magenta: #FF0080;
    --transition-speed: 0.3s;
    --border-radius:  5px;
    --tag-ai:         #8A2BE2;
    --tag-orange: #e34f26;

    /* Tool card accent colours */
    --col-g: #28c940;   /* green  – wallpapers */
    --col-c: #00D9FF;   /* cyan   – netpulse   */
    --col-p: #22d3a0;   /* purple – oss        */
    --col-a: #f97316;   /* orange – url-codec  */

    /* Responsive font scale – mobile-first */
    --font-p:  14px;
    --font-h1: 1.5rem;
    --font-h2: 1.2rem;
    --font-h3: 1.08rem;
    --font-a:  14px;
    --font-i:  13.5px;
}

/* ============================================================
    RESET & BASE
    ============================================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: "Saira", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--dark-bg);
    color: var(--light-text);
    line-height: 1.8;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

h1 {
  color: var(--accent-blue);
  font-size: var(--font-h1);
}

.container {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 0 10px;
}

/* ============================================================
    NAVBAR  (mirrors style.css)
    ============================================================ */
.navbar {
    background-color: var(--dark-blue);
    padding: 5px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,.2);
    position: relative;
    z-index: 1000;
}
.navbar::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 2px;
    background: linear-gradient(90deg,
    purple 0%, purple 16.67%,
    orange 16.67%, orange 33.33%,
    green  33.33%, green  50%,
    navy   50%,   navy   66.67%,
    hotpink 66.67%, hotpink 83.33%,
    red    83.33%, red    100%);
    background-size: 120px 2px;
    animation: navbarSlidingBorder 2s linear infinite;
}
@keyframes navbarSlidingBorder {
    0%   { background-position: 0 0; }
    100% { background-position: 120px 0; }
}
.navbar .container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}
.navbar .logo {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--light-text);
    width: 100%;
    justify-content: space-between;
}
.logo-text {
    display: flex;
    align-items: center;
    gap: 8px;
}
.logo-text a { text-decoration: none; margin-top: 5px; font-size: var(--font-a); }
.logo-text img { width: 23px; height: 23px; }

/* Typewriter brand */
.typewriter {
    font-family: "Saira", sans-serif;
    white-space: pre;
    font-weight: 500;
    color: #f0f0f0;
    font-size: 1.1rem;
}
.typewriter::after {
    content: "_";
    margin-left: 2px;
    animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .typewriter::after { animation: none; } }

/* hamburger */
.menu-toggle {
    display: block;
    font-size: 1.3rem;
    cursor: pointer;
    background: var(--dark-blue);
    border: 2px solid #8B5CF6;
    padding: 2px 4px;
    color: #8B5CF6;
}

/* nav links */
.nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0;
    width: 100%;
    background-color: var(--dark-blue);
    overflow: hidden;
    max-height: 0;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    transition: max-height 0.3s ease-out;
}
.nav-links.active { max-height: 450px; }
.navbar nav ul {
    display: flex;
    flex-direction: column;
    list-style: none;
    margin: 0; padding: 0;
    text-align: center;
}
.navbar nav ul li a {
    color: var(--light-text);
    padding: 10px 45px;
    width: 97%;
    display: inline-block;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    margin: 5px 0;
    font-size: var(--font-a);
}
.navbar nav ul li:hover a.home       { color: var(--color-yellow);  background-color: #2c2b25; }
.navbar nav ul li:hover a.projects   { color: var(--color-purple);  background-color: #27252c; }
.navbar nav ul li:hover a.programming{ color: var(--color-orange);  background-color: #282323; }
.navbar nav ul li:hover a.hacking    { color: var(--color-green);   background-color: #273323; }
.navbar nav ul li:hover a.networking { color: var(--color-blue);    background-color: #212528; }
.navbar nav ul li:hover a.ai         { color: var(--color-pink);    background-color: #2b2326; }
.navbar nav ul li:hover a.game       { color: var(--color-red);     background-color: #332923; }

/* ============================================================
    TOOLS SECTION WRAPPER
    ============================================================ */
.tools-section {
    flex: 1;
    padding: 10px 10px 50px;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
}

.tools-section .tools-intro{
  margin-bottom: 30px;
  font-size: var(--font-p);
}

/* ==========================================================================
   MAIN CONTENT LAYOUT (Mobile-first: Single column)
   ========================================================================== */

.main-content-wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 0 auto;
  padding: 30px 0;
}

.left-column,
.right-column {
  padding: 0 10px;
}

.right-column img {
  width: 100%;
  height: 100%;
}


/* ============================================================
    TERMINAL CHROME HEADER
    ============================================================ */
.trm-header {
    background: #0a0e1a;
    border: 1px solid #1e2540;
    border-radius: 8px;
    margin-bottom: 32px;
    overflow: hidden;
    font-family: "JetBrains Mono", monospace;
    box-shadow: 0 8px 32px rgba(0,0,0,.6);
}
.trm-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 10px 16px;
    background: #111827;
    border-bottom: 1px solid #1e2540;
}
.trm-dot {
    width: 12px; height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}
.trm-bar-title {
    margin-left: 10px;
    font-size: 12px;
    color: #4b5563;
    letter-spacing: 0.5px;
}
.trm-prompt-line {
    padding: 14px 20px 6px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.trm-ps1  { color: #28c940; font-weight: 600; }
.trm-cmd  { color: #e5e7eb; }
.trm-cursor {
    display: inline-block;
    width: 9px; height: 15px;
    background: #e5e7eb;
    vertical-align: middle;
    animation: blink 1s steps(1) infinite;
    margin-left: 2px;
}
.trm-ls-output {
    padding: 10px 20px 18px;
    font-size: 12.5px;
    line-height: 1.9;
    color: #9ca3af;
}
.ls-perm { color: #4b9cd3; letter-spacing: -0.3px; }
.ls-dir  { color: #00D9FF; font-weight: 600; }
.ls-dim  { color: #4b5563; font-size: 11px; }

/* ============================================================
    TOOLS GRID
    ============================================================ */
.tools-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
}

/* ============================================================
    TOOL CARD (.tc) — base
    ============================================================ */
.tc {
    position: relative;
    background: #070c1a;
    border: 1px solid #1e2540;
    border-radius: 8px;
    overflow: hidden;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed), border-color var(--transition-speed);
    display: flex;
    flex-direction: column;
}
.tc:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,.55);
}

/* Colour-variant border accent on top edge */
.tc::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 2px;
}
.tc.g::before { background: var(--color-red); box-shadow: 0 0 8px var(--color-red); }
.tc.c::before { background: var(--color-pink); box-shadow: 0 0 8px var(--color-pink); }
.tc.p::before { background: var(--col-p); box-shadow: 0 0 8px var(--col-p); }
.tc.a::before { background: var(--color-orange); box-shadow: 0 0 8px var(--color-orange); }

.tc.g:hover { border-color: var(--color-red); box-shadow: 0 12px 40px rgba(201, 40, 40, 0.15); }
.tc.c:hover { border-color: var(--color-pink); box-shadow: 0 12px 40px rgba(255, 0, 157, 0.15); }
.tc.p:hover { border-color: var(--col-p); box-shadow: 0 12px 40px rgba(41, 234, 128, 0.15); }
.tc.a:hover { border-color: var(--color-orange); box-shadow: 0 12px 40px rgba(249,115,22,.15); }

/* Scanline overlay */
.tc-scanline {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(255,255,255,.012) 3px, rgba(255,255,255,.012) 4px);
    pointer-events: none;
    z-index: 0;
}

/* Title bar */
.tc-titlebar {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: #0d1424;
    border-bottom: 1px solid #1e2540;
}
.tc-titlebar-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.tc-icon img {
    width: 28px; 
    height: 28px;
    border-radius: 5px;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
}
/* .icon-g { background: rgba(40,201,64,.15);  color: var(--col-g); border: 1px solid rgba(40,201,64,.3); }
.icon-c { background: rgba(0,217,255,.12);  color: var(--col-c); border: 1px solid rgba(0,217,255,.3); }
.icon-p { background: rgba(41, 234, 121, 0.15); color: var(--col-p); border: 1px solid rgba(41, 234, 57, 0.3); }
.icon-a { background: rgba(249,115,22,.15); color: var(--col-a); border: 1px solid rgba(249,115,22,.3); } */

.tc-proc {
    font-family: "JetBrains Mono", monospace;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.3px;
}
.col-g { color: var(--color-red); }
.col-c { color: var(--color-pink); }
.col-p { color: var(--col-p); }
.col-a { color: var(--color-orange); }

.tc-status {
    font-family: "JetBrains Mono", monospace;
    font-size: 10px;
    color: #28c940;
    letter-spacing: 0.5px;
    opacity: .75;
}

/* Card body */
.tc-body {
    position: relative;
    z-index: 1;
    padding: 18px 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}
.tc-path {
    font-family: "JetBrains Mono", monospace;
    font-size: 10.5px;
    color: #374151;
    letter-spacing: 0.2px;
}
.tc-title {
    font-size: var(--font-h3);
    font-weight: 700;
    color: #e5e7eb;
    line-height: 1.3;
}
.tc-desc {
    font-size: var(--font-p);
    color: #8a94a8;
    line-height: 1.65;
}

/* Tags */
.tc-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}
.tag {
    font-family: "JetBrains Mono", monospace;
    font-size: 10px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 4px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}
.tag-g   { background: rgba(201, 40, 40, 0.12);  color: var(--color-red); border: 1px solid rgba(201, 59, 40, 0.25); }
.tag-c   { background: rgba(255, 0, 157, 0.1);  color: var(--color-pink); border: 1px solid rgba(255, 0, 255, 0.25); }
.tag-p   { background: rgba(41, 234, 128, 0.12); color: var(--col-p); border: 1px solid rgba(47, 234, 41, 0.25); }
.tag-a   { background: rgba(249,115,22,.12); color: var(--color-orange); border: 1px solid rgba(249,115,22,.25); }
.tag-dim { background: rgba(255,255,255,.04); color: #4b5563;    border: 1px solid #1e2540; }

/* Separator */
.tc-sep {
    height: 1px;
    background: #1e2540;
    margin: 2px 0;
}

/* Action buttons */
.tc-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 4px;
}
.btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border-radius: 5px;
    font-size: 12.5px;
    font-weight: 600;
    font-family: "Saira", sans-serif;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    border: 1px solid transparent;
    white-space: nowrap;
}
.btn-g   { background: rgba(201, 40, 40, 0.12);  color: var(--color-red); border-color: rgba(201, 40, 40, 0.3); }
.btn-c   { background: rgba(255, 0, 157, 0.1);  color: var(--color-pink); border-color: rgba(255, 0, 255, 0.25); }
.btn-p   { background: rgba(41, 234, 128, 0.12); color: var(--col-p); border-color: rgba(47, 234, 41, 0.25); }
.btn-a   { background: rgba(249,115,22,.12); color: var(--color-orange); border-color: rgba(249,115,22,.3); }
.btn-dim { background: rgba(255,255,255,.04); color: #6b7280; border-color: #1e2540; }

.btn-g:hover   { background: rgba(201, 40, 48, 0.22);  color: #fff; border-color: var(--color-red); }
.btn-c:hover   { background: rgba(255, 0, 157, 0.2);  color: #fff; border-color: var(--color-pink); }
.btn-p:hover   { background: rgba(41, 234, 99, 0.22); color: #fff; border-color: var(--col-p); }
.btn-a:hover   { background: rgba(249,115,22,.22); color: #fff; border-color: var(--color-orange); }
.btn-dim:hover { background: rgba(255,255,255,.08); color: #e5e7eb; border-color: #374151; }

/* ── Color Space card — violet/purple accent ── */
.tc.v                          { --tc-accent: #a855f7; --tc-dim: rgba(168,85,247,0.10); --tc-border: rgba(168,85,247,0.30); }
.tc.v:hover                    { border-color: rgba(168,85,247,0.55); box-shadow: 0 0 24px rgba(168,85,247,0.15); }
.icon-v                        { background: rgba(168,85,247,0.12); border: 1px solid rgba(168,85,247,0.30); }
.col-v                         { color: #a855f7; }
.tag-v                         { background: rgba(168,85,247,0.10); color: #a855f7; border: 1px solid rgba(168,85,247,0.30); }
.btn-v                         { background: rgba(168,85,247,0.12); color: #a855f7; border: 1px solid rgba(168,85,247,0.35); }
.btn-v:hover                   { background: rgba(168,85,247,0.22); box-shadow: 0 0 14px rgba(168,85,247,0.25); }

.about-website h3,
.ad-block h3,
.related-tags h3 {
  color: var(--tag-orange);
  margin-bottom: 15px;
  position: relative;
  padding-bottom: 10px;
  text-align: center;
}

.about-website h3::after,
.ad-block h3::after,
.related-tags h3::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 1px;
  background-color: #ffffff;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  border-radius: 2px;
}

.about-website p {
  color: #ccc;
  text-align: left;
  padding: 10px 0;
}

.about-website .homepage {
  color: #007bff;
  font-weight: 500;
  text-decoration: underline;
}

.about-website .homepage:hover {
  color: var(--accent-blue);
  text-underline-offset: 5px;
}

.typewriter-scan {
  position: relative;
  display: inline-block;
  background: linear-gradient(90deg, var(--accent-blue) 50%, #f0f0f0 50%);
  background-size: 200% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: background-position 0.8s ease;
}

.typewriter-scan:hover {
  background-position: 0 0;
}

/* ==========================================================================
   RELATED TOPICS
   ========================================================================== */
.about-website,
.related-topics,
.related-tags,
.conclusion-section,
.experience-section {
  background-color: var(--dark-gray);
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  margin-bottom: 20px;
  border: 1px solid var(--color-purple);
}

.related-topics ul {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.related-topics ul li {
  border-bottom: 1px solid #444444;
  padding: 10px 0;
}

.related-topics ul li:last-child {
  border-bottom: none;
}

.related-topics .content li {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  text-align: left;
  gap: 10px;
}

.related-topics li a {
  color: var(--light-text);
  text-decoration: none;
  transition: color 0.3s ease;
  display: block;
  padding: 5px 0;
  text-align: left;
}

.related-topics li:last-child {
  margin-bottom: 0;
}

.related-topics li i {
  background: rgba(94, 48, 174, 0.509);
  border-radius: 6px;
  padding: 10px;
  transition: all 0.5s ease;
}

.related-topics li:hover {
  padding-left: 8px;
}

.related-topics li:hover i {
  background: var(--tag-ai);
  color: whitesmoke;
  box-shadow: 0 0 15px rgba(124, 58, 237, 0.5);
}

/* Button Styling */
.button-container {
  margin-top: 35px;
  display: flex;
  justify-content: center;
}

.btn-cyber {
  position: relative;
  background: transparent;
  border: none;
  padding: 12px 30px;
  color: white;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  cursor: pointer;
}

.btn-bg {
  position: absolute;
  inset: 0;
  background: #7c3aed;
  transform: translate(-6px, -6px);
  border-radius: 4px;
  z-index: 1;
  transition: transform 0.2s ease;
}

.btn-border {
  position: absolute;
  inset: 0;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  z-index: 2;
}

.btn-text {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
}

.related-topics .button-container .btn-cyber a {
  color: whitesmoke;
  text-decoration: none;
}

.btn-cyber:hover .btn-bg {
  transform: translate(0, 0);
}

.blink {
  animation: blinker 1s linear infinite;
}

@keyframes blinker {
  50% { opacity: 0; }
}

/* ==========================================================================
   RELATED TAGS
   ========================================================================== */

.related-tags .tag-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}

.related-tags .tag {
  color: var(--light-text);
  padding: 8px 15px;
  font-weight: 400;
  transition: background-color var(--transition-speed) ease, transform 0.1s ease;
  cursor: pointer;
  border: none;
}

.related-tags ol {
  padding-left: 20px;
}

.related-tags a {
  text-decoration: none;
}

.related-tags a:hover .tag {
  color: var(--color-purple);
}

/* ==========================================================================
   RAINBOW TEXT & ACTION BUTTONS
   ========================================================================== */

.conclusion-section {
  text-align: left;
  margin-top: 15px;
}

.conclusion-section .last {
  margin-top: 10px;
}

.rainbow-text {
  font-weight: bold;
  background: linear-gradient(45deg,
    #ff0000, #ff8000, #ffff00, #80ff00,
    #00ff00, #00ff80, #00ffff, #0080ff,
    #0000ff, #8000ff, #ff00ff, #ff0080);
  background-size: 400% 400%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: rainbowShift 3s ease-in-out infinite;
  text-shadow: 10px 10px 0 30px rgba(255, 255, 255, 0.3);
}

@keyframes rainbowShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.action-buttons {
  display: flex;
  gap: 15px;
  margin: 20px 0;
  justify-content: center;
  flex-wrap: wrap;
  flex-direction: row;
}

.action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 5px;
  border-radius: 5px;
  font-weight: 400;
  font-size: var(--p);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 50%;
  max-width: 200px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.download-btn {
  background: linear-gradient(60deg, #4CAF50, #007bff);
  color: white;
}

.download-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(76, 175, 80, 0.4);
}

.download-btn:active {
  transform: translateY(-1px);
}

.github-btn {
  background: linear-gradient(to right, #ff416c, #42279d);
  color: white;
}

.github-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(255, 65, 108, 0.4);
}

/* ==========================================================================
   KEY POINTS SECTION
   ========================================================================== */

.key {
  background-color: var(--dark-bg);
  padding: 20px;
  border-radius: 5px;
  margin-top: 20px;
  border: 1px solid var(--code-border);
}

.key h3 {
  color: var(--tag-orange);
  position: relative;
  padding-bottom: 8px;
}

.key ul {
  list-style: none;
  padding: 0;
}

.key ul li {
  color: #e5e7eb;
  position: relative;
  padding-left: 10px;
}

.key ul li::marker {
  content: '\2022';
  color: var(--prerequisites-icon-color);
  font-weight: bold;
  display: inline-block;
  width: 1em;
  font-size: 1.3rem;
}

/* ==========================================================================
   MOVING BORDER & PROJECT CARDS
   ========================================================================== */

@property --glow-deg {
  syntax: "<angle>";
  inherits: true;
  initial-value: -90deg;
}

@property --clr-1 { syntax: "<color>"; inherits: true; initial-value: #4285f4; }
@property --clr-2 { syntax: "<color>"; inherits: true; initial-value: #ea4335; }
@property --clr-3 { syntax: "<color>"; inherits: true; initial-value: #fbbc05; }
@property --clr-4 { syntax: "<color>"; inherits: true; initial-value: #34a853; }

.about-website.moving-border {
  --gradient-glow: var(--clr-1), var(--clr-2), var(--clr-3), var(--clr-4), var(--clr-1);
  position: relative;
  padding: 20px;
  background: #1f1f1f;
  border: 3px solid transparent;
  border-radius: 15px;
  background:
    linear-gradient(#1f1f1f 0 0) padding-box,
    conic-gradient(from var(--glow-deg), var(--gradient-glow)) border-box;
  font-size: 16px;
  font-weight: 500;
  color: #e8eaed;
  cursor: pointer;
  isolation: isolate;
  transition: all 0.3s ease;
  animation: breathe-glow 3s ease-in-out infinite;
}

.project-card {
  --gradient-glow: var(--clr-1), var(--clr-2), var(--clr-3), var(--clr-4), var(--clr-1);
  position: relative;
  padding: 20px;
  background: #1f1f1f;
  border: 3px solid transparent;
  border-radius: 5px;
  background:
    linear-gradient(#181818 0 0) padding-box,
    conic-gradient(from var(--glow-deg), var(--gradient-glow)) border-box;
  font-size: 16px;
  font-weight: 500;
  color: #e8eaed;
  cursor: pointer;
  isolation: isolate;
  transition: all 0.3s ease;
  animation: rotate-border 2s linear infinite;
}

@keyframes rotate-border {
  0% { --glow-deg: 0deg; }
  100% { --glow-deg: 360deg; }
}

@keyframes breathe-glow {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(255, 255, 255, 0);
  }
  50% {
    transform: scale(1.01);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
  }
}

.moving-border {
  position: relative;
  cursor: pointer;
  padding: 20px;
  background: #1f1f1f;
  border-radius: 28px;
  border: 3px solid var(--prerequisites-icon-color);
  transition: all 0.3s ease;
}

.moving-border.suggest {
  border: 3px solid var(--accent-blue-hover);
}

.moving-border.error {
  border: 3px solid red;
}

.about-website.moving-border:hover {
  transform: translateY(-2px);
  --glow-intensity: 0.3;
}

.moving-border {
  margin-bottom: 30px;
}

.moving-border:hover {
  transform: scale(1.1);
}


/* ==========================================================================
   WALLPAPER & COLOR PALETTE SECTIONS
   ========================================================================== */

.wallpaper,
.color-palette {
  border: 1px solid var(--color-purple);
  padding: 10px;
  margin-bottom: 30px;
  border-radius: 5px;
}

.wallpaper h3,
.color-palette h3,
.related-topics h3 {
  color: var(--terminal-output);
  text-align: center;
  background: var(--color-purple);
}

.wallpaper p,
.color-palette p,
.related-topics p {
  color: #ccc;
  text-align: center;
  margin-bottom: 15px;
  margin-top: 10px;
}

.related-topics p {
  text-decoration-color: var(--tag-ai);
  text-decoration: underline;
  text-underline-offset: 5px;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  max-width: 800px;
  margin: 0 auto;
  margin-bottom: 20px;
}

.image-card img {
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.image-card img:hover {
  transform: scale(1.02);
  border: 1px solid var(--color-purple);
}

.button {
  text-align: center;
  margin-bottom: 10px;
  margin-top: 30px;
}

.button .wallpaper-button,
.button .color-button,
.button .related-button {
  border: 2px dashed var(--color-purple);
  color: #fff;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-decoration: none;
  font-size: 0.8rem;
}

.button .wallpaper-button:hover,
.button .color-button:hover,
.button .related-button:hover {
  background-color: var(--color-purple);
}

/* Palette Grid */
.palette-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.palette-card {
  background: var(--bg-secondary);
  border: 1px solid var(--sidebar-bg);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.3s ease;
  cursor: pointer;
  position: relative;
}

.palette-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-magenta));
  border-radius: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.palette-card:hover::before {
  opacity: 0.5;
}

.palette-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* Color Wave */
.color-wave {
  height: 180px;
  display: flex;
  position: relative;
  overflow: hidden;
}

.wave-bar {
  flex: 1;
  position: relative;
  transition: var(--transition);
  cursor: pointer;
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  z-index: 10;
}

/* Wave Patterns - 4 Colors */
.color-wave.colors-4 .wave-bar:nth-child(1),
.color-wave.colors-4 .wave-bar:nth-child(4) {
  transform: translateY(-10px);
}

.color-wave.colors-4 .wave-bar:nth-child(2),
.color-wave.colors-4 .wave-bar:nth-child(3) {
  transform: translateY(-35px);
}

.palette-card:hover .color-wave.colors-4 .wave-bar:nth-child(1),
.palette-card:hover .color-wave.colors-4 .wave-bar:nth-child(4) {
  transform: translateY(-20px);
}

.palette-card:hover .color-wave.colors-4 .wave-bar:nth-child(2),
.palette-card:hover .color-wave.colors-4 .wave-bar:nth-child(3) {
  transform: translateY(-45px);
}

/* Wave Patterns - 5 Colors */
.color-wave.colors-5 .wave-bar:nth-child(1),
.color-wave.colors-5 .wave-bar:nth-child(5) {
  transform: translateY(0);
}

.color-wave.colors-5 .wave-bar:nth-child(2),
.color-wave.colors-5 .wave-bar:nth-child(4) {
  transform: translateY(-20px);
}

.color-wave.colors-5 .wave-bar:nth-child(3) {
  transform: translateY(-40px);
}

.palette-card:hover .color-wave.colors-5 .wave-bar:nth-child(1),
.palette-card:hover .color-wave.colors-5 .wave-bar:nth-child(5) {
  transform: translateY(-10px);
}

.palette-card:hover .color-wave.colors-5 .wave-bar:nth-child(2),
.palette-card:hover .color-wave.colors-5 .wave-bar:nth-child(4) {
  transform: translateY(-30px);
}

.palette-card:hover .color-wave.colors-5 .wave-bar:nth-child(3) {
  transform: translateY(-50px);
}

/* Color Code Tooltip */
.wave-bar::after {
  content: attr(data-color);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Source Code Pro', monospace;
  font-size: 10px;
  font-weight: 600;
  color: white;
  background: rgba(0, 0, 0, 0.9);
  padding: 5px 9px;
  border-radius: 6px;
  opacity: 0;
  transition: opacity 0.3s;
  backdrop-filter: blur(10px);
  white-space: nowrap;
  pointer-events: none;
  z-index: 10;
}

.wave-bar:hover::after {
  opacity: 1;
}

/* Card Info */
.card-info {
  padding: 24px;
  color: var(--terminal-output);
}

.card-title {
  font-size: var(--font-p);
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.5px;
}

.card-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.tag {
  padding: 4px 12px;
  background: rgba(0, 217, 255, 0.1);
  border: 1px solid rgba(0, 217, 255, 0.3);
  border-radius: 6px;
  font-size: 10px;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-actions {
  display: flex;
  gap: 8px;
}

.card-btn {
  flex: 1;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: var(--font-i);
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  transition: var(--transition);
}

.card-btn:hover {
  background: var(--surface-hover);
  color: var(--text-primary);
  border-color: var(--accent-cyan);
}

/* ============================================================
   BANNER — Featured Open-Source Projects
   Scoped tokens — inherits :root vars where possible
   ============================================================ */

.banner {
  /* scoped design tokens */
  --b-bg:     #0e1117;
  --b-s1:     #151922;
  --b-s2:     #1a2030;
  --b-bd:     rgba(255,255,255,.07);
  --b-bd2:    rgba(255,255,255,.13);
  --b-te:     #e8ecf0;
  --b-tm:     #8a9ab0;
  --b-tf:     #4a5568;
  --b-green:  #22d3a0;
  --b-gd:     rgba(34,211,160,.09);
  --b-gb:     rgba(34,211,160,.28);
  --b-purple: #a78bfa;
  --b-pd:     rgba(167,139,250,.09);
  --b-pb:     rgba(167,139,250,.28);
  --b-blue:   #60a5fa;
  --b-bld:    rgba(96,165,250,.09);
  --b-blb:    rgba(96,165,250,.28);
  --b-cyan:   #22d3ee;
  --b-cd:     rgba(34,211,238,.09);
  --b-cb:     rgba(34,211,238,.28);
  --b-amber:  #fbbf24;
  --b-ad:     rgba(251,191,36,.09);
  --b-ab:     rgba(251,191,36,.28);
  --b-red:    #f87171;
  --b-rd:     rgba(248,113,113,.09);
  --b-rb:     rgba(248,113,113,.28);
  --b-mono:   'JetBrains Mono','Fira Code',monospace;
  --b-r-sm:   6px;
  --b-r-md:   10px;
  --b-r-lg:   14px;
  --b-r-xl:   18px;
  --b-r-full: 9999px;
  --b-ease:   180ms cubic-bezier(.16,1,.3,1);

  /* layout */
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--b-bd2);
  border-radius: var(--b-r-xl);
  overflow: hidden;
  background: var(--b-s1);
  box-shadow:
    0 24px 60px rgba(0,0,0,.5),
    0 0 0 1px rgba(255,255,255,.04) inset;
  font-family: 'Saira', sans-serif;
  margin-bottom: 30px;
}

/* ---------- HEADER ---------- */
.banner-header {
  padding: 1.3rem 1.3rem .95rem;
  background: var(--b-s2);
  border-bottom: 1px solid var(--b-bd);
  position: relative;
  overflow: hidden;
}

/* animated gradient top line */
.banner-header::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--b-green),
    var(--b-cyan),
    var(--b-purple),
    var(--b-blue),
    var(--b-amber),
    var(--b-green)
  );
  background-size: 300% 100%;
  animation: banner-line 5s linear infinite;
}

@keyframes banner-line {
  0%   { background-position: 0% 0; }
  100% { background-position: 300% 0; }
}

/* live badge */
.banner-count-badge {
  position: absolute;
  top: .85rem;
  right: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--b-mono);
  font-size: .58rem;
  color: var(--b-tf);
  background: var(--b-bg);
  border: 1px solid var(--b-bd);
  padding: 3px 9px;
  border-radius: var(--b-r-full);
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* chip */
.banner-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--b-mono);
  font-size: var(--font-i);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--b-green);
  background: var(--b-gd);
  border: 1px solid var(--b-gb);
  padding: 3px 10px;
  border-radius: var(--b-r-full);
  margin-bottom: .5rem;
}

.banner-chip svg {
  width: 10px;
  height: 10px;
  stroke: var(--b-green);
  flex-shrink: 0;
}

/* title */
.banner-title {
  font-weight: 700;
  color: var(--b-te);
  line-height: 1.3;
  margin-bottom: .25rem;
  /* override global h3 color */
  color: var(--b-te) !important;
  border: none !important;
  padding: 0 !important;
}

.banner-title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--b-green), var(--b-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* sub */
.banner-sub {
  color: var(--b-tm);
  line-height: 1.5;
  margin: 0;
}

/* stats row */
.banner-stats {
  display: flex;
  gap: .45rem;
  margin-top: .75rem;
}

.stat-pill {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 4px;
  border-radius: var(--b-r-md);
  border: 1px solid var(--b-bd);
  background: rgba(255,255,255,.02);
  transition: background var(--b-ease), border-color var(--b-ease);
  cursor: default;
}

.stat-pill:hover {
  background: rgba(255,255,255,.055);
  border-color: var(--b-bd2);
}

.stat-pill-num {
  font-family: var(--font-i);
  font-size: .85rem;
  font-weight: 700;
  color: var(--b-te);
  line-height: 1;
}

.stat-pill-lbl {
  font-size: var(--font-i);
  color: var(--b-tf);
  margin-top: 3px;
  text-transform: uppercase;
  letter-spacing: .07em;
}

/* ---------- TICKER ---------- */
.banner-ticker {
  padding: .5rem 1.1rem;
  border-bottom: 1px solid var(--b-bd);
  overflow: hidden;
  position: relative;
}

.banner-ticker::before,
.banner-ticker::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 28px;
  z-index: 2;
  pointer-events: none;
}

.banner-ticker::before {
  left: 0;
  background: linear-gradient(90deg, var(--b-s1), transparent);
}

.banner-ticker::after {
  right: 0;
  background: linear-gradient(270deg, var(--b-s1), transparent);
}

.ticker-track {
  display: flex;
  gap: 6px;
  width: max-content;
  animation: ticker-scroll 20s linear infinite;
  font-size: var(--font-i);
  border-radius: 5px;
  padding: 0 5px
}

.ticker-track:hover {
  animation-play-state: paused;
}

.ticker__pill {
  border-radius: 5px;
  padding: 0 5px
}

@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker-pill {
  font-family: var(--b-mono);
  font-size: .58rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--b-r-full);
  white-space: nowrap;
  border: 1px solid;
  cursor: default;
  transition: transform var(--b-ease), opacity var(--b-ease);
  user-select: none;
}

.ticker-pill:hover {
  transform: scale(1.1);
  opacity: .85;
}

/* ---------- CARD LIST ---------- */
.banner-list {
  display: flex;
  flex-direction: column;
  padding: .6rem .7rem;
  gap: .45rem;
  max-height: 400px;
  overflow: hidden;
  position: relative;
}

/* bottom fade-out */
.banner-list::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--b-s1));
  pointer-events: none;
  z-index: 2;
}

@keyframes new-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .5; }
}

/* ---------- CTA ---------- */
.banner-cta {
  margin: .7rem .7rem .7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: .6rem 1rem;
  border-radius: var(--b-r-lg);
  background: var(--b-gd);
  border: 1px solid var(--b-gb);
  color: var(--b-green);
  font-weight: 700;
  text-decoration: none;
  transition:
    background  var(--b-ease),
    box-shadow  var(--b-ease),
    transform   var(--b-ease);
  position: relative;
  overflow: hidden;
  font-family: 'Saira', sans-serif;
}

.banner-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(34,211,160,.13), transparent);
  opacity: 0;
  transition: opacity var(--b-ease);
}

.banner-cta:hover {
  background: rgba(34,211,160,.16);
  box-shadow: 0 0 0 3px rgba(34,211,160,.15);
  transform: translateY(-1px);
}

.banner-cta:hover::before { opacity: 1; }

.banner-cta svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  transition: transform var(--b-ease);
}

.banner-cta:hover svg {
  transform: translate(2px, -2px);
}

/* ---------- LIVE DOT ---------- */
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--b-green);
  display: inline-block;
  flex-shrink: 0;
  animation: live-pulse 2s ease-in-out infinite;
}

@keyframes live-pulse {
  0%   { box-shadow: 0 0 0 0   rgba(34,211,160,.5); }
  70%  { box-shadow: 0 0 0 6px rgba(34,211,160,.0); }
  100% { box-shadow: 0 0 0 0   rgba(34,211,160,.0); }
}

.deals-section {
  background-color: var(--dark-gray);
  border: 1px solid var(--color-purple);
  border-radius: 5px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.deals-header {
  margin-bottom: 16px;
}

.deals-header h2 {
  font-size: var(--font-h2);
  font-weight: 900;
  letter-spacing: 2px;
  color: #f0f0f0;
  margin-bottom: 6px;
  text-transform: uppercase;
}

/* .deals-underline {
  height: 2px;
  background: var(--color-purple);
  border-radius: 2px;
} */

/* ---- Grid ---- */
.deals-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

/* ---- Affiliate Card ---- */
.deal-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--light-text);
  position: relative;
  background-color: var(--dark-bg);
  border: 1px solid var(--border-color);
  border-radius: 5px;
  overflow: hidden;
  transition: transform var(--transition-speed), box-shadow var(--transition-speed), border-color var(--transition-speed);
  padding-bottom: 10px;
}

.deal-card:hover {
  transform: translateY(-3px);
  border-color: var(--color-purple);
  box-shadow: 0 0 12px rgba(94, 17, 227, 0.35);
}

/* ---- Discount Badge ---- */
.deal-badge {
  display: block;
  width: 100%;
  background: #ecad27;
  color: var(--dark-blue);
  font-size: 10px;
  font-weight: 700;
  text-align: center;
  padding: 4px 5px;
  font-family: Saira, sans-serif;
  letter-spacing: 0.3px;
}

/* ---- Product Image ---- */
.deal-img-wrap {
  width: 100%;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  background-color: var(--bg-secondary);
}

.deal-img-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform var(--transition-speed);
}

.deal-card:hover .deal-img-wrap img {
  transform: scale(1.05);
}

/* ---- Category Label ---- */
.deal-label {
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  padding: 7px 5px 0;
  line-height: 1.4;
  color: #e5e7eb;
}

/* ---- Nav Arrows ---- */
.deals-nav {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
}

.deal-arrow-btn {
  background: var(--accent-blue);
  color: #fff;
  border: none;
  border-radius: var(--border-radius);
  width: 34px;
  height: 34px;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-speed);
}

.deal-arrow-btn:hover {
  background: var(--accent-blue-hover);
}


/* ---- Breakpoints (match your system) ---- */

/* 480px */
@media (min-width: 480px) {
  .deals-grid { gap: 12px; }
  .deal-img-wrap { height: 105px; }
  .deal-label { font-size: 11.5px; }
}

/* 768px Tablet */
@media (min-width: 768px) {
  .deals-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
  .deal-img-wrap { height: 120px; }
  .deal-badge { font-size: 11px; }
  .deal-label { font-size: 12px; }
  .deal-arrow-btn { width: 36px; height: 36px; }
}

/* 1024px Desktop */
@media (min-width: 1024px) {
  .deals-section { padding: 25px; }
  .deals-grid { gap: 16px; }
  .deal-img-wrap { height: 130px; }
  .deal-badge { font-size: 11.5px; }
  .deal-label { font-size: 13px; }
}

/* 1280px+ - 2 rows, more padding */
@media (min-width: 1280px) {
  .deal-img-wrap { height: 135px; }
  .deal-label { font-size: 13.5px; }
}

/* Deals page indicator */
.deals-page-indicator {
  text-align: center;
  font-size: 11px;
  color: var(--border-color);
  margin-top: 8px;
  font-family: Saira, sans-serif;
  letter-spacing: 1px;
}

/* ── Deal Skeleton Loader ── */
.deal-skeleton {
  background: linear-gradient(90deg, var(--dark-gray) 25%, #1a1f35 50%, var(--dark-gray) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 5px;
  height: 160px;
  border: 1px solid var(--border-color);
}

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}


/* ============================================================
    FOOTER  (mirrors style.css)
    ============================================================ */
.footer {
    position: relative;
    width: 100%;
    background: var(--dark-bg);
    min-height: 100px;
    padding: 20px 50px;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    margin-top: auto;
}
.footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 2px;
    background: linear-gradient(90deg, var(--accent-blue) 50%, transparent 50%);
    background-size: 20px 2px;
    animation: slidingBorder 1s linear infinite;
}
@keyframes slidingBorder {
    0%   { background-position: 0 0; }
    100% { background-position: 20px 0; }
}
.menu {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px 0;
    flex-wrap: wrap;
    flex-direction: column;
    gap: 10px;
}
.menu-item { list-style: none; }
.menu-link {
    color: #fff;
    margin: 0 10px;
    display: inline-block;
    transition: 0.5s;
    text-decoration: none;
    opacity: 0.75;
    font-size: var(--font-a);
}
.menu-link:hover { opacity: 1; text-decoration: underline; text-underline-offset: 5px; }
.footer p {
    color: #ffffff;
    margin: 15px 0 10px 0;
    font-size: var(--font-p);
    font-weight: 500;
    text-align: center;
}
.footer .contacts {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.footer .contact {
    text-decoration: none;
    color: #6b7280;
    display: inline;
    transition: transform 0.3s ease, color 0.3s ease;
}
.footer .contact:hover { transform: translateY(-2px); }
.footer .contact.github:hover    { color: #e5e7eb; }
.footer .contact.instagram:hover { color: #E83C91; }
.footer .contact.linkedin:hover  { color: #008BFF; }
.footer .contact.facebook:hover  { color: #1877F2; }
.footer .contact.gmail:hover     { color: #f44336d8; }
.footer i { margin-top: 20px; font-size: var(--font-h1); }

/* ============================================================
    RESPONSIVE BREAKPOINTS
    ============================================================ */

/* 480px — large mobile */
@media (min-width: 480px) {
    :root {
    --font-p:  14.5px;
    --font-h1: 1.55rem;
    --font-h3: 1.12rem;
    --font-a:  14.5px;
    }
    .container { max-width: 480px; padding: 0 15px; }
    .tools-section { padding: 30px 15px 50px; }
    .tools-grid { gap: 20px; }
}

/* 640px — two-column grid starts */
@media (min-width: 640px) {
    .tools-grid {
    grid-template-columns: repeat(2, 1fr);
    }
}

/* 768px — tablet */
@media (min-width: 768px) {
    :root {
    --font-p:  15px;
    --font-h1: 1.6rem;
    --font-h3: 1.15rem;
    --font-a:  15px;
    }

    h1 {
    color: var(--accent-blue);
    font-size: var(--font-h1);
  }

  .tools-section .tools-intro{
    font-size: var(--font-p);
  }


    .container {
        max-width: 768px;
    }

    .logo img {
        width: 27px;
        height: 27px;
    }

    .main-content-wrapper {
        display: flex;
        flex-direction: column;
        gap: 30px;
        padding: 40px 20px;
    }

    .left-column {
        padding: 0;
    }

    .right-column {
        padding: 0;
    }
    .container { max-width: 768px; }
    .tools-section { padding: 40px 20px 60px; }
    .logo-text img { width: 27px; height: 27px; }
    .menu { flex-direction: row; }
    .footer .contacts { flex-direction: row; gap: 20px; }
}

/* 1024px — desktop; nav goes horizontal */
@media (min-width: 1024px) {
    :root {
    --font-p:  17px;
    --font-h1: 1.8rem;
    --font-h3: 1.28rem;
    --font-a:  16px;
    }

    h1 {
    color: var(--accent-blue);
    font-size: var(--font-h1);
  }

  .tools-section .tools-intro{
    font-size: var(--font-p);
  }


    /* TWO-COLUMN LAYOUT ACTIVATES HERE (70/30) */
    .main-content-wrapper {
        display: grid;
        grid-template-columns: 70% 30%;
        gap: 2px;
        padding: 40px 20px;
    }

    .left-column {
        padding-right: 20px;
    }

    .right-column {
        padding: 0;
    }
    .container { max-width: 1024px; }
    .tools-section { padding: 50px 30px 70px; }

    /* Horizontal navbar */
    .menu-toggle { display: none; }
    .navbar .logo { width: auto; font-size: 1.3rem; justify-content: flex-start; }
    .nav-links {
    position: static;
    max-height: none;
    flex-direction: row;
    width: auto;
    }
    .navbar nav ul {
    flex-direction: row;
    align-items: center;
    }
    .navbar nav ul li a {
    padding: 10px 15px;
    width: auto;
    white-space: nowrap;
    margin: 0;
    }

    /* 2-column tool grid on desktop */
    .tools-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .logo-text img { width: 29px; height: 29px; }
}

/* 1280px — large desktop */
@media (min-width: 1280px) {
    :root {
    --font-p:  17.5px;
    --font-h1: 1.82rem;
    --font-h3: 1.32rem;
    }

    h1 {
      color: var(--accent-blue);
      font-size: var(--font-h1);
    }

    .tools-section .tools-intro{
    font-size: var(--font-p);
  }


    .container { max-width: 1280px; }
    .logo-text img { width: 32px; height: 32px; }
}

/* 1440px — XL */
@media (min-width: 1440px) {
    .container { max-width: 1440px; }
}
