@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;
    --bg-secondary: #16161D;
    --dark-black: #030303;
    --dark-blue: #090f20;
    --light-text: #f0f0f0;
    --secondary-bg: #2a2a2a;
    --accent-programming: #ffa500;
    --program: #f57c00;

    --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;

    --size: 1.8rem;
    --mobile-size-h2: 1.2rem;
    --mobile-size-h3: 1rem;
    --p-size: 1rem;
    --p: 0.9rem;
    --p-weight: 200;
    --level-tag: 0.7rem;
    --tag-weight: 400;
    --accent-hacking: #CB0404;
    --hacking-bg: #381717;
    --guide: #7d1e9e;
    --neon-purple: #B347D9;
    --guide-bg: #311e38;
    --accent-blue: #007bff;
    --accent-blue-hover: #0056b3;
    --button-primary-hover: #0056b3;
    --button-secondary-bg: transparent;
    --button-secondary-border: #007bff;
    --button-secondary-hover-border: #0056b3;
    --highlight-color: #2dd4bf;
    --python: #2482cf;
    --js: #f7df1e;
    --terminal: #1f4788;
    --html: #e34f26;
    --css: #296d9e;
    --setup-heading-color: #8A2BE2;
    /* BlueViolet for Setup Guides heading */
    --setup-icon-color: #8A2BE2;
    /* BlueViolet for Setup Guides icons */
    --setup-card-border: #5A1E9E;
    /* Darker purple for card borders */
    --setup-tag-bg: #6A0DAD;
    /* Darker purple for tags */
    --setup-button-bg: #6A0DAD;
    /* Darker purple for buttons */
    --setup-button-hover: #5A0CA0;

    --info-color: #047768;
    /* Cyan for Info section heading */
    /* Cyan for Info section icon */
    --info-card-border: #00838F;
    /* Darker cyan for card borders */
    --info-tag-bg: #00ACC1;
    /* Cyan for tags */
    --info-link-color: #00BCD4;
    /* Cyan for links */
    --info-link-hover: #0097A7;
    /* Darker cyan on hover */

    --form-bg: #2a2a2a;
    /* Same as secondary-bg */
    --input-bg: #22262d;
    /* Darker blue-gray for inputs */
    --input-border: #3a4049;
    --input-text: #f0f0f0;
    --form-button-bg: #007bff;
    --form-button-hover: #0056b3;

    /* Footer variables */
    --footer-bg: #111;
    --footer-text: #bbb;
    --social-icon-color: #aaa;
    --social-icon-hover: #007bff;

    --stripe-width: 50px;
    --angle: -80deg;

    --font-h1: clamp(1.5rem, 2.5vw + 1rem, 1.875rem);
    --font-h2: clamp(1.2rem, 2vw + 0.8rem, 1.55rem);
}

* {
    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.6;
    /* min-height: 100vh; */
    overflow-x: hidden;
}

.bg {
    animation: slide 3s ease-in-out infinite alternate;
    background-image: linear-gradient(-60deg, #6c3 50%, #09f 50%);
    bottom: 0;
    left: -50%;
    opacity: .5;
    position: fixed;
    right: -50%;
    top: 0;
    z-index: -1;
}

.bg2 {
    animation-direction: alternate-reverse;
    animation-duration: 4s;
}

.bg3 {
    animation-duration: 5s;
}

@keyframes slide {
    0% {
        transform: translateX(-25%);
    }

    100% {
        transform: translateX(25%);
    }
}

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

.navbar {
    background-color: var(--dark-blue);
    padding: 5px 0;
    box-shadow: 0 2px 5px rgba(0, 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;
    }
}


@keyframes moveBorder {
    0% {
        left: -100%;
        transform: scaleX(0.5);
    }

    50% {
        transform: scaleX(1);
    }

    100% {
        left: 100%;
        transform: scaleX(0.5);
    }
}

.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;
    justify-content: center;
}

.typewriter {
    font-family: "Saira", sans-serif;
    white-space: pre;
    position: relative;
    font-optical-sizing: auto;
    font-weight: 500;
    color: #f0f0f0;
}

.typewriter::after {
    content: "_";
    /* cursor */
    margin-left: 2px;
    animation: blink 1s steps(1) infinite;
}

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

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .typewriter::after {
        animation: none;
    }
}

.navbar nav ul {
    display: flex;
    flex-direction: column;
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: center;
}

/* .navbar nav ul li {
    margin: -10px 32px;
} */

.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;
}

.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;
    font-size: var(--p);
    transition: color 0.3s ease;
}

.navbar .search-bar {
    display: flex;
    align-items: center;
    background-color: var(--dark-bg);
    border-radius: 5px;
    padding: 8px 12px;
    width: calc(100% - 40px);
    margin: 15px auto 0 auto;
    border: 1px solid #444;
}

.navbar .search-bar:focus-within {
    border-color: var(--button-primary-hover);
}

.navbar .search-bar i {
    color: #aaa;
    margin-right: 10px;
}

.navbar .search-bar input {
    background-color: var(--dark-bg);
    border: none;
    outline: none;
    color: var(--light-text);
    font-size: 1rem;
    width: 100%;
}

.navbar .search-bar input::placeholder {
    color: #aaa;
}

.navbar button i {
    color: #8B5CF6;
}

.hero-section {
    position: relative;
    text-align: center;
    padding: 100px 0;
    transform: translate((-50%, -50%));
}

.container.hero {
    transition: transform 0.3s ease;
}

/* .container.hero:hover {
    transform: scale(1.1);
} */

.grid-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 2px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 2px);
    background-size: 40px 40px;
    z-index: 1;
    pointer-events: none;
}

.hero-section h1 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.text-orange {
    color: #ff6a00;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8), 2px 2px 4px rgba(0, 0, 0, 0.6), 3px 3px 6px rgba(0, 0, 0, 0.4);
}

.text-red {
    color: #ff0000;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8), 2px 2px 4px rgba(0, 0, 0, 0.6), 3px 3px 6px rgba(0, 0, 0, 0.4);
}

.text-blue {
    color: var(--color-blue);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8), 2px 2px 4px rgba(0, 0, 0, 0.6), 3px 3px 6px rgba(0, 0, 0, 0.4);
}

.hero-section .highlight-programming {
    color: var(--accent-programming);
}

.hero-section .highlight-hacking {
    color: var(--accent-hacking);
}

.hero-section p.description {
    font-size: var(--p);
    max-width: 800px;
    margin: 0 auto 80px auto;
    color: #ccc;
}

.menu-toggle {
    display: block;
    font-size: 1.2rem;
    cursor: pointer;
    background: var(--dark-blue);
    border: 2px solid #8B5CF6;
    padding-top: 2px;
    padding-left: 4px;
    padding-right: 4px;
}

.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;
    /* padding-top: 10px; */
}

