@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Edu+NSW+ACT+Hand+Pre:wght@400..700&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Playwrite+AU+QLD:wght@100..400&family=Press+Start+2P&family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Saira:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    --dark-bg: #020617;
    --dark-card-bg: #1a1a1a;
    --dark-black: #030303;
    --dark-gray: #090f20;
    --light-text: #f0f0f0;
    --secondary-bg: #2a2a2a;
    --accent-programming: #ffa500;
    --program: #f57c00;
    --legend-border: #444;
    --accent-blue: #007bff;
    --border-color: #3b3f54;

    --color-orange: #f97316;
    --color-blue: #1673bd;
    --color-red: #dc2626;
    --color-green: #00ff00;
    --color-purple: #5e11e3;
    --color-pink: #B9375D;
    --color-navy: #1347b7;
    --accent-cyan: #00D9FF;
    --accent-magenta: #FF0080;

    --font-p: 14px;
    --font-h1: 1.5rem;
    --font-h2: 1.2rem;
    --font-h3: 1.08rem;
    --font-li: 14px;
    --font-a: 14px;
    --font-i: 13.5px;

    /* Footer variables */
    --footer-bg: #111;
    --footer-text: #bbb;
    --social-icon-color: #aaa;
    --social-icon-hover: #007bff;
    --bg-secondary: #16161D;

    --stripe-width: 50px;
    --angle: -80deg;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    /* font-family: 'Inter', 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif; */
    /* font-family: "Ubuntu", sans-serif; */
    /* font-family: -apple-system,
        BlinkMacSystemFont,
        'Segoe UI',
        'Roboto',
        'Oxygen',
        'Ubuntu',
        'Cantarell',
        'Helvetica Neue',
        Arial,
        sans-serif; */
    font-family: "Saira", sans-serif;
    background-color: var(--dark-bg);
    font-weight: 700;
    color: var(--light-text);
    line-height: 1.8;
    /* min-height: 100vh; */
    overflow-x: hidden;
}

p {
    font-size: var(--font-p);
    font-weight: 400;
    color: #cccccc;
}

li {
    font-size: var(--font-li);
    font-weight: 400;
    color: #cccccc;
}

a {
    font-size: var(--font-a);
}

i {
    font-size: var(--font-i);
}

h1 {
    font-size: var(--font-h1);
    font-weight: 700;
}

h2 {
    font-size: var(--font-h2);
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 10px;
    color: var(--color-blue);
    text-decoration: underline;
    text-underline-offset: 7px;
}

h3 {
    font-size: var(--font-h3);
    font-weight: 500;
}

.container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    padding: 0 1rem;
}

.navbar {
    background-color: var(--dark-gray);
    /* padding: 5px 0; */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-text {
    display: flex;
    align-items: center;
    gap: 8px;
}

.typewriter {
    font-family: "Saira", sans-serif;
    white-space: pre;
    position: relative;
    font-optical-sizing: auto;
    font-weight: 500;
    color: #f0f0f0;;
    font-size: 1.2rem;
}

.typewriter::after {
    content: "_";
    margin-left: 2px;
    animation: blink 1s steps(1) infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.nav-links {
    display: flex;
    margin-right: -20px;
}

.nav-links ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    /* gap: 30px; */
}

.nav-links li {
    position: relative;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    padding: 10px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-links a:hover {
    color: #3b82f6;
}

.list ul {
    padding-left: 1.2rem;
    margin: 10px 0;
}

div.vision {
    border-left: 3px solid var(--color-green);
    background-color: #131c2e;
    padding: 20px;
    border-radius: 5px;
    margin: 10px 0;
}

p.last-p {
    margin-bottom: 20px;
    padding-bottom: 25px;
    width: 100%;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 30px 0;
}

.divider::before, .divider::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid #aaa;
}

.divider span {
    padding: 0 12px;
    white-space: nowrap;
}

.left-column,
.right-column {
    padding: 0 10px;
}

.about-website,
.related-topics,
.related-tags {
    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 #007bff;
}

.about-website h3,
.ad-block h3,
.related-topics h3,
.related-tags h3 {
    color: var(--color-orange);
    margin-bottom: 15px;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
    text-align: center;
}

.about-website h3::after,
.ad-block h3::after,
.related-topics h3::after,
.related-tags h3::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 1px;
    background-color: var(--accent-blue);
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    border-radius: 2px;
}

