/* TrueBlue Solutions - Dark Minimal Theme */

:root {
    --black: #0a0c10;
    --white: #f5f7fa;
    --cream: #e2e6ec;
    --blue: #0077b6;
    --blue-light: #00a8e8;
    --blue-dark: #005a8c;
    --gray: #7a8494;
    --gray-dark: #2d3440;
    --gray-light: #a5b0c0;
    --accent: var(--blue);

    --font-display: 'Anton', sans-serif;
    --font-body: 'League Spartan', sans-serif;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

html.lenis, html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

body {
    font-family: var(--font-body);
    background: var(--black);
    color: var(--cream);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: var(--blue);
    color: var(--white);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(20px, 5vw, 80px);
}

/* Custom Cursor */
.cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 80px;
    height: 80px;
    border: 1px solid var(--blue-light);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5);
    transition: opacity 0.3s, transform 0.3s var(--ease);
    background: rgba(0,168,232,0.1);
}

.cursor.active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.cursor-text {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

@media (max-width: 991px) {
    .cursor { display: none; }
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 20px 0;
    mix-blend-mode: difference;
}

.nav-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(20px, 5vw, 80px);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--white);
    text-decoration: none;
}

.nav-time {
    font-size: 12px;
    color: var(--gray);
    letter-spacing: 0.05em;
}

.nav-menu {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-menu a {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--white);
    text-decoration: none;
    position: relative;
    padding-bottom: 2px;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--blue-light);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s var(--ease);
}

.nav-menu a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    flex-direction: column;
    gap: 6px;
}

.nav-toggle span {
    width: 24px;
    height: 1px;
    background: var(--white);
    transition: 0.3s var(--ease);
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--black);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        z-index: 99;
    }
    .nav-menu.active {
        display: flex;
    }
    .nav-menu a {
        font-size: 24px;
    }
    .nav-toggle { display: flex; z-index: 101; }
    .nav-toggle.active span:first-child {
        transform: rotate(45deg) translateY(5px);
    }
    .nav-toggle.active span:last-child {
        transform: rotate(-45deg) translateY(-5px);
    }
    .nav-time { display: none; }
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 20px 80px;
    position: relative;
    overflow: hidden;
}

/* Layer 1: Background Image */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Hero Text */
.hero-text-layer {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    z-index: 2;
    width: 55%;
    padding: 0 clamp(30px, 6vw, 100px);
    text-align: left;
}

.hero-heading .line {
    display: inline;
}

.hero-heading {
    font-family: var(--font-display);
    font-size: clamp(50px, 10vw, 160px);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: var(--white);
    margin: 0;
    text-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

.hero-heading .word {
    display: inline-block;
    margin-right: 0.1em;
    opacity: 0;
    transform: translateY(40px) rotateX(10deg);
    filter: blur(10px);
}

.hero-sub-wrapper {
    position: absolute;
    bottom: 120px;
    left: 0;
    z-index: 4;
    padding: 0 clamp(30px, 6vw, 100px);
}

.hero-sub {
    font-size: 14px;
    color: var(--blue-light);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    opacity: 0;
    transform: translateY(20px);
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.hero-scroll span {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--gray);
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--blue-light), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.5); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* Hero Mobile */
@media (max-width: 768px) {
    .hero {
        min-height: 100svh;
        padding: 100px 0 60px;
    }
    .hero-bg img {
        object-position: 80% center;
        object-fit: cover;
    }
    .hero-text-layer {
        width: 100%;
        padding: 0 20px;
        top: 110px;
        bottom: auto;
        transform: none;
    }
    .hero-heading {
        font-size: clamp(36px, 12vw, 56px);
        line-height: 1.1;
    }
    .hero-heading .line {
        display: block;
    }
    .hero-sub-wrapper {
        top: auto;
        bottom: 30px;
        padding: 0 20px;
    }
    .hero-sub {
        font-size: 10px;
        letter-spacing: 0.1em;
    }
    .hero-scroll {
        display: none;
    }
}

/* Sections */
.section {
    padding: clamp(80px, 15vh, 160px) 0;
    border-top: 1px solid rgba(0,119,182,0.15);
}