.nav-links.active {
    max-height: 450px;
}

/* Welcome Section  */
.welcome-section {
    background-color: var(--dark-blue);
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-top: 3px solid var(--accent-blue);
}

.welcome-section .section-header {
    margin-bottom: 50px;
}

.welcome-section .section-header h2 {
    font-size: var(--mobile-size-h2);
    color: var(--color-blue);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.welcome-section .section-header h2 i {
    margin-right: 15px;
    font-size: 1.5rem;
}

.welcome-section .card a[href^="#"] {
    scroll-behavior: smooth;
}

.welcome-section .section-header p {
    font-size: var(--p);
    max-width: 700px;
    margin: 0 auto;
    color: #bbb;
    font-weight: 200;
}

.welcome-cards {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.card {
    background-color: #1e1e1e;
    border: 2px solid var(--color-blue);
    border-radius: 5px;
    padding: 30px;
    text-align: left;
    /* width: calc(100% - 40px); */
    /* max-height: 400px; */
    box-shadow: 0 4px 10px rgba(9, 13, 252, 0.6);
    transition: transform 0.3s ease;
    margin: 0 auto;
}

.card:hover {
    background-color: #1d3a62;
    transform: translateY(-5px);
}

.card .icon {
    font-size: 1.4rem;
    color: var(--accent-blue);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.card h3 {
    font-size: var(--mobile-size-h3);
    color: var(--light-text);
    margin-bottom: 15px;
    font-weight: 400;
}

.card p {
    font-size: var(--p);
    font-weight: 300;
    color: #ccc;
    margin-bottom: 10px;
    line-height: 1.5;
    min-height: 75px;
}

.card a {
    margin-top: auto;
    font-size: var(--p);
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: var(--p-weight);
    display: inline-flex;
    align-items: center;
    transition: color 0.3s ease;
}

.card a i {
    margin-left: 8px;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.card a:hover i {
    transform: translateX(5px);
}

@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;
}

.wallpaper-card {
    background-color: #1e1e1e;
    border: 2px solid var(--color-blue);
    border-radius: 5px;
    padding: 30px;
    text-align: left;
    /* width: calc(100% - 40px); */
    /* max-height: 400px; */
    box-shadow: 0 4px 10px rgba(9, 13, 252, 0.6);
    transition: transform 0.3s ease;
    margin: 0 auto;
}

.wallpaper-card:hover {
    background-color: #1d3a62;
    transform: translateY(-5px);
}

.wallpaper-card .icon {
    font-size: 1.4rem;
    color: var(--accent-blue);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.wallpaper-card h2 {
    font-size: var(--font-h2);
    color: var(--light-text);
    margin-bottom: 15px;
    color: #cb0404e7
    /* font-weight: 400; */
}

.wallpaper-card p {
    font-size: var(--p);
    font-weight: 500;
    color: #ccc;
    margin-bottom: 10px;
    line-height: 1.5;
    min-height: 75px;
}

.wallpaper-card a {
    margin-top: auto;
    font-size: var(--p);
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: var(--p-weight);
    display: inline-flex;
    align-items: center;
    transition: color 0.3s ease;
}

.wallpaper-card a i {
    margin-left: 8px;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.wallpaper-card a:hover i {
    transform: translateX(5px);
}

.wallpaper-card {
    border-radius: 5px;
    padding: 30px;
    text-align: left;
    transition: transform 0.3s ease;
    margin: 0 auto;
    border: none;
    box-shadow: none;
}

.wallpaper-card {
    --gradient-glow: var(--clr-1), var(--clr-2), var(--clr-3), var(--clr-4), var(--clr-1);

    position: relative;
    background: #1f1f1f;
    border: 3px solid transparent;
    border-radius: 5px;

    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: rotate-border 2s linear infinite;
}

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

    100% {
        --glow-deg: 360deg;
    }
}


.wallpaper-header h2 i {
    color: #DD0303;
}

.wallpaper-header p {
    margin-top: 10px;
    margin-bottom: 20px;
    font-size: var(--p);
}

.heading {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.wallpaper-section {
    border: 1px solid #DD0303;
    background-color: #dd03032b;
    padding: 30px 20px 20px 10px;
    border-radius: 5px;
}

.wallpaper-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-evenly;
    align-items: center;
}

.wallpaper-image img{
    width: 100%;
    height: auto;
    border-radius: 5px;
    transition: transform 0.3s ease, border 0.3s ease;
}

.wallpaper-image img:hover {
    transform: scale(1.02);
    border: 2px solid var(--footer-text);
}

.button {
    text-align: center;
}

.button .wallpaper-button {
    margin-top: 15px;
    border: none;
    background-color: #DD0303;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.button .wallpaper-button:hover {
    background-color: #c01616;
}

/* Project section  */
.programming-projects-section {
    background-color: var(--dark-bg);
    padding: 80px 0;
    text-align: center;
    border-top: 3px solid var(--color-purple);
}

.programming-projects-section .section-header {
    margin-bottom: 30px;
}

.programming-projects-section .section-header h2 {
    font-size: var(--mobile-size-h2);
    color: var(--color-purple);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    gap: 10px;
}

.programming-projects-section .section-header p {
    font-size: var(--p);
    max-width: 700px;
    margin: 0 auto;
    color: #ccc;
    font-weight: 200;
}

.language-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.tab-button {
    background-color: #2a2a2a;
    color: var(--light-text);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.tab-button.active {
    background-color: var(--color-purple);
    color: #fff;
}

.project-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    width: 100%;
    /* margin-bottom: 30px; */
}

.project-card {
    background-color: #131c2e;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--color-purple);
    margin-bottom: 20px;
}

/* .project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
} */

.project-card::before {
    content: "";
    position: absolute;
    box-shadow: 0 0 100px 40px #ffffff08;
    top: -10%;
    left: -100%;
    transform: rotate(-45deg);
    height: 60rem;
    transition: .7s all;
}

.project-card:hover {
    border: 1px solid #ffffff34;
    box-shadow: 0 7px 50px 10px #000000aa;
    transform: scale(1.015);
    filter: brightness(1.3);
}

.project-card:hover::before {
    filter: brightness(.5);
    top: -100%;
    left: 200%;
}

.project-image {
    width: 100%;
    max-height: 175px;
    display: block;
    border-bottom: 1px solid var(--color-purple);
}

.project-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.project-heading h3 {
    font-size: var(--mobile-size-h3);
    font-weight: 500;
    color: #f0f0f0;
}

.project-heading h3:hover {
    text-decoration: underline;
}

.project-content .level-tag {
    font-size: var(--level-tag);
    font-weight: var(--tag-weight);
    padding: 4px 10px;
    border-radius: 5px;
    text-transform: uppercase;
    background-color: #5e11e3;
    color: #fff;
}

.project-content p {
    font-size: var(--p);
    color: #ccc;
    font-weight: 300;
    margin-bottom: 15px;
    flex-grow: 1;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.tech-tag {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 5px;
}

.tech-tag.html,
.language-tags .language-tag.html {
    color: var(--color-orange);
    background-color: #282323;
}

.tech-tag.css,
.tech-tag.c {
    color: var(--color-blue);
    background-color: #272c2f;
}

.tech-tag.cpp {
    color: #5599ff;
    background-color: #272c2f;
}

.tech-tag.sql {
    color: #f29111;
    background-color: #39332e;
}

.tech-tag.js,
.language-tags .language-tag.js {
    color: var(--js);
    background-color: rgb(39, 39, 33);
}

.tech-tag.python,
.language-tags .language-tag.py {
    color: #ffd43b;
    background-color: #1e415e;
    /* Darker Python blue */
}

.language-tags .language-tag.bash {
    color: #7cabd0;
    background-color: #1e2122;
}

.tech-tag.library {
    color: #00ff00;
    background-color: #262e26;
}

.tech-tag.ethical-hacking {
    color: var(--color-green);
    background-color: #262e26;
}

.tech-tag.networking {
    color: var(--color-blue);
    background-color: #202026;
}

.language-tags .language-tag.c {
    color: #004482;
    background-color: #202026;
}

.language-tags .language-tag.sql {
    color: #CC2927;           /* SQL red-ish color */
    background-color: #202026; /* Dark background */
}

.tech-tag.red {
    color: #f0f0f0;
    background-color: var(--color-red);
}

.tech-tag.networking {
    color: var(--accent-blue);
    background-color: #2c343c9f;
}

.tech-tag.programming {
    color: var(--color-orange);
    background-color: #3c302c;
}

.project-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #aaa;
    margin: 5px 0;
}

.stat {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    gap: 5px;
    font-size: 0.8rem;
    font-weight: 300;
}

.start-project-button {
    border: 1px solid var(--color-purple);
    color: #fff;
    padding: 5px 24px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    display: block;
    font-size: 12px;
    transition: background-color 0.3s ease;
}

.start-project-button:hover {
    background-color: var(--color-purple);
}

.view-all-btn {
    background-color: transparent;
    color: #f0f0f0;
    padding: 10px 30px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.8rem;
    transition: transform 0.1s ease;
    display: inline-block;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

#view-all-btn-projects {
    border: 1px solid var(--color-purple);
}

#view-all-btn-projects::before,
#view-all-btn-programming::before,
#view-all-btn-hacking-series::before,
#view-all-btn-networking::before,
#view-all-btn-guide-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--color-purple);
    transition: left 0.3s ease;
    z-index: -1;
}

#view-all-btn-projects:hover::before,
#view-all-btn-programming:hover::before,
#view-all-btn-hacking-series:hover::before,
#view-all-btn-networking:hover::before,
#view-all-btn-guide-link:hover::before {
    left: 0;
}

.project-card.hidden-project,
.tutorial-card.hidden-programming,
.networking-card.hidden-networking,
.automation-card.hidden-automation-tutorial,
.automation-project-card.hidden-automation-project,
.card-cheat.hidden-card-cheat {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
    margin-bottom: 0;
    border: none;
    visibility: hidden;
    gap: -30px;
    transition: max-height 0.5s ease, opacity 0.5s ease, padding 0.5s ease, margin 0.5s ease, visibility 0.5s ease;
}

.project-card.show-project,
.tutorial-card.show-programming,
.networking-card.show-networking,
.automation-card.show-automation-tutorial,
.automation-project-card.show-automation-project,
.card-cheat.show-card-cheat {
    opacity: 1;
    visibility: visible;
    transition: max-height 0.5s ease, opacity 0.5s ease, margin 0.5s ease, visibility 0.5s ease;
}

.hero-section .aithon {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin: 3rem 2rem;
    border: 2px solid var(--color-purple);
    padding: 20px;
    background: #131c2e74;
    border-radius: 5px;
}

.hero-section .aithon .image{
    display: flex;
    flex-direction: column;
    border-bottom: 2px solid var(--color-purple);
    padding-bottom: 60px;
}

.hero-section .aithon .image img {
    min-width: 100%;
    height: auto;
    border-radius: 5px;
    border: 2px dashed var(--color-purple);
    padding: 5px;
    transition: transform 0.3s ease, border 0.3s ease;
    background: transparent;
    border-bottom: 5px solid var(--color-purple);
    object-fit:contain;
}

.hero-section .aithon .image img:hover {
    transform: scale(1.02);
    border: 2px dashed var(--color-purple);
    background: transparent;
    border-bottom: 5px solid var(--color-purple);
}

.hero-section .aithon .image .more-info {
    padding: 5px 10px;
    text-decoration: none;
    margin-top: 30px;
    color: #ccc;
    font-weight: 500;
    background: var(--color-purple);
    border-radius: 5px;
    transition: background 0.3s ease;
    border: 1px solid var(--color-purple);
    cursor: pointer;
}

 .hero-section .aithon .image .more-info:hover {
    background: var(--dark-bg);
}

.hero-section .aithon .content {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 100%;
    text-align: center;
}

.hero-section .aithon .content .heading-section h2 span {
    color: var(--form-button-bg);
}

.hero-section .aithon .content .heading-section p {
    color: #ccc;
    margin-top: 10px;
    margin-bottom: 20px;
}

.hero-section .aithon .content ul {
    border: 1px solid var(--color-purple);
    border-radius: 5px;
    padding: 20px;
    list-style: none;
    text-align: left;
    margin-bottom: 10px;
    background: var(--dark-bg);
    border-bottom: 5px solid var(--color-purple);
}

.hero-section .aithon .content ul li {
    margin-bottom: 10px;
    color: #ccc;
    font-weight: 300;
    position: relative;
}

.hero-section .aithon .content ul li i {
    margin-right: 10px;
    color: var(--form-button-bg);
    border: 1px solid var(--form-bg);
    border-radius: 50%;
    padding: 4px;
}

/* Programming Section  */
.programming-section {
    background-color: var(--dark-blue);
    padding: 80px 0;
    text-align: center;
    border-top: 3px solid var(--color-orange);
}

.programming-section .section-header {
    margin-bottom: 50px;
}

.programming-section .section-header h2 {
    font-size: var(--mobile-size-h2);
    color: var(--color-orange);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    gap: 10px;
}

.programming-section .section-header p {
    font-size: var(--p);
    max-width: 700px;
    margin: 0 auto;
    color: #ccc;
    font-weight: 200;
}

.card-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.tutorial-card {
    background-color: var(--dark-bg);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s, box-shadow 0.3s;
    width: 100%;
    position: relative;
    border: 1px solid var(--color-orange);
    text-align: left;
    height: 100%;
    display: flex;
    /* Add this */
    flex-direction: column;
    /* Add this */
}

.tutorial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(211, 114, 18, 0.4);
}

.tutorial-card.hidden-programming {
    min-height: 0;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
    margin-bottom: 0;
    border: none;
    visibility: hidden;
    gap: -30px;
    transition: min-height 0.5s ease, opacity 0.5s ease, padding 0.5s ease, margin 0.5s ease, visibility 0.5s ease;
}

.tutorial-image {
    width: 100%;
    height: auto;
    display: block;
}

.tutorial-card .card-top {
    height: 150px;
    position: relative;
    clip-path: ellipse(100% 100% at 50% 0%);
}

.tutorial-card .card-top.py {
    background: linear-gradient(135deg, #0684ec, #d9ae13);
}

.tutorial-card .card-top.js {
    background: linear-gradient(135deg, #f7df1e, #ab9022);
}

.tutorial-card .card-top.html {
    background: linear-gradient(135deg, #ff6b35, #eb9738);
}

.tutorial-card .card-top.c {
    background: linear-gradient(135deg, #283593, #3f83c7);
}

.tutorial-card .card-top.bash {
    background: linear-gradient(135deg, #000000, #1E7F1E);
}

.tutorial-card .card-top.sql {
    background: linear-gradient(135deg, #CC2927, #F29111);
}

.card-top .icon {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: whitesmoke;
    font-size: 4rem;
}

.overlay-info {
    position: absolute;
    width: 100%;
    height: 30px;
    top: 0;
    background-color: var(--dark-blue);
    border-bottom: 1px solid var(--color-orange);
    border-top: 3px solid var(--color-orange);
    color: #ccc;
    padding: 5px 10px;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.language-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.language-tags .language-tag,
.language-tags .level-tag,
.tech-tag {
    font-size: var(--level-tag);
    font-weight: var(--tag-weight);
    padding: 4px 8px;
    border-radius: 5px;
    text-transform: uppercase;
}

.language-tags .level-tag {
    font-weight: 400;
    color: var(--color-orange);
    background-color: transparent;
}

.card-content h3 {
    font-size: var(--mobile-size-h3);
    font-weight: 500;
    color: #f0f0f0;
    margin-bottom: 5px;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.card-footer .stats {
    display: flex;
    gap: 10px;
    font-size: 0.8rem;
    font-weight: 300;
    color: #aaa;
}

.stats i {
    margin-right: 5px;
}

.cta-button {
    padding: 5px 20px;
    border: 1px solid var(--color-orange);
    border-radius: 5px;
    font-weight: 600;
    background-color: transparent;
    color: #fff;
    text-decoration: none;
    text-align: center;
    display: block;
    font-size: 12px;
}

.cta-button:hover {
    background-color: var(--color-orange);
}

#view-all-btn-programming {
    border: 1px solid var(--color-orange);
    margin-top: 50px;
}

#view-all-btn-programming::before {
    background-color: var(--color-orange);
}

/* Palette Grid */
/* Sidebar Sections: Wallpaper, Color Palette, Related Topics */
.color-palette {
    border: 2px solid var(--accent-cyan);
    padding: 10px;
    margin: 30px 20px;
    border-radius: 5px;
    background-color: #1e1e1e;
}

.color-palette h2 {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-magenta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.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;
    width: 100%;
}

.palette-card::before {
    content: "";
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-magenta));
    border-radius: 20px;
    opacity: 0;
    transition: var(--transition);
    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 - 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-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 12px;
} */

.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);
}

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

.button .color-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;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-magenta));
}