.about-website p {
    color: #ccc;
    text-align: left;
    padding: 10px 0;
}

.ad-block.large,
.ad-block.medium,
.ad-block.small {
    border: 2px dashed var(--legend-border);
    width: 100%;
    height: 300px;
    background-color: var(--dark-gray);
    margin-bottom: 30px;
}

.ad-block.medium {
    height: 250px;
}

.ad-block.small {
    height: 100px;
}

.ad-block img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    display: block;
    margin: 0 auto;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* ===================================
   RELATED TOPICS & TAGS
   =================================== */
.related-topics ul {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.related-topics ul li {
    border-bottom: 1px solid var(--legend-border);
    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(48, 107, 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(--color-blue);
    color: whitesmoke;
    box-shadow: 0 0 15px rgba(58, 130, 237, 0.5);
}

.related-topics p {
    margin-top: 0;
    text-decoration: underline;
    text-underline-offset: 5px;
}

/* 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: var(--color-blue);
    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 .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(--tag-orange);
}

.related-tags .tag-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
    margin-left: 15px;
    justify-content: left;
}

.related-tags .tag {
    color: #f0f0f0;
    font-weight: 400;
    cursor: pointer;
    border: none;
}

.related-tags a {
    text-decoration: none;
}

.related-tags a:hover .tag {
    background-color: var(--tag-orange);
    color: var(--light-text);
    transform: translateY(-2px);
}

.ad-banner-in-content {
    border: 2px dashed var(--legend-border);
    width: 100%;
    height: 150px;
    background-color: var(--dark-gray);
    display: flex;
    justify-content: center;
    /* Centers horizontally */
    align-items: center;
}

@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-weight: 500;
    color: #e8eaed;
    cursor: pointer;
    isolation: isolate;

    transition: all 0.3s ease;
    animation: breathe-glow 3s ease-in-out infinite;
}

@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);
    }
}

/* ===================================
   WALLPAPER & COLOR PALETTE
   =================================== */
.wallpaper,
.color-palette {
    border: 1px solid var(--color-blue);
    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-blue);
}

.wallpaper p,
.color-palette p,
.related-topics p {
    color: #ccc;
    text-align: center;
    margin-bottom: 15px;
    margin-top: 10px;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    max-width: 800px;
    margin: 0 auto 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-blue);
}

.button {
    text-align: center;
    margin-bottom: 10px;
}

.button .wallpaper-button,
.button .color-button {
    margin-top: 15px;
    border: 1px dashed var(--color-blue);
    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 {
    background-color: var(--color-blue);
}

/* Palette Grid */
.palette-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.palette-card {
    background: var(--bg-secondary);
    border: 1px solid var(--terminal-border);
    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: 0.3s;
    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 {
    height: 180px;
    display: flex;
    position: relative;
    overflow: hidden;
}

.wave-bar {
    flex: 1;
    position: relative;
    transition: 0.3s;
    cursor: pointer;
}

.wave-bar:hover {
    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);
}

.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 {
    padding: 24px;
    color: var(--terminal-output);
}

.card-title {
    font-size: var(--font-p);
    font-weight: 600;
    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(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: #ccc;
    font-size: var(--font-i);
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: 0.3s;
}

.card-btn:hover {
    background: var(--main-bg);
    color: var(--light-text);
    border-color: var(--accent-cyan);
}

#scrollUpBtn {
    position: fixed;
    bottom: 36px;
    right: 10px;
    background: none;
    border: none;
    padding: 0;
    width: 40px;
    height: 40px;
    z-index: 999;
    display: none;
    cursor: pointer;
}

.progress-circle {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
    shape-rendering: geometricPrecision;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}

.progress-circle .bg1 {
    fill: #000000;
    stroke: #eee;
    stroke-width: 1;
}

.progress-circle .progress {
    fill: none;
    stroke: #007bff;
    stroke-width: 1;
    stroke-dasharray: 100, 100;
    stroke-linecap: round;
    transition: stroke-dasharray 0.25s linear;
}

svg {
    image-rendering: optimizeQuality;
    text-rendering: geometricPrecision;
}

.arrow-overlay {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.4rem;
    font-family: Arial, Helvetica, sans-serif;
    color: #e5e7eb;
    pointer-events: none;
    cursor: pointer;
}

/* Footer  */
.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;
}