.section-dark {
    background: #0a0806;
}

.section-label {
    font-size: 12px;
    color: var(--gray);
    letter-spacing: 0.1em;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(20px);
}

.section-header {
    margin-bottom: clamp(40px, 8vh, 80px);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(40px, 8vw, 90px);
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.section-title .word {
    display: inline-block;
    margin-right: 0.15em;
    opacity: 0;
    transform: translateY(30px);
    filter: blur(8px);
}

.section-subtitle {
    font-size: 14px;
    color: var(--gray);
    max-width: 500px;
    opacity: 0;
    transform: translateY(20px);
}

/* About */
.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: clamp(40px, 8vw, 120px);
    align-items: start;
}

.large-text {
    font-size: clamp(20px, 3vw, 32px);
    font-weight: 300;
    line-height: 1.5;
    color: var(--gray-light);
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.stat {
    opacity: 0;
    transform: translateY(20px);
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(36px, 6vw, 56px);
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.02em;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 12px;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
    .about-stats {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 30px;
    }
    .stat { flex: 1; min-width: 120px; }
}

/* Systems */
.systems-list {
    display: flex;
    flex-direction: column;
}

.system-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 30px 0;
    border-bottom: 1px solid rgba(0,119,182,0.15);
    text-decoration: none;
    color: inherit;
    transition: padding-left 0.3s var(--ease);
    opacity: 0;
    transform: translateY(20px);
}

.system-item:first-child {
    border-top: 1px solid rgba(0,119,182,0.15);
}

.system-item:hover {
    padding-left: 20px;
}

.system-item h3 {
    font-family: var(--font-display);
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 400;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin-bottom: 8px;
    transition: color 0.3s var(--ease);
}

.system-item:hover h3 {
    color: var(--blue-light);
}

.system-item p {
    font-size: 14px;
    color: var(--gray);
}

.system-item svg {
    flex-shrink: 0;
    color: var(--gray);
    transition: transform 0.3s var(--ease), color 0.3s var(--ease);
}

.system-item:hover svg {
    transform: translateX(5px);
    color: var(--blue-light);
}

/* Technology */
.tech-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.tech-card {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 30px 0;
    border-bottom: 1px solid rgba(0,119,182,0.15);
    opacity: 0;
    transform: translateY(20px);
}

.tech-card:first-child {
    border-top: 1px solid rgba(0,119,182,0.15);
}

.tech-card-image {
    width: 80px;
    height: 80px;
    min-width: 80px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(0,119,182,0.1);
}

.tech-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tech-card-content {
    flex: 1;
}

.tech-number {
    font-size: 12px;
    color: var(--blue-light);
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 8px;
}