.button .color-button:hover{
    background: linear-gradient(135deg, #00d9ffbf, #ff0080c5);
}

/* Ethical Hacking  */
.ethical-hacking-section {
    background-color: var(--dark-bg);
    padding: 80px 0;
    text-align: center;
    border-top: 3px solid var(--color-green);
}

.ethical-hacking-section .section-header {
    margin-bottom: 50px;
}

.ethical-hacking-section .section-header h2 {
    font-size: var(--mobile-size-h2);
    color: var(--color-green);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    gap: 10px;
}

.ethical-hacking-section .section-header p {
    font-size: var(--p);
    max-width: 700px;
    margin: 0 auto;
    color: #ccc;
    font-weight: 200;
}

.hacking-card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    grid-auto-rows: 1fr;
}

/* Seperate section  */
.hacking-card {
    position: relative;
    background-color: var(--dark-blue);
    border: 1px solid var(--color-green);
    border-radius: 5px;
    overflow: hidden;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    height: 100%;
    min-height: 201px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.hacking-card.hidden-hacking-tutorial,
.hacking-card-series.hidden-hacking {
    min-height: 0;
    display: none;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
    margin-bottom: 0;
    border: none;
    visibility: hidden;
    gap: -30px;
    transition: min-height 0.5s ease, opacity 0.5s ease, padding 0.5s ease, margin 0.5s ease, visibility 0.5s ease;
}

.hacking-card.show-hacking-tutorial,
.hacking-card-series.show-hacking {
    display: flex;
    opacity: 1;
    visibility: visible;
    transition: max-height 0.5s ease, opacity 0.5s ease, margin 0.5s ease, visibility 0.5s ease;
}

.hacking-tutorial-header {
    display: flex;
    justify-content: flex-end;
    /* Align to right */
}

.hacking-tutorial-header .view-all-btn {
    background-color: var(--color-green);
    border: none;
    padding: 7px 20px;
    margin-bottom: 20px;
}

.hacking-tutorial-header .view-all-btn:hover {
    background-color: #26b326;
}

.hacking-card:hover {
    transform: translateY(-5px);
    /* box-shadow: 0 4px 10px rgba(167, 27, 27, 0.6); */
}

.hacking-card .header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    gap: 15px;
}

