:root {
    --color-green: #33DA72;
    --color-dark-gray: #4D4D4D;
    --color-white-gray: #F2F2F2;
    --border-thick: 2px;
}

* {
    box-sizing: border-box;
}

body {
    font-family: "Gabarito", sans-serif;
    background-color: var(--color-white-gray);
    color: var(--color-dark-gray);
    margin: 0;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

/* Layout Utilities */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

/* Buttons & Tags - Hard Edges */
.btn-link {
    display: inline-block;
    margin-top: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    border: var(--border-thick) solid var(--color-dark-gray);
    padding: 10px 20px;
    text-transform: uppercase;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.6;
    appearance: none;
    -webkit-appearance: none;
    border-radius: 0;
}

.btn-link:hover {
    background: var(--color-dark-gray);
    color: var(--color-green);
}

.btn-primary {
    background-color: var(--color-green);
    color: var(--color-dark-gray);
}

.btn-primary:hover {
    background-color: var(--color-dark-gray);
    color: var(--color-green);
}

/* Header */
header {
    background-color: white;
    padding: 20px 0;
    border-bottom: var(--border-thick) solid var(--color-dark-gray);
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    width: auto;
    display: block;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 40px;
    margin: 0;
    padding: 0;
    align-items: center;
}

nav a {
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

nav a:hover {
    color: var(--color-green);
}

/* Language Selector */
.lang-select {
    font-family: "Gabarito", sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-dark-gray);
    background-color: transparent;
    border: var(--border-thick) solid var(--color-dark-gray);
    padding: 5px 10px;
    cursor: pointer;
    text-transform: uppercase;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234D4D4D' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 1em;
    padding-right: 30px;
    border-radius: 0;
}

.lang-select:hover {
    background-color: var(--color-dark-gray);
    color: var(--color-white-gray);
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F2F2F2' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
}

.lang-select:focus {
    outline: none;
    border-color: var(--color-green);
}

/* Hero - Applying the "Green + Box" aesthetic here too */
.hero {
    padding: 80px 0;
    background-color: var(--color-green);
    color: var(--color-dark-gray);
    border-bottom: var(--border-thick) solid var(--color-dark-gray);
}

.hero-box {
    background: white;
    border: var(--border-thick) solid var(--color-dark-gray);
    padding: 3rem;
    box-shadow: 8px 8px 0px rgba(0,0,0,0.2);
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1;
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
}

.hero h1 span {
    color: var(--color-green);
    -webkit-text-stroke: 1px var(--color-dark-gray);
    -webkit-text-stroke: 0;
}

.hero p {
    font-size: 1.5rem;
    max-width: 800px;
    margin-bottom: 0;
    font-weight: 500;
}

/* Mission / Pillars */
.mission {
    background-color: var(--color-white-gray);
    position: relative;
    overflow: hidden;
    padding: 140px 0;
}

.mission::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/back1.webp');
    background-size: cover;
    background-position: top;
    background-repeat: no-repeat;
    opacity: 0.5;
    filter: contrast(1.1);
    z-index: 0;
}

.mission .container {
    position: relative;
    z-index: 1;
}

/* Intro Box Utility */
.intro-box {
    background: white;
    border: var(--border-thick) solid var(--color-dark-gray);
    padding: 2.5rem;
    margin: 0 auto 3rem auto;
    max-width: 850px;
    box-shadow: 6px 6px 0px rgba(0,0,0,0.1);
}

.intro-box h2 {
    margin-top: 0 !important;
}

.intro-box p:last-child {
    margin-bottom: 0 !important;
}

.mission h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--color-dark-gray);
    text-transform: uppercase;
    font-weight: 800;
}

.mission p {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.pillar {
    background: white;
    border: var(--border-thick) solid var(--color-dark-gray);
    padding: 2rem;
    box-shadow: 6px 6px 0px rgba(0,0,0,0.1);
}

.pillar h3 {
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--color-dark-gray);
    border-bottom: var(--border-thick) solid var(--color-green);
    padding-bottom: 10px;
    display: inline-block;
}

/* Core Software - The "KING" Style */
.software {
    background-color: var(--color-green);
    color: var(--color-dark-gray);
    border-top: var(--border-thick) solid var(--color-dark-gray);
    border-bottom: var(--border-thick) solid var(--color-dark-gray);
}

.software h2 {
    font-size: 3rem;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--color-dark-gray);
    text-transform: uppercase;
    font-weight: 900;
}

.software-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border: var(--border-thick) solid var(--color-dark-gray);
    background: var(--color-dark-gray);
    gap: var(--border-thick);
}

.software-item {
    background: white;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.software-item h3 {
    font-size: 2.5rem;
    margin: 0 0 1rem 0;
    color: var(--color-dark-gray);
    font-weight: 800;
}

.software-item p {
    font-size: 1.25rem;
}

/* Projects List */
.projects-list {
    position: relative;
    overflow: hidden;
    padding: 140px 0;
}

.projects-list::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/back2.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.5;
    filter: contrast(1.1);
    z-index: 0;
}

.projects-list .container {
    position: relative;
    z-index: 1;
}

.projects-list h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    font-weight: 800;
    text-align: center;
}

.projects-list p {
    font-size: 1.25rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.tag {
    background-color: white;
    border: var(--border-thick) solid var(--color-dark-gray);
    color: var(--color-dark-gray);
    padding: 0.8rem 1.5rem;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    box-shadow: 4px 4px 0px rgba(0,0,0,0.1);
}

/* Tables */
.table-container {
    overflow-x: auto;
    margin-bottom: 2rem;
    border: var(--border-thick) solid var(--color-dark-gray);
    background: white;
    box-shadow: 4px 4px 0px rgba(0,0,0,0.1);
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

th, td {
    padding: 1rem;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: var(--color-dark-gray);
    color: white;
    font-weight: 700;
    text-transform: uppercase;
}

tr:last-child td {
    border-bottom: none;
}

tr:nth-child(even) {
    background-color: var(--color-white-gray);
}

/* List with Icons */
.feature-list {
    list-style: none;
    padding: 0;
    font-size: 1.1rem;
}

.feature-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.feature-list i {
    font-size: 1.5rem;
    width: 30px;
    text-align: center;
    color: var(--color-green);
}

/* Footer */
footer {
    background-color: var(--color-dark-gray);
    color: var(--color-white-gray);
    padding: 60px 0;
    border-top: var(--border-thick) solid var(--color-dark-gray);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    margin-bottom: 0.5rem;
    display: block;
}

.footer-logo img {
    height: 50px;
    width: auto;
    display: block;
}

.footer-brand p {
    font-size: 1.25rem;
    margin: 0;
    opacity: 0.8;
}

.footer-links {
    display: flex;
    gap: 25px;
    align-items: center;
}

.footer-links a {
    font-size: 1.8rem;
    color: var(--color-white-gray);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-bottom: none;
}

.footer-links a:hover {
    color: var(--color-green);
    transform: translateY(-3px);
}

.footer-icon-svg {
    height: 1.8rem;
    width: auto;
    display: block;
    filter: brightness(0) invert(1); /* Makes it white-gray to match other icons */
    transition: all 0.2s ease;
}

.footer-links a:hover .footer-icon-svg {
    /* Filter to approximate #33DA72 (Green) */
    filter: invert(72%) sepia(59%) saturate(464%) hue-rotate(92deg) brightness(96%) contrast(89%);
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .pillars { grid-template-columns: 1fr; }
    .software-grid { grid-template-columns: 1fr; }
    header .container { flex-direction: column; gap: 20px; }
    .footer-content { flex-direction: column; text-align: center; }
}