.tech-card-content h3 {
    font-family: var(--font-display);
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 400;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.tech-card-content p {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.7;
    max-width: 600px;
}

@media (max-width: 768px) {
    .tech-card {
        gap: 20px;
    }
    .tech-card-image {
        width: 60px;
        height: 60px;
        min-width: 60px;
    }
}

/* Marquee */
.marquee-section {
    padding: 40px 0;
    border-top: 1px solid rgba(0,119,182,0.15);
    border-bottom: 1px solid rgba(0,119,182,0.15);
    overflow: hidden;
    background: rgba(0,119,182,0.03);
}

.marquee {
    display: flex;
    overflow: hidden;
}

.marquee-inner {
    display: flex;
    gap: 60px;
    animation: marquee 30s linear infinite;
    white-space: nowrap;
}

.marquee-inner span {
    font-family: var(--font-display);
    font-size: clamp(18px, 3vw, 28px);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--blue-light);
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Warranty */
.warranty-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.warranty-item {
    display: block;
    padding: 40px;
    border: 1px solid rgba(0,119,182,0.15);
    border-radius: 8px;
    opacity: 0;
    transform: translateY(20px);
    transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.warranty-item:hover {
    border-color: var(--blue);
    background: rgba(0,119,182,0.05);
}

.warranty-term {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(36px, 5vw, 52px);
    font-weight: 400;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--blue-light), var(--blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.warranty-item h3 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 400;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.warranty-item p {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .warranty-grid {
        grid-template-columns: 1fr;
    }
}

/* Areas */
.areas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.area-item {
    display: block;
    padding: 40px;
    border: 1px solid rgba(0,119,182,0.15);
    border-radius: 8px;
    opacity: 0;
    transform: translateY(20px);
    transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
    text-decoration: none;
    color: inherit;
}

.area-item:hover {
    border-color: var(--blue);
    background: rgba(0,119,182,0.05);
}

.area-item h3 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 400;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.area-item p {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.6;
}

.area-coming {
    opacity: 0.5;
}

@media (max-width: 768px) {
    .areas-grid {
        grid-template-columns: 1fr;
    }
}

/* Contact */
.section-contact {
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: linear-gradient(180deg, var(--black) 0%, #12100d 100%);
}

.contact-content {
    max-width: 800px;
}

.contact-heading {
    font-family: var(--font-display);
    font-size: clamp(44px, 10vw, 100px);
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin-bottom: 30px;
}

.contact-heading .word {
    display: inline-block;
    margin-right: 0.15em;
    opacity: 0;
    transform: translateY(30px);
    filter: blur(8px);
}

.contact-sub {
    font-size: 16px;
    color: var(--gray);
    margin-bottom: 50px;
    max-width: 500px;
    opacity: 0;
    transform: translateY(20px);
}

.contact-actions {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(20px);
}

.btn-primary {
    position: relative;
    display: inline-flex;
    padding: 18px 40px;
    background: linear-gradient(135deg, var(--blue-light), var(--blue));
    color: var(--white);
    text-decoration: none;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 100px;
    overflow: hidden;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.btn-primary:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 40px rgba(0,168,232,0.3);
}

.btn-text,
.btn-text-hover {
    transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
}

.btn-text-hover {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, 100%);
    opacity: 0;
}

.btn-primary:hover .btn-text {
    transform: translateY(-150%);
}

.btn-primary:hover .btn-text-hover {
    transform: translate(-50%, -50%);
    opacity: 1;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    padding: 18px 0;
    color: var(--cream);
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--gray-light);
    transition: border-color 0.3s, color 0.3s;
}

.btn-secondary:hover {
    border-color: var(--blue-light);
    color: var(--blue-light);
}

/* Footer */
.footer {
    padding: 80px 0;
    border-top: 1px solid rgba(0,119,182,0.15);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 40px;
    align-items: start;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 15px;
}

.footer-brand p {
    font-size: 13px;
    color: var(--gray);
    line-height: 1.6;
}

.footer-nav {
    display: flex;
    gap: 30px;
}

.footer-nav a {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-nav a:hover {
    color: var(--blue-light);
}

.footer-copy {
    text-align: right;
}

.footer-copy p {
    font-size: 12px;
    color: var(--gray);
}

@media (max-width: 768px) {
    .footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-nav {
        justify-content: center;
        flex-wrap: wrap;
    }
    .footer-copy {
        text-align: center;
    }
}

/* Animations */
[data-animate] {
    will-change: transform, opacity, filter;
}

.word.animated {
    opacity: 1;
    transform: translateY(0) rotateX(0);
    filter: blur(0);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease), filter 0.8s var(--ease);
}

/* Mobile Global Adjustments */
@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }
    .section {
        padding: clamp(60px, 12vh, 100px) 0;
    }
    .section-title {
        font-size: clamp(32px, 10vw, 50px);
    }
    .contact-heading {
        font-size: clamp(36px, 12vw, 60px);
    }
    .contact-actions {
        flex-direction: column;
        gap: 20px;
    }
    .btn-primary, .btn-secondary {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
    .warranty-item, .area-item {
        padding: 25px;
    }
    .system-info {
        padding: 20px;
    }
}

/* Ensure touch targets are large enough */
@media (hover: none) {
    .nav-menu a {
        padding: 10px 0;
    }
    .system-card:hover {
        border-color: rgba(0,119,182,0.15);
        background: rgba(0,119,182,0.03);
    }
    .system-card:active {
        border-color: var(--blue);
        background: rgba(0,119,182,0.08);
    }
}