.hacking-card .header i {
    font-size: 1rem;
    color: var(--input-text);
    background-color: var(--color-green);
    padding: 10px;
    border-radius: 50px;
}

.hacking-card .header .title-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.hacking-card .header .title-group .level-tag {
    font-size: var(--level-tag);
    font-weight: var(--tag-weight);
    border-radius: 15px;
    text-transform: uppercase;
    background-color: transparent;
    color: var(--color-green);
}

.hacking-card .card-footer a {
    padding: 5px 20px;
    border: 1px solid var(--color-green);
    border-radius: 5px;
    font-weight: 600;
    background-color: var(--color-green);
    color: #fff;
    text-decoration: none;
    text-align: center;
    display: block;
    font-size: 12px;
    cursor: pointer;
}

.hacking-card .card-footer a:hover {
    transform: translateY(-2px);
}

.hacking-card .card-footer a:hover:active {
    transform: translateY(0);
}

.hacking-tutorials-header {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 20px;
}

.hacking-tutorials-header h3 {
    font-size: var(--mobile-size-h3);
    font-weight: 600;
    color: var(--color-green);
    margin-top: 40px;
}

.hacking-card-series {
    position: relative;
    background-color: var(--dark-blue);
    border: 1px solid var(--color-green);
    border-radius: 5px;
    overflow: hidden;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    /* min-height: 456px; */
    height: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.hacking-card-series:hover {
    transform: translateY(-5px);
}

.card-image-container {
    position: relative;
    width: 100%;
    padding: 10px;
    overflow: hidden;
    border-bottom: 1px solid var(--color-green);
}

/* .card-image-container img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.3s ease;
} */

.card-image-container img {
    top: 0;
    left: 0;
    width: 100%;
    max-height: 185px;
    object-fit: cover;
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    margin-top: 5px;
    border: 1px solid var(--border-color);
}

.hacking-card-series:hover .card-image-container img {
    transform: scale(1.05);
}

.terminal-header {
    display: flex;
    gap: 5px;
    padding-left: 10px;
    padding-top: 10px;
}

.terminal-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.terminal-dot.red {
    background-color: #ff5f56;
}

.terminal-dot.yellow {
    background-color: #ffbd2e;
}

.terminal-dot.green {
    background-color: #27c93f;
}

.hacking-card-series .hacking-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.hacking-content h3,
.hacking-card .title-group h3 {
    font-size: var(--mobile-size-h3);
    font-weight: 500;
    color: #f0f0f0;
}

.hacking-content h3:hover,
.hacking-card .title-group h3:hover {
    text-decoration: underline;
}

.hacking-content p,
.hacking-card p {
    font-size: var(--p);
    color: #ccc;
    font-weight: 300;
    flex-grow: 1;
}

.info-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    margin-top: 10px;
}

