:root {
    --tr-green: #00FF6F;
    --bright-grey-1: #D6D6D6;
    --dark-green-1: #00361D;
    --black: #000000;
    --white: #ffffff;

    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    background-color: var(--dark-green-1);
    color: var(--bright-grey-1);
    font-family: var(--font-body);
    font-weight: 300;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--white);
    margin: 0 0 1rem 0;
    line-height: 1.1;
}

h1 {
    font-size: clamp(4.36rem, 8vw, 6rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 600;
}

p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--bright-grey-1);
    margin-bottom: 1.5rem;
}

.text-accent {
    color: var(--tr-green);
}

.btn-large,
.tr-btn-small {
    background-color: var(--tr-green);
    color: var(--dark-green-1);
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: none;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 255, 111, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-large {
    padding: 0 40px;
}

.tr-btn-small {
    padding: 0 25px;
    height: 40px;
    line-height: 40px;
    font-size: 0.9rem;
}

.btn-large:hover,
.btn-large:focus,
.tr-btn-small:hover {
    background-color: #00cc59;
    box-shadow: 0 6px 20px rgba(0, 255, 111, 0.5);
    transform: translateY(-2px);
}

/* Navbar Customization */
nav {
    height: 96px;
    line-height: normal;
    transition: all 0.3s ease-out;
}

nav .nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

nav .brand-logo {
    position: relative !important;
    /* Override Initialize */
    left: auto !important;
    transform: none !important;
    display: flex;
    align-items: center;
}

nav ul {
    display: flex;
    height: 100%;
    align-items: center;
}



nav ul a {
    color: var(--bright-grey-1);
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s;
    display: flex;
    /* Use flex to center text vertically */
    align-items: center;
    height: 100%;
    padding: 0 15px;
    position: relative;
}

/* Active State indicator - optionally an underline or just color */
nav ul li.active a,
nav ul a.active {
    color: var(--tr-green);
}

/* Optional: Active indicator line */
nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--tr-green);
    transition: width 0.3s;
}

nav ul li.active a::after,
nav ul a.active::after {
    width: 100%;
}

nav ul a:hover {
    color: var(--tr-green);
    background-color: transparent;
}

/* Fix for button in navbar */
nav ul a.btn {
    height: 40px;
    /* Reset height for the button */
    margin-top: 0;
    /* Align center via flex parent */
    display: inline-flex;
    justify-content: center;
}

nav ul li {
    height: 100%;
    float: none;
    /* Override Materialize */
    display: flex;
    /* Center children */
    align-items: center;
}

/* Remove active line for button */
nav ul a.btn::after {
    display: none;
}

/* Mobile Sidenav */
.sidenav li>a {
    color: var(--bright-grey-1);
    font-family: var(--font-heading);
}

.sidenav-trigger {
    color: var(--tr-green);
}

/* Section Spacing & Layout */
section {
    min-height: 100vh;
    padding: 100px 0;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.container {
    width: 90%;
    max-width: 1400px;
}

/* Util Classes */
.mb-0 {
    margin-bottom: 0 !important;
}

.mt-0 {
    margin-top: 0 !important;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--dark-green-1);
}

::-webkit-scrollbar-thumb {
    background: var(--tr-green);
    border-radius: 4px;
}

/* Animations Helpers */
.gsap-reveal {
    opacity: 0;
    transform: translateY(30px);
}

/* Specific Section Styles */

/* Hero */
.hero-content {
    z-index: 2;
    position: relative;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    z-index: 1;
}

/* Cards */
.card-panel {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: var(--bright-grey-1);
    border-radius: 1px;
    height: 100%;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.row.equal-height {
    display: flex;
    flex-wrap: wrap;
}

.row.equal-height>.col {
    display: flex;
    flex-direction: column;
}

.card-title {
    color: var(--tr-green);
    font-family: var(--font-heading);
    font-weight: 600 !important;
}

/* Section Headers */
.section-caption {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
    color: var(--tr-green);
    margin-bottom: 1rem;
    display: block;
}

/* Background Image Updates */
#challenge,
#mission,
#about,
#solution {
    background-image: url('../img/bg_02.jpg');
    background-size: cover;
    background-position: center;
    background-color: transparent;
    background-repeat: no-repeat;
}