* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary-color: #7a9b76; /* 7e998a */
    --secondary-color: #1d1d23; /* 212123 */
    --text-color: #c3c3c3;
    --light-text-color: #b4b4b4;
    --background-color: #1d1d23; /* 212123 */
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    background: #1d1d23; /* 212123 */
    color: #c3c3c3;
}

a {
    text-decoration: none;
    color: #c3c3c3;
}

ul {
    list-style-type: none;
}

.main-text, 
.main-text ul, 
.main-text ul ul {
    list-style-type: disc !important;  /* solid circle for all levels by default */
    color: white;                      /* make bullets and text white */
    padding-left: 1.5rem;              /* indent nested lists */
}

/* Different bullet for nested ul inside ul */
.main-text ul ul {
    list-style-type: square !important; /* square bullets for second-level nested */
}

/* Force bullet color with ::marker */
.main-text li::marker {
    color: white !important;
}

img {
    max-width: 100%;
}

/* Navbar */
.navbar {
    background: #1d1d23; /* 212123 */
    color: #b4b4b4;
    padding: 20px;
    text-align: center;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .main-menu ul {
    display: flex;
}

.navbar ul li a {
    padding: 10px 20px;
    display: block;
    font-weight: 500;
    transition: 0.5s;
    font-size: 18px;
}

.navbar ul li a:hover {
    background: var(--light-text-color); /* 7e998a */
    color: var(--primary-color);
}

.navbar ul li a i {
    margin-right: 10px;
}

.navbar ul li:last-child a {
    margin-left: 10 px;
}

.logo img {
    width: 100px; /* adjust as needed */
    height: auto;
}

/* Hero Section */

.hero {
    margin-bottom: 50px;
}

.hero .container {
    background: url('../images/for_web_2.png') no-repeat;
    background-size: contain;
    background-position: center bottom;
    height: 550px;
}

.hero .hero-content {
    width: 80%;
}

.hero .hero-text {
    width: 70%;
    margin-bottom: 20px;
}

/* Video Section */

.video {
    margin-top: 0;
    padding: 10px 0 20px;
}

.video .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80%;
}

.video-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.video-content a {
    font-size: 1.3rem;
}

.video-preview {
    margin-bottom: 20px;
}

/* Main Section */

.main {
    position: relative;
    z-index: 1; /* keep it above background */
}

.main .container {
    background: var(--background-color);
    background-size: contain;
    background-position: center bottom;
    min-height: 300px; /* or remove entirely */
    margin-bottom: 100px;
    height: auto; /* explicitly reset */
}

.main .main-content {
    width: 90%;
    align-content: center;
}

.main .main-content p li {
    margin-left: 100px;
}

.main .main-text {
    font-size: 1.2rem;
    width: 100%;
    line-height: 1.4;
    font-weight: normal;
    margin: 20px 0 10px;
}

.main p:hover a {
    color: var(--primary-color);
}

.main p:hover {
    background: var(--background-color); /* 7e998a */
    color: inherit; /* Keep rest of text unchanged */
}

.main li:hover a {
    color: var(--primary-color);
}

.main li:hover {
    background: var(--background-color); /* 7e998a */
    color: inherit; /* Keep rest of text unchanged */
}