.status-box {
    padding: 5px 10px;
    border-radius: 5px;
    font-size: var(--level-tag);
    font-weight: var(--tag-weight);
    text-transform: uppercase;
    text-align: center;
}

.status-level {
    background-color: var(--color-green);
    color: #ffffff;
}

.hacking-footer,
.networking-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hacking-footer span,
.networking-footer span,
.hacking-card .card-footer span {
    font-size: var(--level-tag);
    font-weight: var(--tag-weight);
    text-transform: uppercase;
    text-align: center;
}

.hacking-footer span i,
.networking-footer span i,
.hacking-card .card-footer i {
    margin-right: 5px;
}

.hacking-footer a,
.networking-footer a {
    padding: 5px 20px;
    border: 1px solid var(--color-green);
    border-radius: 5px;
    font-weight: 600;
    background-color: transparent;
    color: #fff;
    text-decoration: none;
    text-align: center;
    display: block;
    font-size: 12px;
    cursor: pointer;
}

.hacking-card .card-footer a:hover {
    background-color: #1fcc1f;
}

.hacking-footer a:hover {
    background-color: var(--color-green);
}

#view-all-btn-hacking-series {
    border: 1px solid var(--color-green);
    margin-top: 50px;
}

#view-all-btn-hacking-series::before {
    background-color: var(--color-green);
}

/* Networking section  */
.networking-section {
    background-color: var(--dark-blue);
    padding: 80px 0;
    text-align: center;
    border-top: 3px solid var(--color-navy);
}

.networking-section .section-header {
    margin-bottom: 50px;
}

.networking-section .card-image-container {
    border-bottom: 1px solid var(--color-navy);
    min-height: 220px;
}

.networking-section .section-header h2 {
    font-size: var(--mobile-size-h2);
    color: var(--color-navy);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    gap: 10px;
}

.networking-section .section-header p {
    font-size: var(--p);
    max-width: 800px;
    margin: 0 auto;
    color: #ccc;
    font-weight: 200;
}

.networking-card-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* Networking Card Base */
.networking-card {
    position: relative;
    background-color: var(--dark-bg);
    border: 1px solid var(--color-navy);
    border-radius: 5px;
    overflow: hidden;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    min-height: 460px;
    margin: 0 auto;
}

/* Cover */
.networking-card__cover {
    transform: skewX(.001deg);
    transition: transform .35s ease-in-out;
    cursor: pointer;
}

/* Gradient overlay */
.networking-card__cover::after {
    display: block;
    content: '';
    position: absolute;
    z-index: 100;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    background: linear-gradient(226deg,
            rgba(255, 255, 255, 0.2) 0%,
            rgba(255, 255, 255, 0.1) 35%,
            rgba(255, 255, 255, 0) 42%,
            rgba(255, 255, 255, 0) 60%);

    transform: translateY(-20%);
    will-change: transform;
    transition: transform .65s cubic-bezier(0.18, 0.9, 0.58, 1);
    pointer-events: none;
}

/* Hover effect */
.networking-card:hover .networking-card__cover {
    transform: rotateX(7deg) translateY(-6px);
}

.networking-card:hover .networking-card__cover::after {
    transform: translateY(0%);
}

/* Shadow effect */
.networking-card::before {
    display: block;
    content: '';
    position: absolute;
    top: 5%;
    left: 5%;
    width: 90%;
    height: 90%;
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 6px 12px 12px rgba(0, 0, 0, 0.4);
    will-change: opacity;
    transform-origin: top center;
    transform: skewX(.001deg);
    transition: transform .35s ease-in-out, opacity .5s ease-in-out;
}

.networking-card:hover::before {
    opacity: 0.6;
    transform: rotateX(7deg) translateY(-8px) scale(1.05);
}

.networking-card .card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.networking-card .card-content {
    padding: 20px;
    min-height: 282px;
}

.card-content h3 {
    font-size: var(--mobile-size-h3);
    font-weight: 500;
    color: #f0f0f0;
}

.card-content h3:hover {
    text-decoration: underline;
    text-underline-offset: 5px;
}

.card-content p {
    font-size: var(--p);
    color: #ccc;
    font-weight: 300;
    /* margin-bottom: 15px; */
    flex-grow: 1;
}

.networking-card .level-tag {
    font-size: var(--level-tag);
    font-weight: var(--tag-weight);
    padding: 4px 10px;
    border-radius: 5px;
    text-transform: uppercase;
    background-color: var(--color-navy);
    color: #fff;
}

.networking-footer a {
    border: 1px solid var(--color-navy);
    cursor: pointer;
}

.networking-footer a:hover {
    background-color: var(--color-navy);
}

#view-all-btn-networking {
    border: 1px solid var(--color-navy);
    margin-top: 50px;
}

#view-all-btn-networking::before {
    background-color: var(--color-navy);
}

/* Automation section  */
.automation-section {
    background-color: var(--dark-bg);
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: visible;
    border-top: 2px solid var(--color-pink);
}

.automation-section .section-header {
    margin-bottom: 50px;
}

.automation-tutorials-header,
.automation-projects-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.automation-card .level-tag {
    font-size: var(--level-tag);
    font-weight: var(--tag-weight);
    padding: 4px 10px;
    border-radius: 5px;
    text-transform: uppercase;
    background-color: var(--color-pink);
    color: #fff;
}