.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 {
    position: relative;
    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 {
    font-size: var(--p);
    color: #fff;
    margin: 0 10px;
    display: inline-block;
    transition: 0.5s;
    text-decoration: none;
    opacity: 0.75;
    font-weight: 300;
}

.menu-link:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer p {
    color: #ffffff;
    margin: 15px 0 10px 0;
    font-size: var(--p);
    font-weight: 300;
}

/* Medium devices (tablets, small laptops) */
@media (min-width: 768px) {
    .container {
        max-width: 768px;
    }

    :root {
        --font-p: 15px;
        --font-h1: 1.6rem;
        --font-h2: 1.28rem;
        --font-h3: 1.15rem;
        --font-h4: 1.05rem;
        --font-li: 15px;
        --font-a: 15px;
        --font-i: 14px;
        --font-table: 15px;
    }

    p {
        font-size: var(--font-p);
    }

    li {
        font-size: var(--font-li);
    }

    a {
        font-size: var(--font-a);
    }

    i {
        font-size: var(--font-i);
    }

    h1 {
        font-size: var(--font-h1);
        font-weight: 700;
    }

    h2 {
        font-size: var(--font-h2);
        font-weight: 600;
    }

    h3 {
        font-size: var(--font-h3);
        font-weight: 500;
    }

    .logo img {
        width: 27px;
        height: 27px;
    }

    .main-content-wrapper {
        display: flex;
        flex-direction: column;
        gap: 20px;
        /* padding: 40px 20px; */
    }

    .left-column {
        padding: 0;
    }

    .right-column {
        padding: 0;
    }

    #scrollUpBtn {
        width: 45px;
        height: 45px;
        bottom: 65px;
        right: 24px;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 992px;
    }

    :root {
        --font-p: 16px;
        --font-h1: 1.7rem;
        --font-h2: 1.36rem;
        --font-h3: 1.22rem;
        --font-h4: 1.08rem;
        --font-li: 16px;
        --font-a: 15.5px;
        --font-i: 14.5px;
        --font-table: 15.5px;
    }

    p {
        font-size: var(--font-p);
    }

    li {
        font-size: var(--font-li);
    }

    a {
        font-size: var(--font-a);
    }

    i {
        font-size: var(--font-i);
    }

    h1 {
        font-size: var(--font-h1);
        font-weight: 700;
    }

    h2 {
        font-size: var(--font-h2);
        font-weight: 600;
    }

    h3 {
        font-size: var(--font-h3);
        font-weight: 500;
    }

    #scrollUpBtn {
        width: 45px;
        height: 45px;
        bottom: 65px;
        right: 24px;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 1024px;
    }

    :root {
        --font-p: 17px;
        --font-h1: 1.8rem;
        --font-h2: 1.45rem;
        --font-h3: 1.28rem;
        --font-h4: 1.1rem;
        --font-li: 17px;
        --font-a: 16px;
        --font-i: 15px;
        --font-table: 16px;
    }

    p {
        font-size: var(--font-p);
    }

    li {
        font-size: var(--font-li);
    }

    a {
        font-size: var(--font-a);
    }

    i {
        font-size: var(--font-i);
    }

    h1 {
        font-size: var(--font-h1);
        font-weight: 700;
    }

    h2 {
        font-size: var(--font-h2);
        font-weight: 600;
    }

    h3 {
        font-size: var(--font-h3);
        font-weight: 500;
    }

    .logo img {
        width: 29px;
        height: 29px;
    }

    .menu-toggle {
        display: none;
    }

    .navbar {
        position: relative;
        color: white;
        text-align: center;
        border-radius: 5px;
        overflow: hidden;
    }

    .navbar .container {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .navbar .logo {
        font-size: 1.3rem;
        width: auto;
        justify-content: flex-start;
    }

    .navbar .nav-links {
        position: static;
        max-height: none;
        flex-direction: row;
        margin-bottom: 0;
        /* Remove margin-bottom */
        padding-top: 0;
        /* Remove padding-top */
        width: auto;
        /* Add this to prevent overflow */
    }

    .navbar .nav-links ul {
        display: flex;
        flex-direction: row;
        align-items: center;
        margin-left: 0;
        /* Remove negative margin */
        width: auto;
        /* Remove fixed width that was causing overflow */
    }

    .navbar .nav-links ul li a {
        padding: 10px 15px;
        /* Restore padding for better click areas */
        width: auto;
        /* Keep auto width */
        white-space: nowrap;
        /* Prevent text wrapping */
    }

    /* Remove the specific margin rule that was causing issues */
    .navbar nav ul a.ai {
        margin-bottom: 0;
    }

    .main-content-wrapper {
        display: grid;
        grid-template-columns: 70% 30%;
        gap: 2px;
        padding: 40px 20px;
    }

    .left-column {
        padding-right: 20px;
    }

    .right-column {
        padding: 0;
    }

    #scrollUpBtn {
        width: 50px;
        height: 50px;
        bottom: 65px;
        right: 28px;
    }
}

