:root{
    --bg: #ABE7B2;
    --border: #eee;
    --box-shadow: rgba(0, 0, 0, 0.1);
    --text-color: #043915;
    --grey: grey;
    --secondary-color: #043915;
}

/* Change selected text background to green and text color to white */
::selection {
  background-color: #28a745; /* green */
  color: white; /* optional: change text color */
}

/* For Firefox, use ::-moz-selection */
::-moz-selection {
  background-color: #28a745;
  color: white;
}


/* NAV-BAR */
.navbar {
    max-width: 1200px;
    margin:30px auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-family: 'Arial', sans-serif;

}

.navbar span h3 {
    font-weight: bold;
    font-size: 1.5rem;
    margin: 0;
    color: #333;
}

.navbar ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.navbar li {
    margin: 0;
}

.navbar a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.navbar a:hover {
    color:var(--bg);
    text-decoration: underline;
}

.hamburger {    
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background-color: #333;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: row;
        align-items: flex-start;
        padding: .5rem;
        gap: 1rem;
    }

    .hamburger {
        display: flex;
        align-self: flex-end;
    }

    .navbar ul {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    .navbar ul li:hover{
        background-color: rgba(95, 180, 95, 0.247);
        color: white;
    }

    .navbar.open ul {
        max-height: 300px; /* Adjust based on content */
    }

    .hamburger.open span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.open span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.open span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
}


/* BODY */
body {
    background-color: var(--bg);
    color: var(--text-color);
}

.main-content {
    margin-top: 35px;
    padding: 3rem 1rem;
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
}

.app-image {
    max-width: 85%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px var(--box-shadow);
    transition: transform 0.3s ease;
}

.app-image:hover {
    transform: scale(1.05);
}

.btn-download {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.btn-download:hover {
    background-color: #065a23;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(4, 57, 21, 0.3);
    color: white;
}

nav ul li a.active {
    color: rgba(27, 167, 71, 0.959); /* White text for contrast */
    font-weight: bold; /* Make it bold */
    
}
/* Footer */
footer {
    padding: 2rem 1rem;
    margin-top: 3rem;
    color: #6b7280;
}
/* Footer Icons hover */

footer a svg:hover{
    color: var(--text-color);
}
/* Responsive: Stack sa mobile */
@media (max-width: 768px) {
    .main-content {
        margin-top: 60px;
    }
    
    .col-md-6:first-child {
        margin-bottom: 2rem;
    }
}