.automation-section .section-header h2 {
    font-size: var(--mobile-size-h2);
    color: var(--color-pink);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    gap: 10px;
}

.automation-section .section-header p {
    font-size: var(--p);
    max-width: 700px;
    margin: 0 auto;
    color: #ccc;
    font-weight: 200;
}

.automation-card-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* Hide scrollbar for Webkit browsers */
.automation-cards::-webkit-scrollbar {
    display: none;
}

.automation-card {
    position: relative;
    background-color: var(--dark-blue);
    border: 1px solid var(--color-pink);
    border-radius: 5px;
    padding: 20px;
    text-align: left;
    box-shadow: 0 4px 10px rgba(194, 20, 101, 0.6);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 280px;
}

.automation-card.hidden-automation-tutorial {
    min-height: 0;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
    margin-bottom: 0;
    border: none;
    visibility: hidden;
    gap: -30px;
    transition: max-height 0.5s ease, opacity 0.5s ease, padding 0.5s ease, margin 0.5s ease, visibility 0.5s ease;
}

.automation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(158, 27, 108, 0.4);
    /* z-index: 100; */
}

.automation-card .icon {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.automation-card .meta-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* margin-top: 5px; */
}

.automation-card .meta-link span {
    font-size: var(--p);
    color: #aaa;
    font-weight: var(--p-weight);
    margin-top: 10px;
}

