:root {
    --color-dark: #0f1012;
    --color-darker: #070708;
    --color-light: #f4f4f5;
    --color-white: #ffffff;

    /* Brand Colors based on the logo */
    --color-tech: #0F6AA9;
    /* Technical blue */
    --color-agro: #309F40;
    /* Agro green */
    --color-trade: #E97626;
    /* Trade orange */

    /* Layout */
    --padding-x: 6vw;
    --padding-y: 6vh;

    --font-heading: 'Syne', sans-serif;
    --font-body: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none !important;
    /* Forces custom cursor */
}

html,
body {
    width: 100%;
    min-height: 100vh;
    font-family: var(--font-body);
    background-color: var(--color-dark);
    color: var(--color-light);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Utilities */
.mt-2 {
    margin-top: 2rem;
}

.mt-4 {
    margin-top: 4rem;
}

.flex-gap {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
}

/* --- Custom Cursor --- */
.cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background-color: var(--color-white);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: width 0.2s, height 0.2s;
}

.cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    width: 35px;
    height: 35px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9998;
    transition: width 0.3s, height 0.3s, background-color 0.3s;
}

.cursor-hover .cursor {
    width: 0;
    height: 0;
}

.cursor-hover .cursor-follower {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--color-white);
    backdrop-filter: blur(2px);
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: var(--padding-y) var(--padding-x);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    mix-blend-mode: difference;
    color: var(--color-white);
}

.logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.8rem;
    letter-spacing: 2px;
}

.menu-toggle {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
}

/* --- Panels (Sections) --- */
.panel {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 var(--padding-x);
    position: relative;
    overflow: hidden;
    background-color: var(--color-dark);
}

.tech-detail,
.agro-detail,
.trade-detail,
.footer {
    z-index: 2;
    box-shadow: 0px -20px 40px rgba(0, 0, 0, 0.4);
}

.dark {
    background-color: var(--color-dark);
}

.hero.dark {
    /* Adds a sleek dark-grey gradient glow instead of solid dark */
    background: radial-gradient(circle at 70% 50%, #1e1f26 0%, var(--color-darker) 100%);
}

.blue {
    background-color: var(--color-tech);
}

.green {
    background-color: var(--color-agro);
}

.orange {
    background-color: var(--color-trade);
}

.hero-content {
    max-width: 90vw;
    z-index: 2;
}

/* Typography styles */
.word-wrapper {
    overflow: hidden;
    display: inline-block;
    padding-bottom: 5px;
    /* prevent clipping on descenders */
    vertical-align: top;
}

.word {
    display: inline-block;
    transform: translateY(110%);
}

.hero-title {
    font-family: var(--font-body);
    font-size: clamp(3rem, 6vw, 7rem);
    line-height: 1;
    font-weight: 700;
    color: var(--color-white);
    letter-spacing: -2px;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 1.5vw, 1.3rem);
    line-height: 1.6;
    font-weight: 400;
    color: #a0a0a5;
    max-width: 600px;
}

@media (min-width: 769px) {
    .hero-main-layout {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        align-items: stretch;
    }

    .hero-title {
        grid-column: 1 / -1;
    }

    .hero-sublayout {
        grid-column: 2;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding-top: 1rem;
    }
}

.overline {
    color: var(--color-trade);
    font-weight: 700;
    letter-spacing: 4px;
    font-size: 0.8rem;
    margin-bottom: 2rem;
}

.btn-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: var(--color-white);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    background: transparent;
    transition: all 0.3s ease;
}

.btn-pill:hover {
    background: var(--color-white);
    color: var(--color-dark);
}

.scroll-indicator-v {
    position: absolute;
    bottom: var(--padding-y);
    right: var(--padding-x);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    opacity: 0.5;
}

.scroll-indicator-v.left-side {
    right: auto;
    left: var(--padding-x);
}

.overline-bottom-right {
    position: absolute;
    bottom: var(--padding-y);
    right: var(--padding-x);
    color: var(--color-trade);
    font-weight: 700;
    letter-spacing: 4px;
    font-size: 0.8rem;
    writing-mode: horizontal-tb;
    /* default, just making sure */
}

.scroll-indicator-v span {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 3px;
    writing-mode: vertical-rl;
}

.scroll-indicator-v .line {
    width: 2px;
    height: 40px;
    background-color: var(--color-white);
}

