/* CORE VARIABLES BASED ON LOGO */
:root {
    --brand-dark-green: #1B4D3E;    /* The Circle Background */
    --brand-light-green: #76BC43;    /* The "Plateau" Text */
    --brand-orange: #EAA734;    /* The "Tec" Text */
    --text-light: #F4F4F4;
    --text-gray: #A0A0A0;
    --bg-dark: #0F2B22;    /* A darker shade for depth */
    --bg-dark-1: #11523d;

    --drk-grn-0: #0a1f18;
    --drk-grn-1: #0f2b22;
    /* Darkest, very close to the original color #0f2b22 */
    --drk-grn-2: #174335;
    --drk-grn-3: #205c48;
    --drk-grn-4: #28745c;
    --drk-grn-5: #318d6f;
    --drk-grn-6: #39a683;
    --drk-grn-7: #43bd96;
    --drk-grn-8: #5cc6a4;
    --drk-grn-9: #74ceb1;
    --drk-grn-10: #8dd7bf;
    /* Lightest shade */

    /* Green Shadows */
    --green-1: #1f7d2f;
    --green-2: #218331;
    --green-3: #268a35;
    --green-4: #2b933a;
    --green-5: #329c41;
    --green-6: #38a446;
    --green-7: #41ac4f;
    --green-8: #47b155;
    --green-9: #4cb25d;

    /* Teal Shadows */
    --teal-1: #1a5656;
    --teal-2: #266b6c;
    --teal-3: #338485;
    --teal-4: #479e9f;
    --teal-5: #5bb2b3;
    --teal-6: #72c3c4;
    --teal-7: #8ad1d3;
    --teal-8: #a0ddde;
    --teal-9: #b4e6e7;
    --teal-10: #c9eded;

    /* Orange Shadows */
    --orange-1: #e65100;
    --orange-2: #ef6c00;
    --orange-3: #f57c00;
    --orange-4: #fb8c00;
    --orange-5: #ff9800;
    --orange-6: #ffa726;
    --orange-7: #ffb74d;
    --orange-8: #ffcc80;
    --orange-9: #ffe0b2;
    --orange-10: #fff3e0;

    /* Mixed Shades */
    --mix-1: #a26e25;
    --mix-2: #9c7b2d;
    --mix-3: #9b722d;
    --mix-4: #6a6e49;
    --mix-5: #858b40;

}

/* RESET & TYPOGRAPHY */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

/* NAVIGATION */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%;
    background: rgba(27, 77, 62, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    font-size: 24px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 30px;
    height: 30px;
    background: var(--brand-dark-green);
    border-radius: 50%;
    border: 2px solid white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    color: white;
}

.logo-text span:first-child {
    color: var(--brand-light-green);
}

.logo-text span:last-child {
    color: var(--brand-orange);
}

.logo-image {
    width: 250px;
    @media (max-width: 600px) {
        width: 160px;
        margin: 10px;
    }
}

.nav-links {
    display: flex;
    gap: 30px;
    font-size: 1.2rem;
}

.nav-links a:hover {
    color: var(--brand-orange);
}

.btn-cta {
    padding: 10px 25px;
    background: var(--brand-orange);
    color: var(--brand-dark-green);
    font-weight: bold;
    border-radius: 50px;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(234, 167, 52, 0.4);
}