.automation-card .start-automation,
.automation-project-card .start-automation {
    background-color: var(--color-pink);
    color: #f0f0f0;
    border: none;
    padding: 6px 8px;
    border-radius: 5px;
    font-weight: 400;
    font-size: 0.8rem;
    margin-top: 10px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.automation-project-card .start-automation:hover {
    transform: translateY(-2px);
}

.automation-project-card .start-automation:hover:active {
    transform: translateY(0);
}

.automation-card .start-automation::after {
    content: "▶";
    font-size: 0.8rem;
    margin-left: 6px;
    opacity: 0;
    transform: translateX(-8px);
    transition: all 0.3s ease;
}

.automation-card .start-automation:hover::after {
    opacity: 2;
    transform: translateX(4px);
    color: #f0f0f0;
}

/* 
.automation-projects-header {
    margin-top: 40px;
} */

.automation-content h3,
.automation-tutorials-header h3,
.automation-projects-header h3 {
    font-size: var(--mobile-size-h3);
    font-weight: 500;
    color: #f0f0f0;
    text-decoration: underline;
    margin-bottom: 10px; 
    text-underline-offset: 5px;
}

.automation-tutorials-header h3,
.automation-projects-header h3 {
    color: var(--color-pink);
    font-weight: 800;
    text-underline-offset: 5px;
}

.automation-projects-header h3 {
    margin-left: 20px;
}

.automation-projects-header button {
    margin-right: 20px;
}

.automation-tutorials-header .view-all-btn,
.automation-projects-header .view-all-btn {
    background-color: var(--color-pink);
    border: none;
    padding: 7px 25px;
}

.automation-tutorials-header .view-all-btn:hover,
.automation-projects-header .view-all-btn:hover {
    background-color: #af4b69;
}

.automation-content h3:hover {
    text-decoration: underline;
}

.automation-content p {
    font-size: var(--p);
    color: #ccc;
    font-weight: 300;
    flex-grow: 1;
}

.automation-card .level-tag {
    background-color: var(--color-pink);
}

.automation-project-card {
    position: relative;
    background-color: var(--dark-blue);
    border: 1px solid var(--color-pink);
    border-radius: 5px;
    padding: 20px;
    margin: 0 auto;
    text-align: left;
    box-shadow: 0 4px 10px rgba(194, 20, 101, 0.6);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.automation-card-icons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.automation-card-icons .icon-btn {
    width: 28px;
    height: 28px;
    background-color: #33333390;
    color: var(--highlight-color);
    border-radius: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.8rem;
    transition: background-color 0.3s ease;
}

.automation-card-icons .icon-btn:hover {
    background-color: #555;
}

.automation-card-icons .plus-count {
    font-size: 0.8rem;
    color: #bbb;
}

.icon-btn {
    /* Styles for the button/icon */
    position: relative;
    /* Needed for positioning the tooltip relative to this element */
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #555;
    /* Dark gray background */
    cursor: pointer;
    color: white;
    font-size: var(--p);
    font-weight: 300;
    transition: background-color 0.3s;
}

.icon-btn::after {
    /* The main tooltip box */
    content: attr(data-tooltip);
    /* Pulls text from the data-tooltip attribute */
    position: absolute;
    bottom: 150%;
    /* Position above the icon */
    left: 150%;
    transform: translateX(-50%);

    /* Styling */
    padding: 6px 10px;
    background-color: #333;
    /* Dark background for the tooltip */
    color: white;
    border-radius: 4px;
    font-size: 10px;
    white-space: nowrap;
    /* Keep text on a single line */
    z-index: 10;
    font-size: 400;

    /* Animation and initial state (hidden) */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.icon-btn::before {
    /* The small triangle pointing down to the icon */
    content: '';
    position: absolute;
    top: 100%;
    /* Position below the tooltip box */
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
    /* Creates a downward-pointing triangle */

    /* Animation and initial state (hidden) */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

/* 3. Show the tooltip on hover 
*/
.icon-btn:hover::after,
.icon-btn:hover::before {
    opacity: 1;
    visibility: visible;
}

.automation-project-card h3 {
    font-size: var(--mobile-size-h3);
    font-weight: 500;
    color: #f0f0f0;
}

.automation-project-card h3:hover {
    color: var(--color-pink);
}

.automation-project-card p {
    font-size: var(--p);
    color: #ccc;
    font-weight: 300;
    margin-bottom: 15px;
    flex-grow: 1;
}

.automation-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.automation-card-footer .level-tag {
    font-size: var(--level-tag);
    font-weight: var(--tag-weight);
    border-radius: 15px;
    text-transform: uppercase;
    background-color: transparent;
    color: var(--color-pink);
    margin-top: 10px;
}

#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;
}

/* Information Section  */
.info-section {
    background-color: var(--dark-blue);
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: visible;
    border-top: 2px solid var(--color-red);
}

.info-section .section-header h2 {
    font-size: var(--mobile-size-h2);
    color: var(--color-red);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    gap: 10px;
}

.info-section .section-header p {
    font-size: var(--p);
    max-width: 700px;
    margin: 0 auto;
    color: #ccc;
    font-weight: 200;
}

.info-section .resource-card-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

.info-section .resource-card-grid .resource-card {
    background: var(--dark-bg);
    border: 1px solid var(--accent-hacking);
    padding: 20px;
    border-radius: 5px;
    position: relative;
}

.info-section .resource-card-grid .resource-card h3 {
    margin-bottom: 20px;
    background: var(--accent-hacking);
    color: var(--light-text);
    padding: 0 5px;
}

.info-section .resource-card-grid .resource-card p {
    color: #ccc;
    margin-bottom: 20px;
}

.info-section .resource-card-grid .resource-card .card-footer {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.info-section .resource-card-grid .resource-card .card-footer a {
    border: 1px solid var(--accent-hacking);
    padding: 5px 15px;
    color: var(--terminal-output);
    font-weight: 500;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.info-section .resource-card-grid .resource-card .card-footer i.fa-brands, .info-section .resource-card-grid .resource-card .card-footer i.fa-solid {
    font-size: 20px;
    border: 2px solid var(--accent-hacking);
    padding: 5px;
    border-radius: 15px;
}

.info-section .resource-card-grid .resource-card .card-footer a:hover {
    background: var(--accent-hacking);
}

.info-section .resource-card-grid .resource-card .card-footer a i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.info-section .resource-card-grid .resource-card .card-footer:hover a i {
    transform: translateX(6px);
}

.resource-card::after {
    content: "";
    position: absolute;
    inset: 0;
    margin: 10px;
    pointer-events: none;
    box-sizing: border-box;

    background:
        /* Top-left */
        linear-gradient(var(--color-red), var(--color-red)) top left / 18px 2px no-repeat,
        linear-gradient(var(--color-red), var(--color-red)) top left / 2px 18px no-repeat,

        /* Top-right */
        linear-gradient(var(--color-red), var(--color-red)) top right / 18px 2px no-repeat,
        linear-gradient(var(--color-red), var(--color-red)) top right / 2px 18px no-repeat,

        /* Bottom-left */
        linear-gradient(var(--color-red), var(--color-red)) bottom left / 18px 2px no-repeat,
        linear-gradient(var(--color-red), var(--color-red)) bottom left / 2px 18px no-repeat,

        /* Bottom-right */
        linear-gradient(var(--color-red), var(--color-red)) bottom right / 18px 2px no-repeat,
        linear-gradient(var(--color-red), var(--color-red)) bottom right / 2px 18px no-repeat;
    /* border: 1px dashed var(--accent-hacking); */
}

.resource-card:hover::after {
    filter: drop-shadow(0 0 6px rgba(255,0,0,0.6));
}

.cheat-section-header,
.guide-section-header {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-top: 40px;
}

.cheat-section-header .view-all-btn,
.guide-section-header .view-all-btn {
    border: 1px solid var(--color-red);
    padding: 7px 20px;
    margin-bottom: 20px;
}

.cheat-section-header .view-all-btn:hover,
.guide-section-header .view-all-btn:hover {
    border: 1px dashed var(--color-red);
}

.cheat-section-header h3,
.guide-section-header h3 {
    font-size: var(--mobile-size-h3);
    font-weight: 600;
    color: var(--color-red);
}

.card-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.card-cheat {
    position: relative;
    background-color: var(--dark-bg);
    border: 1px solid var(--color-red);
    border-radius: 5px;
    padding: 20px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.card-cheat h3,
.card-guide h3 {
    font-size: var(--mobile-size-h3);
    font-weight: 500;
    color: #f0f0f0;
}

.card-cheat p,
.card-guide p {
    font-size: var(--p);
    color: #ccc;
    font-weight: 300;
    margin-bottom: 15px;
    margin-top: 5px;
}

.card-footer .card-link {
    background-color: transparent;
    color: var(--color-red);
    border: none;
    padding: 6px 8px;
    border-radius: 5px;
    font-weight: 400;
    font-size: 0.8rem;
    margin-top: 10px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 5px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.card-footer .card-link:hover {
    background: linear-gradient(60deg, #c51111, #805054);
    color: #f0f0f0;
}

.card-cheat .card-footer {
    margin-top: 0;
}

/* Free E-Books & Guides Section  */
.card-guide {
    position: relative;
    background-color: var(--dark-bg);
    border: 1px solid var(--color-red);
    border-radius: 5px;
    padding: 20px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
}

/* .guide-section-header.container {
    max-width: 400px;
} */

.guide-icon {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.guide-icon i {
    background-color: var(--color-red);
    border-radius: 50%;
    padding: 10px;
}

.guide-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.guide {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
}

.guide-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.guide-meta .tech-tag.level-tag {
    font-weight: 400;
    color: var(--color-red);
    background-color: transparent;
}

.guide-meta button {
    align-self: flex-end;
    margin-left: auto;
    padding: 10px;
    background-color: transparent;
    border: 1px solid var(--color-red);
    border-radius: 5px;
    color: var(--color-red);
    cursor: pointer;
    /* Pushes button to the right */
}

.guide-meta button:hover {
    background-color: var(--color-red);
    color: #f0f0f0;
}

/* 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: footerSlidingBorder 1s linear infinite;
}

@keyframes footerSlidingBorder {
    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;
    text-underline-offset: 5px;
}

.footer p {
    color: #ffffff;
    margin: 15px 0 10px 0;
    font-size: var(--p);
    font-weight: 500;
    text-align: center;
}

.footer .contacts {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.footer .contact {
    text-decoration: none;
    color: var(--border-dark);
    display: inline; /* important for transform reliability */
    transition: transform 0.3s ease;
}

.footer .contact:hover {
    transform: translateY(-2px);
    color: var(--text-secondary);
}

.footer .contact.gmail {
    color: #f44336;
}

.footer .contact.gmail:hover {
    color: #f44336d8;
}

.footer i {
    margin-top: 20px;
    font-size: var(--font-h1);
}

@media (min-width: 768px) {
    .container {
        max-width: 768px;
    }

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

    .navbar .logo {
        font-size: 1.25rem;
    }

    .hero-section h1 {
        font-size: 1.5rem;
    }

    .wallpaper-image img{
        width: 300px;
        height: auto;
    }

    .button .wallpaper-button,
    .button .color-palette {
        font-size: 0.8rem;
    }

    .programming-projects-section .section-header h2,
    .programming-section .section-header h2,
    .ethical-hacking-section .section-header h2,
    .networking-section .section-header h2,
    .automation-section .section-header h2 {
        font-size: 1.3rem;
    }

    .hero-section p,
    .programming-projects-section .section-header p,
    .programming-section .section-header p,
    .ethical-hacking-section .section-header p,
    .networking-section .section-header p,
    .automation-section .section-header p,
    .menu-link,
    .footer p {
        font-size: 1rem;
    }

    .project-heading h3,
    .card-content h3,
    .hacking-card .title-group h3,
    .automation-content h3,
    .automation-tutorials-header h3,
    .automation-projects-header h3 {
        font-size: 1.1rem;
    }

    .welcome-cards {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        align-items: start;
        gap: 20px;
    }

    .card {
        display: flex;
        flex-direction: column;
        min-height: 316px;
    }

    .card-content {
        flex: 1;
        /* Fills available space */
    }

    .project-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .card-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .hacking-card-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 1fr;
        align-items: start;
    }

    .hacking-card {
        min-height: 212px;
    }

    .networking-card-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        align-items: start;
    }

    .automation-card-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        align-items: start;
    }

    /* .automation-project-card {
        min-width: 100%;
    } */

    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .card-guide {
        min-width: 360px;
        min-height: 182px;
    }

    .color-palette {
        max-width: 768px;
        margin: 40px auto;
    }

    #scrollUpBtn {
        width: 45px;
        height: 45px;
        bottom: 65px;
        right: 24px;
    }
}

@media (min-width: 992px) {
    .container,
    .color-palette {
        max-width: 992px;
    }

    .hero-section h1 {
        font-size: 1.6rem;
    }

    .programming-projects-section .section-header h2,
    .programming-section .section-header h2,
    .ethical-hacking-section .section-header h2,
    .networking-section .section-header h2,
    .automation-section .section-header h2 {
        font-size: 1.4rem;
    }

    .hero-section p,
    .programming-projects-section .section-header p,
    .programming-section .section-header p,
    .ethical-hacking-section .section-header p,
    .networking-section .section-header p,
    .automation-section .section-header p,
    .menu-link,
    .footer p {
        font-size: 1.05rem;
    }

    .project-heading h3,
    .card-content h3,
    .hacking-card .title-group h3,
    .automation-content h3,
    .automation-tutorials-header h3,
    .automation-projects-header h3 {
        font-size: 1.15rem;
    }

}

@media (min-width: 1024px) {
    .container {
        max-width: 1024px;
    }

    .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;
        padding-top: 0;
        width: auto;
    }

    .navbar .nav-links ul {
        display: flex;
        flex-direction: row;
        align-items: center;
        margin-left: 0;
        width: auto;
    }

    .navbar .nav-links ul li a {
        padding: 10px 15px;
        width: auto;
        white-space: nowrap;
    }

    .navbar nav ul a.ai {
        margin-bottom: 0;
    }

    .wallpaper-header p {
        margin-bottom: -20px;
    }

    .welcome-cards {
        grid-template-columns: repeat(3, 1fr);
    }

    .card {
        display: flex;
        flex-direction: column;
        height: 100%;
        min-height: 320px;
    }

    .hero-section h1 {
        font-size: 1.7rem;
    }

    .wallpaper-image img{
        width: 250px;
        height: auto;
    }

    .wallpaper-image.last img {
        width: 400px;
        height: auto;
    }

    .button .wallpaper-button,
    .button .color-palette {
        font-size: 0.9rem;
    }

    .programming-projects-section .section-header h2,
    .programming-section .section-header h2,
    .ethical-hacking-section .section-header h2,
    .networking-section .section-header h2,
    .automation-section .section-header h2,
    .info-section .section-header h2 {
        font-size: 1.5rem;
    }

    .hero-section p,
    .programming-projects-section .section-header p,
    .programming-section .section-header p,
    .ethical-hacking-section .section-header p,
    .networking-section .section-header p,
    .automation-section .section-header p,
    .info-section .section-header p,
    .menu-link,
    .footer p {
        font-size: 1.1rem;
    }

    .project-heading h3,
    .card-content h3,
    .hacking-card .title-group h3,
    .hacking-tutorials-header h3,
    .automation-content h3,
    .automation-tutorials-header h3,
    .automation-projects-header h3,
    .info-section h3 {
        font-size: 1.2rem;
    }

    .info-section .resource-card-grid .resource-card .card-footer i.fa-brands, .info-section .resource-card-grid .resource-card .card-footer i.fa-solid {
        font-size: 25px;
        border: 2px solid var(--accent-hacking);
        padding: 5px;
        border-radius: 15px;
    }

    .hero-section .aithon {
        display: flex;
        flex-direction: row;
        gap: 60px;
    }

    .hero-section .aithon .image{
        border-bottom: none;
        padding-bottom: 0;
        border-right: 2px solid var(--color-purple);
        padding-right: 60px;
    }

    /* .programming-projects-section .content ul {
        max-width: 70%;
    } */

    .guide-section-header, 
    .cheat-section-header {
        display: flex;
        flex-direction: row;
    }

    .project-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }

    .card-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }

    .palette-grid {
        flex-direction: row;
    }

    .hacking-card-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        grid-auto-rows: 1fr;
    }

    .hacking-card {
        min-height: 280px;
    }

    .networking-card-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }

    .automation-card-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }

    .card-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }

    .card-guide {
        min-width: 318px;
        min-height: 197px;
    }

    .automation-projects-header h3,
    .automation-tutorials-header h3,
    .hacking-tutorials-header h3 {
        margin-left: -10px;
    }

    .automation-projects-header button,
    .automation-tutorials-header button {
        margin-right: -10px;
    }

    .automation-projects-header {
        margin-top: 40px;
    }

    .automation-project-card {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }

    .info-section .resource-card-grid {
        display: flex;
        flex-direction: row;
    }


    #scrollUpBtn {
        width: 50px;
        height: 50px;
        bottom: 65px;
        right: 20px;
    }

    .menu {
        flex-direction: row;
    }

    .footer .contacts {
        flex-direction: row;
        gap: 20px;
    }
}

