/* General styles */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    line-height: 1.6;
    background-image: linear-gradient(#2cc15e, #2f6146);
}

:root {
    --green: #2cc15e;
    --gold: #d8aa15;
    --dark-gold: #906e00;
    --dark-green: #044a00;
    --white: #ffffff;
    --gray: #f5f5f5;
    --dark-gray: #f5f5f500;
    --black: #000000;
}

section {
    padding: 4rem 0;
    text-align: center;
    background-color: var(--dark-gray);
}

.section2 {
    padding: 4rem 0;
    text-align: center;
    /* background-image: url("programming-1857236_1920.jpg"); */
    background: 
    /* top, transparent red */ 
    linear-gradient(
      rgba(2, 176, 48, 0.5), 
      rgba(7, 104, 54, 0.5)
    ),
    /* bottom, image */
    url(programming-1857236_1920.jpg);

    /* Full height */
    height: 100%;

    /* Create the parallax scrolling effect */
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    
}

.section3 {
    padding: 4rem 0;
    text-align: center;
    /* background-image: url("programming-1857236_1920.jpg"); */
    background: 
    /* top, transparent red */ 
    linear-gradient(
      rgba(2, 176, 48, 0.5), 
      rgba(7, 104, 54, 0.5)
    ),
    /* bottom, image */
    url(source-4280758_1920.jpg);

    /* Full height */
    height: 100vh;

    /* Create the parallax scrolling effect */
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    
}

.section3 h2 {
    background-color: #2cc15e;
    margin-left: 35%;
    margin-right: 35%;
    border-radius: 25px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 1);
}

.section2 h2 {
    background-color: #2cc15e;
    margin-left: 35%;
    margin-right: 35%;
    border-radius: 25px;
}

h2 {
    color: white;
    margin-bottom: 1rem;
}

section p {
    color: white;
}

/* Header */
.hero {
    height: 100vh;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-image: url(code-1839406_1920.jpg);
    background: 
    /* top, transparent red */ 
    linear-gradient(
      rgba(2, 176, 48, 0.5), 
      rgba(7, 104, 54, 0.5)
    ),
    /* bottom, image */
    url(code-1839406_1920.jpg);
    text-shadow: 2px 2px 2px #000000;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.herofake {
    height: 10vh;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    text-shadow: 2px 2px 2px #000000
}

nav {
    /* position: absolute; */
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    /* background-color: rgba(0, 0, 0, 0.5); */
    background-color: rgb(255, 255, 255);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 1);
}

.logo-container {
    display: flex;
    align-items: center;
    padding-left: 25px;
}

nav .logo-words {
    color: var(--gold);
    font-size: 1.5rem;
    font-weight: 600;
    padding-left: 25px;
  }

nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    padding-right: 25px;
}

nav ul li a {
    color: var(--black);
    text-decoration: none;
    font-weight: 400;
    text-shadow: 2px 2px 0px #ffffff00;
}

.hero-text h1 {
    font-size: 3rem;
    /* margin-bottom: 1rem; */
    background-color: #044a00cc;
    padding-left: 15px;
    padding-right: 15px;
    border-top-left-radius: 25px;
    border-top-right-radius: 25px;
}

.hero-text p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    background-color: #044a00cc;
    /* border-radius: 25px; */
    border-bottom-right-radius: 25px;
    border-bottom-left-radius: 25px;
}

.btn {
    background-color: var(--gold);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 1);
}

.btn:active {
    background-color: var(--dark-gold);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0);
  }

.btn-lower {
    background-color: var(--gold);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 50px;
}

.section {
    padding: 4rem 0;
    background-color: var(--dark-gray);
}

.section p {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: white;
}

.card {
    background-color: var(--white);
    padding: 1.5rem;
    margin: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.card-big-bottom p {
    padding-bottom: 30px;
}

footer {
    text-align: center;
    padding: 2rem;
    background-color: var(--dark-green);
    color: var(--white);
}

.card-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 20px;
    /* background-image: url(programming-1857236_1920.jpg); */
    /* The image used */
    
}

.card-item {
    background-color: var(--green);
    margin: 20px;
    padding: 20px;
    border-radius: 10px;
    width: calc(33% - 40px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
    color: #fff;
    text-align: center;
}

.card-item p {
    padding-bottom: 30px;
  }
/* Mobile styles */
@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 2rem;
    }
    .hero-text p {
        font-size: 1rem;
    }
    nav ul {
        flex-direction: column;
        gap: 0.5rem;
        padding-right: 0;
        padding-left: 25px;
    }
    .section {
        padding: 2rem 0;
    }
    .card-item {
        width: calc(100% - 40px);
    }
    .btn, .btn-lower {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    footer {
        padding: 1rem;
    }
}


/* Hide nav links by default on smaller screens */
.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    padding-right: 25px;
}

.menu-toggle {
    display: none; /* Hide on desktop */
}

@media (max-width: 768px) {
    /* Dropdown menu button for mobile */
    .menu-toggle {
        display: block;
        font-size: 1.5rem;
        color: var(--white);
        padding-right: 25px;
        cursor: pointer;
    }

    .menu-toggle {
        display: block;
        font-size: 1.5rem;
        color: var(--white);
        padding-right: 25px;
        cursor: pointer;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        gap: 1rem;
        background-color: rgba(0, 0, 0, 0.8);
        position: absolute;
        top: 100%; 
        right: 0;
        width: 100%;
        padding: 1rem;
        text-align: center;
    }

    /* Show nav-links when they are active */
    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 0;
    }

    .nav-links li a {
        color: var(--white);
        text-decoration: none;
        font-weight: 400;
    }
}