/* HERO SECTION */
.hero {
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8%;
    position: relative;
    overflow: hidden;

    /* NEW BACKGROUND SETTINGS */
    background-image: url('../images/hero-large.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Optional: Makes the background stay still while scrolling */
}

.hero-content {
    max-width: 600px;
    z-index: 2;
}

.tagline {
    color: var(--brand-light-green);
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 15px;
    display: inline-block;
}

h1 {
    font-size: 42px;
    line-height: 1.1;
    margin-bottom: 20px;
}

h1 span {
    color: var(--brand-orange);
}

.hero-p {
    font-size: 18px;
    color: var(--teal-10);
    margin-bottom: 40px;
}

/* THE "T" VISUALIZER */
.hero-visual {
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.orbit-circle {
    position: absolute;
    /* width: 100%; */
    height: 100%;
    border: 10px solid rgba(149, 184, 124, 0.616);
    border-radius: 50%;
    animation: spin 20s linear infinite;
}

.center-logo-lg {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 60px;
    color: white;
    background: var(--brand-dark-green);
    box-shadow: 0 0 30px rgba(118, 188, 67, 0.2);
    z-index: 2;

    position: relative;

    img {
        position: absolute;
        width: 100px;
        height: auto;
        margin: 0 auto;
        left: 13px;
        top: 15px;
    }
}

/* SERVICES GRID */
.services {
    padding: 80px 8%;
    background: var(--drk-grn-1);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

.section-header p {
    color: var(--teal-10);
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.card {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 15px;
    border-top: 3px solid transparent;
    transition: 0.3s;
}

.card:hover {
    border-top: 3px solid var(--brand-orange);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
}

.card-icon {
    font-size: 4rem;
    margin-bottom: 5px;
    color: var(--brand-light-green);
    text-align: center;
}

.card h3 {
    margin-bottom: 10px;
}

.card p {
    font-size: 14px;
    color: var(--teal-7);
}

/* PRODUCT SPOTLIGHT: ASSETUVA */
.spotlight {
    padding: 80px 8%;
    display: flex;
    align-items: center;
    gap: 50px;
    /* background: linear-gradient(90deg, #0F2B22 50%, #163a30 100%); */

    &.reverse{
        flex-direction: row-reverse;
    }

    @media (max-width: 900px) {
        flex-direction: column;
        align-items: normal;
        padding: 35px 5%;
        gap: 20px;
        border-top: 1px solid var(--teal-2);       
        &.reverse{
            flex-direction: column;
        }
    }

    &.top-down {
        background: linear-gradient(180deg, var(--drk-grn-3) 50%, var(--drk-grn-1) 100%);
    }

    &.down-up {
        background: linear-gradient(0deg, var(--drk-grn-3) 50%, var(--drk-grn-1) 100%);
    }

    &.left-right {
        background: linear-gradient(90deg, var(--drk-grn-3) 50%, var(--drk-grn-1) 100%);
    }

    &.right-left {
        background: linear-gradient(270deg, var(--drk-grn-3) 50%, var(--drk-grn-1) 100%);
    }
}

.spotlight-text {
    flex: 1;
}

.spotlight-text p {
    color: var(--teal-10);
    margin-bottom: 20px;
}

.spotlight-img {
    flex: 1;
    height: 300px;
    background: #2a2a2a;
    border-radius: 12px;
    border: 1px solid #444;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    position: relative;
}

/* Fake UI Elements */
.ui-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 30px;
    background: #333;
    border-radius: 12px 12px 0 0;
    display: flex;
    align-items: center;
    padding: 0 15px;
    gap: 5px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #555;
}

.badge {
    background: rgba(234, 167, 52, 0.2);
    color: var(--brand-orange);
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 15px;
}

/* FOOTER */
footer {
    padding: 50px 8%;
    background: var(--drk-grn-0);
    border-top: 1px solid #1B4D3E;
    font-size: 14px;
    color: var(--text-gray);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-col h4 {
    color: white;
    margin-bottom: 15px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 10px;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        height: auto;
        padding-top: 100px;
        text-align: center;
        background-image: linear-gradient(rgba(15, 43, 34, 0.9), rgba(39, 125, 84, 0.8)), url('../images/hero-large.jpg');
    }

    .hero-visual {
        margin-top: 50px;
        width: 300px;
        height: 300px;
    }

    .spotlight {
        flex-direction: column;
    }

    .nav-links {
        display: none;
    }
}

.pulse {
    animation: flow 2s infinite linear;
}

.pulse.delayed {
    animation: flow 2s infinite linear;
    animation-delay: 1s;
}

@keyframes flow {
    0% {
        left: 0;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        left: 100%;
        opacity: 0;
    }
}

.gate-arm {
    animation: liftGate 4s infinite ease-in-out;
}

@keyframes liftGate {
    0% {
        transform: rotate(0deg);
    }

    /* Closed */
    30% {
        transform: rotate(-45deg);
    }

    /* Open */
    60% {
        transform: rotate(-45deg);
    }

    /* Stay Open */
    90% {
        transform: rotate(0deg);
    }

    /* Close */
    100% {
        transform: rotate(0deg);
    }
}

@keyframes growBar1 { from { height: 0%; } to { height: 65%; } }
@keyframes growBar2 { from { height: 0%; } to { height: 85%; } }
@keyframes growBar3 { from { height: 0%; } to { height: 45%; } }


/* ABOUT SECTION */
.about-container {
    padding: 100px 8%;
    background-color: var(--teal-1);
    position: relative;
    overflow: hidden;

    /* Decorative circle */
    .circle {
        position: absolute;
        top: 0;
        right: 0;
        width: 300px;
        height: 300px;
        background: radial-gradient(circle, rgba(118, 188, 67, 0.1) 0%, transparent 70%);
        border-radius: 50%;
    }

    /* Flex wrapper */
    .flex-wrapper {
        display: flex;
        gap: 60px;
        align-items: center;
        flex-wrap: wrap;
    }

    /* Left column */
    .left-col {
        flex: 1;
        min-width: 300px;
    }

    /* Badge */
    .badge {
        background: rgba(255, 255, 255, 0.1);
        color: var(--text-gray);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }

    /* Heading */
    h2 {
        font-size: 42px;
        line-height: 1.1;
        margin-bottom: 30px;
    }

    h2 span {
        color: var(--brand-light-green);
    }

    /* Paragraphs */
    p {
        color: var(--teal-10);
        font-size: 16px;
        margin-bottom: 20px;
    }

    p:last-of-type {
        margin-bottom: 30px;
    }

    /* Signature block */
    .signature {
        border-left: 2px solid var(--brand-orange);
        padding-left: 20px;
    }

    .signature p:first-child {
        color: white;
        font-weight: bold;
        margin-bottom: 5px;
    }

    .signature p:last-child {
        font-size: 12px;
        color: var(--mix-5);
    }

    /* Right column */
    .right-col {
        flex: 1;
        min-width: 300px;
        position: relative;
    }

    /* Image box */
    .image-box {
        width: 100%;
        height: 500px;
        background-image: url('../images/strategic-partner.jpg');
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
        border-radius: 20px;
        position: relative;
        border: 1px solid rgba(255, 255, 255, 0.1);
        overflow: hidden;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    /* Decorative border */
    .border-outline {
        position: absolute;
        top: 30px;
        left: -30px;
        width: 100%;
        height: 100%;
        border: 2px solid rgba(118, 188, 67, 0.2);
        border-radius: 20px;
        z-index: -1;
    }
}