@media (min-width: 1280px) {
    .container {
        max-width: 100%;
    }

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

    .navbar .logo {
        font-size: 1.4rem;
    }

    .welcome-cards {
        grid-template-columns: repeat(4, 1fr);
    }

    .wallpaper-image img, .wallpaper-image.last img{
        width: 290px;
        height: auto;
    }

    .button .wallpaper-button,
    .button .color-palette {
        font-size: 1rem;
        font-weight: 500;
    }

    .color-palette {
        max-width: 1220px;
    }

    .project-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .card-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .hacking-card-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-auto-rows: 1fr;
    }

    .hacking-card {
        min-height: 260px;
    }

    .networking-card-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .automation-card-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .automation-project-card {
        grid-template-columns: repeat(4, 1fr);
    }

    .card-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .card-guide {
        min-width: 169px;
        min-height: 197px;
    }

    .hacking-card-series {
        min-height: 470px;
    }

    .hacking-card {
        min-height: 320px;
    }

    .tutorial-card {
        min-height: 430px;
    }

    #scrollUpBtn {
        width: 53px;
        height: 53px;
        bottom: 75px;
        right: 32px;
    }
}

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

    .color-palette {
        max-width: 1400px;
    }
}

.hover-text-change {
    position: relative;
    overflow: hidden;
}

.hover-text-change::after {
    content: attr(data-hover);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    background-color: inherit;
    color: inherit;
}

.hover-text-change:hover::after {
    transform: translateY(0);
}

