body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif; /* Unified font style for all text */
    align-content: center;
    text-align: center;
}
.hamburger {
    display: none;
}
/* Text section */
.text {
    text-align: center;
    height: 100px;
    background: #262626;
    color: #FFF;
}

.text h2 {
    margin: 0;
    line-height: 100px;
    font-size: 48px;
    font-family: Arial, sans-serif; /* Unified font style for all headings */
}

/* Navigation styling */
#Nav-space {
    padding-top: 80px;
}

.nav {
    background: #292929;
    color: #FFF;
    display: flex;
}

.nav .logo {
    font-size: 24px;
    padding: 3px;
    margin-left: 25px;
    font-family: Arial, sans-serif; /* Unified font style for logo */
}

.nav .logo img {
    max-width: 100%;
    max-height: 100%;
    display: block;
    object-fit: contain;
}

.nav .logo a {
    color: #FFF;
    text-decoration: none;
    font-family: Arial, sans-serif; /* Unified font style for links */
}

.nav ul {
    margin: 0;
    padding: 0;
    display: flex;
    width: 50%;
    margin-left: auto;
}

ul li {
    padding: 20px;
    list-style: none;
}

ul li a {
    color: #FFF;
    display: block;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: bold;
    font-family: Arial, sans-serif; /* Unified font style for navigation links */
}

/* Section styling */
section {
    padding-top: 20px; /* Adjusted padding to pull section content closer */
    margin-top: 10px;  /* Adjusted to avoid space after navbar */
}

/* Sticky navigation bar */
.sticky {
    position: fixed;
    z-index: 100;
    top: 0;
    left: 0;
    width: 100%;
    overflow-y: auto;
    height: 70px;
}

/* Card styling */
.card p {
    margin: 0;
    color: black;
    font-weight: 400;
    font-size: 18px; /* Increased font size */
    line-height: 90%;
    padding-left: 8%;
    padding-right: 8%;
    padding-top: 3%;
    padding-bottom: 8%;
    border-radius: 20px;
    cursor: pointer;
    transition: ease 1s;
    -webkit-transition: ease 1s;
    font-family: Arial, sans-serif; /* Unified font style for paragraphs */
}

.card h3 {
    margin: 0;
    color: black;
    font-weight: 400;
    font-size: 24px; /* Increased font size */
    line-height: 90%;
    padding-left: 8%;
    padding-top: 8%;
    padding-bottom: 3%;
    border-radius: 20px;
    cursor: pointer;
    transition: ease 1s;
    -webkit-transition: ease 1s;
    font-family: Arial, sans-serif; /* Unified font style for headings */
}

/* Tech card styling */
.tech_card h2 {
    margin: 0;
    color: black;
    font-weight: 400;
    font-size: 30px;
    line-height: 90%;
    padding-top: 6%;
    border-radius: 20px;
    cursor: pointer;
    transition: ease 1s;
    -webkit-transition: ease 1s;
    font-family: Arial, sans-serif; /* Unified font style for tech card headings */
}

.tech_card h3 {
    padding-left: 0%;
    padding-bottom: 3%;
    padding-top: 5%;
    font-family: Arial, sans-serif; /* Unified font style for tech card subheadings */
}

.tech_card p {
    padding-top: 0%;
    padding-bottom: 4%;
    font-family: Arial, sans-serif; /* Unified font style for tech card paragraphs */
}

.tech-list p {
    font-size: 18px;
    font-family: Arial, sans-serif; /* Unified font style for tech list paragraphs */
}

/* Adjust image styling */
.ImageInCard {
    width: 90%;  /* Reduced width to bring images closer */
    height: auto;
    margin: 10px 0; /* Added some margin to space the image nicely */
}

/* Cards layout adjustments */
.cards {
    width: 95%;
    position: relative;
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 50px;  /* Reduced padding to pull content closer */
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center; /* Ensure cards are aligned */
}

.card {
    width: 22%;
    position: relative;
    background-color: #E9E3E6;
    margin: 1.13%;
    border-radius: 5px;
    transition: 1s;
    -webkit-transition: 0.5s;
    cursor: pointer;
    flex: 1 1 auto;
    padding: 10px; /* Added some padding to make content closer inside cards */
    box-sizing: border-box;
}

.card:hover {
    transform: scale(1.05);
    box-shadow: 10px 10px 15px rgba(0, 0, 0, 0.3);
}

/* Responsive design for different screen sizes */
@media screen and (max-width: 1200px) {
    .card {
        width: 30%;
        margin: 1.6%;
    }
}

@media screen and (max-width: 800px) {
    .card {
        width: 45%;
        margin: 2.5%;
    }
}

@media screen and (max-width: 500px) {
    .card {
        width: 98%;
        margin: 2%;
    }
}

/* Card image styling */
.card_img {
    width: 100%;
    height: 350px;
    position: relative;
    border-radius: 5px 5px 0px 0px;
    background-size: cover;
    background-position: center center;
    background-color: #20e6b3;
    transition: 1s;
    -webkit-transition: 1s;
}

/* Reset some default browser styles */
canvas {
    display: block;
    vertical-align: bottom;
}

/* Particles background container */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: #B2B2B2;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 50% 50%;
    z-index: -1; /* Send the particle background behind other content */
}

/* Stats for particles */
.count-particles {
    background: #000022;
    position: absolute;
    top: 48px;
    left: 0;
    width: 80px;
    color: #13E8E9;
    font-size: .8em;
    text-align: left;
    text-indent: 4px;
    line-height: 14px;
    padding-bottom: 2px;
    font-family: Arial, sans-serif; /* Unified font style for stats */
    font-weight: bold;
}

.js-count-particles {
    font-size: 1.1em;
}

#stats, .count-particles {
    -webkit-user-select: none;
    margin-top: 5px;
    margin-left: 5px;
}

#stats {
    border-radius: 3px 3px 0 0;
    overflow: hidden;
}

.count-particles {
    border-radius: 0 0 3px 3px;
}

/* Tech list styling */
.tech-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 6%;
}

.tech-item img {
    width: 30px;
    height: auto;
}

/* Card image backgrounds */
.card1 {
    background-image: url(images/Carter_K.jpg);
}

.card2 {
    background-image: url(Images/Charles_D.jpeg);
}

.card3 {
    background-image: url(Images/Charles\(Chaz\)_D.jpg);
}

.card4 {
    background-image: url(Images/Connor_A.jpg);
}

/* Remove margin/padding between <p> and <ul> */
p + ul, ul + p {
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
}

/* Optional: Add a little space if you need between <p> and <ul> */
p {
    margin-bottom: 10px; /* Space after <p> */
}

ul {
    margin-top: 0;  /* Ensure no space before <ul> */
    padding-top: 0;
}

.side-nav {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 102;
    top: 0;
    right: 0;
    background-color: #292929;
    overflow-x: hidden;
    transition: 0.3s;
    padding-top: 60px;
}

.side-nav a {
    padding: 12px 32px;
    text-decoration: none;
    font-size: 20px;
    color: white;
    display: block;
    transition: 0.3s;
}

.side-nav a:hover {
    background-color: #575757;
}

.side-nav .closebtn {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 36px;
}

/* Hide nav links on small screens, keep logo and show hamburger */
@media screen and (max-width: 2100px) {
    .nav ul {
        display: none;
    }

    .hamburger {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 30px;
        color: white;
        cursor: pointer;
        z-index: 101;
    }
}

.sticky {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
}