/* --- Hero Background Visuals (Baunfire Style) --- */
.hero-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.hero-bg-circle {
    position: absolute;
    top: 50%;
    left: 70%;
    transform: translate(-50%, -50%);
    width: 90vh;
    /* Scaled to screen height */
    height: 90vh;
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 50%;
}

.hero-bg-text {
    position: absolute;
    top: 50%;
    right: -10%;
    transform: translateY(-50%) rotate(90deg);
    font-family: var(--font-heading);
    font-size: 45vw;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.02);
    writing-mode: vertical-rl;
    line-height: 0.7;
}

.hero-dots {
    position: absolute;
    opacity: 0.4;
}

.dots-1 {
    top: 20%;
    right: 15%;
}

.dots-2 {
    bottom: 15%;
    left: 35%;
}

.dots-3 {
    top: 35%;
    left: 60%;
}

.content-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3rem;
    width: 100%;
}

.huge-text {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 10vw, 12rem);
    line-height: 0.9;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--color-darker);
    /* For Baunfire brutalist look */
}

.panel.dark .huge-text {
    color: var(--color-white);
}

.accent-tech {
    color: var(--color-white);
}

.accent-agro {
    color: var(--color-white);
}

.accent-trade {
    color: var(--color-white);
}

.description {
    max-width: 600px;
    margin-left: auto;
    /* align to right side */
    background: rgba(10, 10, 10, 0.4);
    padding: 3rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1px;
}

.description h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-family: var(--font-body);
    font-weight: 600;
    letter-spacing: -0.5px;
    color: var(--color-white);
}

.description p {
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.8;
    color: var(--color-white);
}

.bg-letter {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-heading);
    font-size: 35vw;
    font-weight: 800;
    opacity: 0.05;
    z-index: 1;
    white-space: nowrap;
    pointer-events: none;
    color: var(--color-darker);
}

/* Footer */
.footer {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.footer-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.huge-link {
    color: var(--color-white);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.huge-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--color-trade);
    /* Orange accent on hover */
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.86, 0, 0.07, 1);
}

.huge-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.details {
    font-size: 0.9rem;
    opacity: 0.5;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* --- Detail Panels --- */
.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4rem;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    z-index: 2;
}

.image-wrapper {
    width: 100%;
    aspect-ratio: 16 / 10;
    margin-bottom: 2rem;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    background-color: var(--color-darker);
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    opacity: 0.85;
}

.detail-item:hover .image-wrapper img {
    transform: scale(1.05);
    opacity: 1;
}

.detail-item {
    padding: 2rem 0;
    border-top: 2px solid rgba(255, 255, 255, 0.1);
}

.detail-item h4 {
    font-size: 2rem;
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    color: var(--color-white);
    letter-spacing: -1px;
}

.detail-item p {
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.7;
}

/* --- Full Screen Menu --- */
.full-screen-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 9998;
    visibility: hidden;
    pointer-events: none;
}

.menu-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-darker);
    transform: translateY(-100%);
}

.menu-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 2rem;
}

.menu-links {
    list-style: none;
    text-align: center;
    padding: 0;
}

.menu-item {
    margin: 2rem 0;
    overflow: hidden;
}

.menu-item a {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 6vw, 6rem);
    color: var(--color-white);
    text-decoration: none;
    font-weight: 800;
    line-height: 1;
    display: inline-block;
    transition: transform 0.3s ease;
}

.menu-item a:hover {
    transform: scale(1.05);
}

.menu-footer {
    margin-top: 5rem;
    text-align: center;
    color: var(--color-light);
}

.menu-email {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    color: var(--color-white);
    text-decoration: none;
    display: block;
    margin-top: 1rem;
    position: relative;
}

.menu-email::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--color-white);
    transition: width 0.3s ease;
}

.menu-email:hover::after {
    width: 100%;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .detail-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }

    .description {
        margin-left: 0;
        width: 100%;
        padding: 2rem;
    }

    .cursor,
    .cursor-follower {
        display: none !important;
        /* disabled on mobile */
    }

    * {
        cursor: auto !important;
    }

    .image-wrapper {
        aspect-ratio: 16 / 9;
        margin-bottom: 1.5rem;
    }

    .detail-item h4 {
        font-size: 1.5rem;
    }
}