/* Extra large devices (large desktops) */
@media (min-width: 1280px) {
    .container {
        max-width: 1280px;
    }

    :root {
        --font-p: 17.5px;
        --font-h1: 1.82rem;
        --font-h2: 1.52rem;
        --font-h3: 1.32rem;
        --font-h4: 1.15rem;
        --font-li: 18px;
        --font-a: 16.5px;
        --font-i: 15.5px;
        --font-table: 16.5px;
    }

    p {
        font-size: var(--font-p);
    }

    li {
        font-size: var(--font-li);
    }

    a {
        font-size: var(--font-a);
    }

    i {
        font-size: var(--font-i);
    }

    h1 {
        font-size: var(--font-h1);
        font-weight: 700;
    }

    h2 {
        font-size: var(--font-h2);
        font-weight: 600;
    }

    h3 {
        font-size: var(--font-h3);
        font-weight: 500;
    }

    .logo img {
        width: 32px;
        height: 32px;
    }

    .menu {
        flex-direction: row;
    }

    #scrollUpBtn {
        width: 53px;
        height: 53px;
        bottom: 75px;
        right: 32px;
    }
}

/* Extra large devices (large desktops) */
@media (min-width: 1440px) {
    .container {
        max-width: 1440px;
    }

    :root {
        --font-p: 18px;
        --font-h1: 1.875rem;
        /* Max out at 1.875rem for h1 */
        --font-h2: 1.55rem;
        --font-h3: 1.39rem;
        --font-h4: 1.2rem;
        --font-li: 18.5px;
        --font-a: 17px;
        --font-i: 16px;
        --font-table: 17px;
    }

    p {
        font-size: var(--font-p);
    }

    li {
        font-size: var(--font-li);
    }

    a {
        font-size: var(--font-a);
    }

    i {
        font-size: var(--font-i);
    }
    h1 {
        font-size: var(--font-h1);
        font-weight: 700;
    }

    h2 {
        font-size: var(--font-h2);
        font-weight: 600;
    }

    h3 {
        font-size: var(--font-h3);
        font-weight: 500;
    }
}