.repo-container {
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center; /* Centers the boxes */
}
.repo {
    background-color: #444;
    padding: 20px;
    border-radius: 10px;
    width: calc(33% - 20px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}
.repo:hover {
    transform: translateY(-5px);
}
.repo h3 {
    margin: 0 0 10px 0;
    white-space: nowrap; /* Prevents the text from wrapping */
    overflow: hidden; /* Hides the overflow text */
    text-overflow: ellipsis; /* Adds ellipsis (...) for overflow text */
}
.repo p {
    margin: 5px 0;
}
.repo a {
    color: #7a9b76;
    text-decoration: none;
}
.repo a:hover {
    text-decoration: underline;
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: auto;
    padding: 0 15px;
    background: #1d1d23;
    color: #c3c3c3;
    /* font-size: 35px; */
}

.container-sm {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 15px;
    background: #1d1d23;
    color: #c3c3c3;
    font-size: 35px;
}

.container-md {
    width: 60%;
    margin: 0 auto;
    padding: 0 15px;
    background: #1d1d23;
    color: #c3c3c3;
    font-size: 35px;
}

.container-big {
    width: 80%;
    margin: 0 auto;
    padding: 0 15px;
    background: #1d1d23;
    color: #c3c3c3;
    font-size: 35px;
}

.btn {
    display: inline-block;
    padding: 13px 20px;
    background: var(--primary-color);
    color: #fff;
    font-weight: 400;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    transition: 0.5s;
}

.btn:hover {
    opacity: 0.8;
}

.btn-primary {
    background: var(--primary-color);
    color: #fff;
}

.btn-dark {
    background: var(--secondary-color);
    color: #fff;
}

.indented-list {
    list-style-type: disc;       /* Show bullet points */
    list-style-position: outside;
    padding-left: 5rem;          /* Indent the list */
}

/* Text Classes */

.text-xxl {
    font-size: 3rem;
    line-height: 1.2;
    font-weight: 600;
    margin: 40px 0 20px;
}

.text-xl {
    font-size: 2.2rem;
    line-height: 1.4;
    font-weight: normal;
    margin: 40px 0 20px;
}

.text-lg {
    font-size: 1.8rem;
    line-height: 1.4;
    font-weight: normal;
    margin: 30px 0 20px;
}

.text-md {
    font-size: 1.2rem;
    line-height: 1.4;
    font-weight: normal;
    margin: 20px 0 10px;
}

.text-sm {
    font-size: 0.9rem;
    line-height: 1.4;
    font-weight: normal;
    margin: 10px 0 5px;
}

.text-center {
    text-align: center;
}

.bg-primary {
    background: var(--primary-color);
    color: #fff;
}

.bg-light {
    background: var(--light-color);
    color: #333;
}

/* Hamburger Menu */

.hamburger-button {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1000;
    margin-left: auto;
}

.hamburger-button .hamburger-line {
    width: 30px;
    height: 3px;
    background-color: #fff;
    margin: 6px 0;
    transition: all 0.3s ease;
}

/* Mobile Menu */

.mobile-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 250px;
    height: 100%;
    z-index:100;
    background: var(--secondary-color);
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
    transition: right 0.3s ease-in-out;
    justify-content: space-between;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu ul {
    margin-top: 100px;
    padding-right: 10px;
}

.mobile-menu ul li {
    margin: 10px 0;
}

.mobile-menu ul li a {
    padding: 10px 20px;
    display: block;
    font-weight: 500;
    transition: 0.5s;
    font-size: 18px;
}

@media (max-width: 960px) {
}

@media (max-width: 670px) {
    .navbar .main-menu {
        display: none;
    }

    .navbar .hamburger-button {
        display: block;
    }

    .logo img {
        display: none;
    }

    .hero-buttons .btn {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
        margin-bottom: 0.5rem;
        width: 80%; /* Optional: makes buttons fill more horizontal space on mobile */
        text-align: center;
    }

    .main-text {
        font-size: 0.2rem;
        line-height: 1.5;
    }
}

@media (max-width: 500px) {
    .navbar .container {
        flex-direction: column;
    }

    .navbar .hamburger-button {
        display: block;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
        margin-bottom: 0.5rem;
        width: 80%; /* Optional: makes buttons fill more horizontal space on mobile */
        text-align: center;
    }

    .main {
        max-width: 95vw;     /* almost full viewport width */
        padding-left: 1vw;   /* small side padding */
        padding-right: 1vw;
        margin-left: auto;
        margin-right: auto;
    }

    .main-text {
        font-size: 0.65rem !important;
        line-height: 1.4;
        margin-bottom: 1rem; /* adjust spacing if needed */
        margin-left: auto;
        list-style-type: disc;
    }

    .main .main-content {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }

    .main-text {
        max-width: 100%;
        width: 100%;
    }

    .main-text ul ul {
        list-style-type: square; /* e.g. filled squares for second level */
        margin-left: 1.5rem;
        color: white;
    }

    .main-content {
        position: relative;
        left: -15px; /* Move 10px to the left */
    }

    .repo {
        flex: 1 1 100%;
    }
}