:root {
    --primary-bg: #f8f9fa;
    --secondary-bg: #ffffff;
    --tj-blue: #001d39; /* Dark Corporate Blue */
    --tj-blue-light: #003666;
    --tj-highlight: #00afef; /* Provided vibrant blue */
    --tj-highlight-light: #32bdf2;
    --text-main: #212529;
    --text-muted: #6c757d;
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(0, 29, 57, 0.1);
    --card-shadow: 0 10px 30px rgba(0,0,0,0.05);
    --navbar-bg: rgba(255, 255, 255, 0.7);
    --navbar-bg-scrolled: rgba(255, 255, 255, 0.98);
    --navbar-border: rgba(0, 0, 0, 0.05);
    --navbar-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --mobile-menu-bg: rgba(255, 255, 255, 0.98);
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --navbar-height: 104px;
    --navbar-visual-height: 92px;
    --navbar-visual-height-scrolled: 76px;
}

/* DARK MODE VARIABLES */
body.dark-mode {
    --primary-bg: #000b1a;
    --secondary-bg: #00152b;
    --tj-blue: #f0f4f8; /* Inverted Text */
    --tj-blue-light: #a0aec0;
    --tj-highlight: #00afef;
    --text-main: #f0f4f8;
    --text-muted: #a0aec0;
    --glass-bg: rgba(0, 29, 57, 0.4);
    --glass-border: rgba(255, 255, 255, 0.1);
    --card-shadow: 0 10px 30px rgba(0,0,0,0.3);
    --navbar-bg: rgba(0, 21, 43, 0.72);
    --navbar-bg-scrolled: rgba(0, 21, 43, 0.96);
    --navbar-border: rgba(255, 255, 255, 0.08);
    --navbar-shadow: 0 14px 34px rgba(0, 0, 0, 0.34);
    --mobile-menu-bg: rgba(0, 11, 26, 0.98);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--navbar-height) + 24px);
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

button,
input,
select,
textarea {
    font: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -4rem;
    background: var(--tj-blue);
    color: #fff;
    padding: 0.85rem 1rem;
    border-radius: 0.75rem;
    z-index: 3000;
}

.skip-link:focus {
    top: 1rem;
}

:focus-visible {
    outline: 3px solid rgba(0, 175, 239, 0.5);
    outline-offset: 3px;
}

/* Updated Highlight to use Brand Blue */
.highlight {
    color: var(--tj-highlight);
    display: inline-block;
    position: relative;
    font-weight: 800;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 8px;
    background-color: rgba(0, 175, 239, 0.15); /* #00afef with opacity */
    z-index: -1;
    border-radius: 4px;
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    min-height: var(--navbar-visual-height);
    padding: 0.35rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--navbar-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--navbar-border);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    min-height: var(--navbar-visual-height-scrolled);
    padding: 0.25rem 5%;
    background: var(--navbar-bg-scrolled);
    box-shadow: var(--navbar-shadow);
}

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

.logo img {
    width: auto;
    object-fit: contain;
}

.navbar .logo {
    height: calc(var(--navbar-visual-height) * 0.9);
    flex: 0 0 auto;
}

.navbar.scrolled .logo {
    height: calc(var(--navbar-visual-height-scrolled) * 0.9);
}

.navbar .logo img {
    height: 100%;
}

.footer-content .logo img {
    height: 44px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0;
    color: var(--tj-blue);
}

.nav-links a:not(.btn-primary)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--tj-blue);
    transition: var(--transition);
}

.nav-links a:not(.btn-primary):hover::after {
    width: 100%;
}

.btn-primary {
    background: var(--tj-blue);
    color: #fff !important;
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 29, 57, 0.2);
    border: 1px solid transparent;
}

.btn-primary:hover {
    background: var(--tj-blue-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 29, 57, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--tj-blue);
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    font-weight: 600;
    border: 1px solid var(--tj-blue);
}

.btn-secondary:hover {
    background: rgba(0, 29, 57, 0.05);
    transform: translateY(-2px);
}

/* Dark Mode Button Contrasts */
body.dark-mode .btn-primary {
    background: var(--tj-highlight);
    color: #fff !important;
}

body.dark-mode .btn-primary:hover {
    background: var(--tj-highlight-light);
}

body.dark-mode .btn-secondary {
    color: var(--tj-blue);
    border-color: var(--glass-border);
    background: rgba(240, 244, 248, 0.05);
}

body.dark-mode .btn-secondary:hover {
    background: rgba(240, 244, 248, 0.1);
}

.lang-btn {
    background: transparent;
    border: 1px solid var(--tj-highlight);
    color: var(--tj-highlight);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition);
    margin-left: 1rem;
}

.lang-btn:hover {
    background: var(--tj-highlight);
    color: #fff;
}

.lang-btn:focus-visible {
    outline-color: rgba(0, 175, 239, 0.8);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: 1px solid transparent;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 0.4rem;
    border-radius: 12px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 2px;
    background: var(--tj-blue);
    transition: var(--transition);
}

/* HERO */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 5% 4rem;
    position: relative;
    overflow: hidden;
    background: url('assets/hero-bg.jpg') center/cover no-repeat;
}

.hero-inner {
    position: relative;
    z-index: 2;
    width: min(1200px, 100%);
    margin: 0 auto;
    display: block;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-bg);
    opacity: 0.88;
    z-index: 1;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-content {
    max-width: 760px;
    position: relative;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--secondary-bg);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--tj-highlight);
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 3rem;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.hero-mark {
    display: block;
    margin-bottom: 2rem;
}

.hero-mark-logo {
    width: clamp(260px, 34vw, 420px);
    height: auto;
}

.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    animation: float 20s infinite ease-in-out alternate;
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: var(--tj-blue);
    top: -200px;
    right: -100px;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: var(--tj-highlight);
    bottom: -100px;
    left: -200px;
    animation-delay: -5s;
    opacity: 0.2;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-50px, 50px) scale(1.2); }
}

/* SECTIONS */
section:not(.hero) {
    padding: 4rem 5%; /* Reduced padding per user request */
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
    font-weight: 800;
    color: var(--tj-blue);
}

/* ABOUT */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.stats {
    display: flex;
    flex-wrap: wrap; /* Prevent crunching on smaller screens */
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    min-width: 120px; /* Provides consistent width to prevent jitter when numbers grow */
}

.stat-item h3 {
    display: flex;
    align-items: baseline;
    font-size: 2.5rem; /* Size of the suffix symbols (+ and %) */
    color: var(--tj-blue);
    line-height: 1;
    margin-bottom: 0.5rem;
    font-weight: 800;
}

.stat-item .count {
    font-size: 4.5rem; /* Significantly larger numbers */
    font-variant-numeric: tabular-nums;
    margin-right: 2px;
}

.stat-item span {
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.premium-image-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, #f1f3f5, #e9ecef);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 20px 50px rgba(0,29,57,0.08);
}

.premium-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.about-stack-stage {
    position: relative;
    min-height: 440px;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    overflow: visible;
    isolation: isolate;
}

.about-stack-fallback {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
    opacity: 0.22;
    filter: saturate(0.9);
}

.about-stack-stage::before {
    content: none;
}

.about-stack-surface {
    flex: 1 1 auto;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.about-stack-card {
    --stack-left: 18%;
    --stack-top: 16%;
    --stack-flight-x: 0px;
    --stack-flight-y: 0px;
    --stack-rotate: 0deg;
    --stack-flight-rotate: 0deg;
    position: absolute;
    top: var(--stack-top);
    left: var(--stack-left);
    width: min(44%, 260px);
    aspect-ratio: 4 / 3;
    padding: 0.7rem 0.7rem 2.6rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(0, 29, 57, 0.08);
    box-shadow:
        0 28px 60px rgba(0, 29, 57, 0.18),
        0 8px 18px rgba(0, 29, 57, 0.08);
    overflow: hidden;
    opacity: 0;
    transform: translate(var(--stack-flight-x), var(--stack-flight-y)) rotate(var(--stack-flight-rotate)) scale(0.72);
    transition:
        opacity 900ms ease,
        transform 1000ms cubic-bezier(0.2, 0.82, 0.18, 1);
    will-change: transform, opacity;
}

.about-stack-card::before {
    content: '';
    position: absolute;
    top: 0.5rem;
    left: 50%;
    width: 38%;
    height: 0.45rem;
    transform: translateX(-50%);
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(0, 175, 239, 0.18), rgba(0, 29, 57, 0.1));
}

.about-stack-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 32%);
    pointer-events: none;
}

.about-stack-card.is-visible {
    opacity: 1;
    transform: translate(0, 0) rotate(var(--stack-rotate)) scale(1);
}

.about-stack-card.is-exiting {
    opacity: 0;
    transform: translate(24px, 46px) rotate(var(--stack-rotate)) scale(0.9);
}

.about-stack-card img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    object-fit: cover;
}

/* INNOVATION */
.innovation-list {
    list-style: none;
    margin-top: 2rem;
}

.innovation-list li {
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
    color: var(--text-muted);
    font-size: 1.05rem;
}

.innovation-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--tj-highlight);
    font-weight: bold;
}

.innovation-list strong {
    color: var(--tj-blue);
}

/* SERVICES & PROJECTS */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.about,
.news-section,
.services,
.projects,
.contact,
.news-page-hero,
.news-archive-section,
.news-article-page,
.service-section {
    content-visibility: auto;
    contain-intrinsic-size: 1px 720px;
}

.news-section {
    padding: 0 8% 5rem;
}

.news-section-actions {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 380px));
    justify-content: center;
    gap: 1.5rem;
}

.news-card {
    background: var(--secondary-bg);
    border-radius: 22px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    width: 100%;
    max-width: 380px;
    display: flex;
    flex-direction: column;
    content-visibility: auto;
    contain-intrinsic-size: 360px;
}

.news-card-media {
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, rgba(0, 175, 239, 0.14), rgba(0, 29, 57, 0.08));
}

.news-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news-card-content {
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-card-date {
    display: inline-block;
    margin-bottom: 0.8rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(0, 175, 239, 0.12);
    color: var(--tj-blue);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.news-card h3 {
    font-size: 1.3rem;
    color: var(--tj-blue);
    margin-bottom: 0.8rem;
}

.news-card-excerpt {
    color: var(--tj-blue);
    font-weight: 600;
    margin-bottom: 0.7rem;
}

.news-card-body-preview {
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-details summary {
    cursor: pointer;
    color: var(--tj-highlight);
    font-weight: 700;
    list-style: none;
}

.news-card-details summary::-webkit-details-marker {
    display: none;
}

.news-card-body {
    margin-top: 0.85rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.news-card-action {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--tj-highlight);
    font-weight: 700;
    margin-top: auto;
}

.news-page {
    padding-top: var(--navbar-height);
}

.news-article-page {
    padding: 3.5rem 8% 5rem;
}

.news-article-shell {
    max-width: 920px;
    margin: 0 auto;
}

.news-article-back-link {
    margin-bottom: 1.5rem;
}

.news-article-card {
    background: var(--secondary-bg);
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

.news-article-media {
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, rgba(0, 175, 239, 0.14), rgba(0, 29, 57, 0.08));
}

.news-article-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news-article-content {
    padding: 2rem;
}

.news-article-excerpt {
    font-size: 1.1rem;
    color: var(--tj-blue);
    margin-bottom: 1.5rem;
}

.news-article-body {
    color: var(--text-muted);
    line-height: 1.8;
}

.news-article-body p + p {
    margin-top: 1rem;
}

.news-page-hero {
    padding: 3.5rem 8% 2.5rem;
}

.news-page-hero .section-header p {
    margin-bottom: 1.75rem;
}

.news-archive-section {
    padding: 0 8% 5rem;
}

.service-card {
    background: var(--secondary-bg);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    position: relative;
    z-index: 1;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    content-visibility: auto;
    contain-intrinsic-size: 320px;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, transparent, rgba(0, 175, 239, 0.05));
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card:focus-visible {
    transform: translateY(-6px);
    border-color: rgba(0, 175, 239, 0.45);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card .icon {
    width: 50px;
    height: 50px;
    margin-bottom: 1.5rem;
    color: var(--tj-highlight);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-card:hover .icon {
    transform: scale(1.1) rotate(5deg);
}

.service-card h3 {
    font-size: 1.5rem;
    color: var(--tj-blue);
    margin-bottom: 1rem;
}
.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 29, 57, 0.04);
    width: 70px;
    height: 70px;
    border-radius: 16px;
    border: 1px solid rgba(0, 29, 57, 0.05);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    background: rgba(0, 29, 57, 0.08);
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--tj-blue);
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.service-card-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: auto;
    padding-top: 1.5rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--tj-highlight);
}

.service-card-meta::after {
    content: "->";
}

.service-brands {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding: 0.9rem;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid rgba(0, 29, 57, 0.1);
}

.service-brand-item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 72px;
    padding: 0.85rem;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid rgba(0, 29, 57, 0.07);
}

.service-brand-item img,
.service-brand-item picture {
    display: block;
    width: 100%;
    height: 100%;
}

.service-brand-item img {
    width: min(100%, 240px);
    height: auto;
    max-height: 56px;
    max-width: 100%;
    object-fit: contain;
}

.service-page {
    padding-top: var(--navbar-height);
}

.service-page-hero {
    padding: 3.5rem 5% 5rem;
    background:
        radial-gradient(circle at top right, rgba(0, 175, 239, 0.18), transparent 35%),
        linear-gradient(135deg, #001d39 0%, #012748 58%, #0b3e69 100%);
    color: #fff;
}

.service-page-hero-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.9fr);
    gap: 2rem;
    align-items: start;
}

.service-page-copy .badge {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.18);
    color: #9de3ff;
    box-shadow: none;
}

.service-page-copy h1 {
    font-size: clamp(2.75rem, 5vw, 4.75rem);
    line-height: 1.02;
    margin-bottom: 1.2rem;
    color: #fff;
}

.service-page-copy > p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.86);
    max-width: 720px;
}

.service-hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.service-page-hero .btn-secondary {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.08);
}

.service-page-hero .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.14);
}

.service-highlight-list {
    list-style: none;
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem;
}

.service-highlight-list li {
    padding: 0.95rem 1rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.92);
    font-weight: 600;
}

.service-highlight-list li::before {
    content: "•";
    color: #9de3ff;
    margin-right: 0.55rem;
}

.service-hero-panel {
    padding: 1.5rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
}

.service-hero-panel h2 {
    margin-bottom: 0.75rem;
    color: #fff;
    font-size: 1.65rem;
}

.service-hero-panel p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.25rem;
}

.service-trust-points {
    display: grid;
    gap: 0.85rem;
}

.service-trust-points .service-trust-item {
    padding: 0.95rem 1rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.service-trust-item strong {
    display: block;
    color: #fff;
    margin-bottom: 0.25rem;
}

.service-trust-item span {
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.95rem;
}

.service-brand-strip {
    margin-top: 1.25rem;
}

.service-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4.5rem 5%;
}

.service-overview {
    padding-top: 4rem;
}

.service-overview-grid {
    display: grid;
    grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
    gap: 2rem;
    align-items: start;
}

.service-media-card,
.service-copy-card,
.service-column-card,
.service-cta-panel {
    border-radius: 24px;
    background: var(--secondary-bg);
    border: 1px solid var(--glass-border);
    box-shadow: var(--card-shadow);
}

.service-media-card {
    padding: 1rem;
}

.service-media-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: none;
    margin: 0;
}

.service-copy-card {
    padding: 2rem;
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: var(--tj-highlight);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.82rem;
    font-weight: 800;
}

.section-kicker::before {
    content: "";
    width: 24px;
    height: 2px;
    background: currentColor;
}

.service-copy-card h2,
.service-section-header h2,
.service-column-card h2,
.service-cta-panel h2 {
    margin-bottom: 0.85rem;
}

.service-copy-card p,
.service-section-header p,
.service-column-card p,
.service-cta-panel p {
    color: var(--text-muted);
}

.service-copy-card ul {
    margin-top: 1.5rem;
}

.service-benefit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.service-benefit-card {
    padding: 1.5rem;
    border-radius: 20px;
    background: linear-gradient(180deg, var(--secondary-bg), rgba(255, 255, 255, 0.96));
    border: 1px solid var(--glass-border);
    box-shadow: var(--card-shadow);
}

.service-benefit-card .service-benefit-value {
    display: inline-block;
    margin-bottom: 0.9rem;
    color: var(--tj-highlight);
    font-size: 1.55rem;
    font-weight: 800;
}

.service-benefit-card h3 {
    margin-bottom: 0.6rem;
    color: var(--tj-blue);
    font-size: 1.15rem;
}

.service-benefit-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.service-two-column-section {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.service-column-card {
    padding: 2rem;
}

.service-detail-list {
    list-style: none;
    display: grid;
    gap: 0.9rem;
    margin-top: 1.5rem;
}

.service-detail-list li {
    padding: 1rem 1.1rem;
    border-radius: 16px;
    background: rgba(0, 29, 57, 0.03);
    border: 1px solid rgba(0, 29, 57, 0.06);
    color: var(--text-main);
}

.service-detail-list li strong {
    display: block;
    margin-bottom: 0.3rem;
    color: var(--tj-blue);
}

.service-pill-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.service-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.7rem 0.95rem;
    border-radius: 999px;
    background: rgba(0, 175, 239, 0.1);
    color: var(--tj-blue);
    font-weight: 700;
}

.faq-list {
    display: grid;
    gap: 1rem;
}

.faq-item {
    border-radius: 22px;
    background: linear-gradient(180deg, var(--secondary-bg), rgba(255, 255, 255, 0.96));
    border: 1px solid var(--glass-border);
    box-shadow: var(--card-shadow);
    overflow: clip;
}

.faq-item.is-open {
    border-color: rgba(0, 175, 239, 0.28);
}

.faq-question-heading {
    margin: 0;
}

.faq-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.3rem 1.4rem;
    border: 0;
    background: transparent;
    color: var(--tj-blue);
    text-align: left;
    font-weight: 700;
    cursor: pointer;
}

.faq-trigger:hover {
    background: rgba(0, 29, 57, 0.025);
}

.faq-trigger-text {
    flex: 1;
}

.faq-icon {
    position: relative;
    flex: 0 0 auto;
    width: 1.05rem;
    height: 1.05rem;
    color: var(--tj-highlight);
    transition: transform 0.25s ease;
}

.faq-icon::before,
.faq-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transform: translate(-50%, -50%);
}

.faq-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item.is-open .faq-icon {
    transform: rotate(45deg);
}

.faq-panel {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0.45;
    transition: grid-template-rows 0.28s ease, opacity 0.28s ease;
}

.faq-item.is-open .faq-panel {
    grid-template-rows: 1fr;
    opacity: 1;
}

.faq-panel-inner {
    overflow: hidden;
    padding: 0 1.4rem;
}

.faq-answer {
    padding: 1rem 0 1.35rem;
    border-top: 1px solid rgba(0, 29, 57, 0.08);
    color: var(--text-muted);
}

.service-brand-grid {
    margin-top: 0;
}

.service-brand-grid .service-brand-item,
.service-brand-strip .service-brand-item {
    min-height: 84px;
}

.service-cta-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) auto;
    gap: 2rem;
    align-items: center;
    padding: 2rem;
    background:
        radial-gradient(circle at top right, rgba(0, 175, 239, 0.14), transparent 32%),
        linear-gradient(180deg, var(--secondary-bg), rgba(255, 255, 255, 0.95));
}

.service-cta-actions {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    min-width: 220px;
}

.service-cta-actions .btn-primary,
.service-cta-actions .btn-secondary {
    text-align: center;
}

.related-service-card {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.related-service-card.active {
    border-color: rgba(0, 175, 239, 0.45);
    box-shadow: 0 16px 35px rgba(0, 175, 239, 0.12);
}

.related-service-card .service-card-meta {
    padding-top: 0.5rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    font-weight: 700;
    color: var(--tj-highlight);
}

.back-link:hover {
    text-decoration: underline;
}

/* CONTACT */
.contact {
    padding: 5rem 5%;
}

.section-copy {
    margin-bottom: 2rem;
    color: var(--text-muted);
}

.contact-card {
    background: var(--secondary-bg);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    max-width: 1000px;
    margin: 0 auto;
    border: 1px solid var(--glass-border);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

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

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 3rem;
    text-align: left;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.contact-item .icon {
    font-size: 2.2rem;
    background: transparent;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    border-radius: 0;
    border: none;
    margin-top: -5px; /* Alignment tweak with title */
}

.contact-item h4 {
    color: var(--tj-blue);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.contact-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.contact-item a {
    color: var(--text-muted);
    transition: var(--transition);
}

.contact-item a:hover {
    color: var(--tj-highlight);
}

.contact-map {
    margin-top: 3rem;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.contact-map iframe,
.consent-embed-card iframe {
    display: block;
    width: 100%;
    filter: grayscale(20%);
}

.consent-embed-card {
    min-height: 450px;
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.94), rgba(244, 248, 251, 0.9));
}

.consent-embed-placeholder {
    min-height: 450px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
}

.consent-embed-placeholder h3 {
    color: var(--tj-blue);
    font-size: 1.4rem;
}

.consent-embed-placeholder p {
    color: var(--text-muted);
    max-width: 36rem;
}

.consent-embed-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

/* FOOTER */
footer {
    border-top: 1px solid rgba(0,0,0,0.05);
    padding: 3rem 5%;
    text-align: center;
    background: var(--primary-bg);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-company,
.footer-links {
    max-width: 58rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.55rem;
}

.footer-links a {
    color: var(--tj-blue);
    font-weight: 600;
}

.footer-links a:hover {
    color: var(--tj-highlight);
}

.no-wrap {
    white-space: nowrap;
}

footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.legal-hero {
    padding: calc(var(--navbar-height) + 3rem) 5% 2rem;
}

.legal-shell {
    width: min(1080px, 100%);
    margin: 0 auto;
}

.legal-shell .section-header {
    text-align: left;
    margin-bottom: 1.5rem;
}

.legal-shell .section-header p {
    max-width: 52rem;
}

.legal-alert {
    margin: 1.5rem 0 0;
    padding: 1.2rem 1.35rem;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(0, 175, 239, 0.12), rgba(0, 29, 57, 0.04));
    border: 1px solid rgba(0, 175, 239, 0.18);
    color: var(--text-main);
}

.legal-alert p + p {
    margin-top: 0.6rem;
}

.legal-grid {
    width: min(1080px, 100%);
    margin: 0 auto 4rem;
    padding: 0 5%;
    display: grid;
    gap: 1.25rem;
}

.legal-card {
    background: var(--secondary-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--card-shadow);
    padding: 2rem;
}

.legal-card h2 {
    font-size: clamp(1.5rem, 2.2vw, 2rem);
    color: var(--tj-blue);
    margin-bottom: 1rem;
}

.legal-card h3 {
    font-size: 1.05rem;
    color: var(--tj-blue);
    margin: 1.25rem 0 0.55rem;
}

.legal-card p,
.legal-card li {
    color: var(--text-muted);
}

.legal-card p + p,
.legal-card ul + p,
.legal-card p + ul {
    margin-top: 0.85rem;
}

.legal-card ul {
    padding-left: 1.2rem;
}

.legal-card li + li {
    margin-top: 0.55rem;
}

.legal-inline-link {
    color: var(--tj-blue);
    font-weight: 700;
}

.legal-inline-link:hover {
    color: var(--tj-highlight);
}

/* WHATSAPP FLOAT */
.whatsapp-float {
    position: fixed;
    right: 24px;
    bottom: calc(96px + env(safe-area-inset-bottom, 0px));
    width: 68px;
    height: 68px;
    background: url("assets/WhatsApp.svg") center / contain no-repeat;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    z-index: 1000;
    transition: transform 0.25s ease, filter 0.25s ease;
}

.whatsapp-float svg {
    display: none;
}

.whatsapp-float:hover {
    transform: translateY(-3px) scale(1.06);
    color: #fff;
    filter: saturate(1.05);
}

.whatsapp-float:focus-visible {
    outline: 3px solid rgba(32, 186, 90, 0.28);
    outline-offset: 4px;
}

/* SCROLL REVEAL */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* LEAD CAPTURE MODAL */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 11, 26, 0.8);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-content {
    background-color: var(--secondary-bg);
    margin: auto;
    padding: 3rem;
    border: 1px solid var(--tj-highlight);
    width: 90%;
    max-width: 500px;
    border-radius: 20px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    transform: translateY(-50px);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal.show .modal-content {
    transform: translateY(0);
}

.close-modal {
    background: transparent;
    border: 0;
    color: var(--text-muted);
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 15px;
    right: 25px;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--tj-highlight);
}

.modal-content h2 {
    color: var(--tj-blue);
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.modal-content p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--tj-blue);
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    background: var(--primary-bg);
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group textarea {
    width: 100%;
    min-height: 130px;
    padding: 12px 15px;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    background: var(--primary-bg);
    color: var(--text-main);
    resize: vertical;
    transition: var(--transition);
}

.form-group input:focus, .form-group select:focus, textarea:focus {
    outline: none;
    border-color: var(--tj-highlight);
    box-shadow: 0 0 0 3px rgba(0, 175, 239, 0.1);
}

.form-note {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: -0.25rem;
    margin-bottom: 1rem;
}

.form-status {
    min-height: 1.4rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    font-weight: 600;
}

.form-status.is-success {
    color: #0f8f48;
}

.form-status.is-error {
    color: #c0392b;
}

.btn-block {
    width: 100%;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* COOKIE BANNER */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--secondary-bg);
    border-top: 1px solid var(--tj-highlight);
    z-index: 9999;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    visibility: hidden; /* Added to improve hidden state */
}

.cookie-banner.show {
    transform: translateY(0);
    visibility: visible;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 2rem;
}

.cookie-copy {
    flex: 1 1 auto;
    display: grid;
    gap: 1rem;
}

.cookie-content p {
    color: var(--text-main);
    font-size: 0.9rem;
    margin: 0;
}

.cookie-buttons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    flex-shrink: 0;
    justify-content: flex-end;
}

.cookie-preferences {
    padding: 1rem 1.1rem;
    border-radius: 16px;
    background: rgba(0, 29, 57, 0.04);
    border: 1px solid var(--glass-border);
}

.cookie-preference-item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}

.cookie-preference-item input {
    margin-top: 0.2rem;
}

.cookie-preference-item strong {
    display: block;
    color: var(--tj-blue);
    margin-bottom: 0.2rem;
}

.cookie-preference-item small {
    display: block;
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.5;
}

.noscript-panel {
    padding-top: 0;
}

.noscript-panel p {
    padding: 1.25rem 1.5rem;
    border-radius: 18px;
    background: rgba(0, 29, 57, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        align-items: stretch;
        text-align: left;
        gap: 1rem;
    }

    .cookie-buttons {
        justify-content: stretch;
    }

    .cookie-buttons > * {
        width: 100%;
    }

    .consent-embed-placeholder {
        min-height: 360px;
        padding: 1.5rem;
    }
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-stack-card {
        width: min(50%, 260px);
    }
    
    .contact-card {
        padding: 3rem 2rem;
    }
}

@media (max-width: 768px) {
    .navbar,
    .navbar.scrolled {
        min-height: 72px;
        padding-top: 0.25rem;
        padding-bottom: 0.25rem;
    }

    .navbar .logo,
    .navbar.scrolled .logo {
        height: 58px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--mobile-menu-bg);
        flex-direction: column;
        justify-content: center;
        transition: var(--transition);
        backdrop-filter: blur(10px);
        padding: 6rem 2rem 2rem;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .mobile-menu-btn {
        display: flex;
        z-index: 1001;
    }
    
    .mobile-menu-btn.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-btn.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero {
        min-height: auto;
        padding-bottom: 3rem;
    }

    .hero-inner {
        display: block;
    }

    .about-stack-stage {
        min-height: 340px;
    }

    .about-stack-card {
        width: min(64%, 250px);
        padding: 0.65rem 0.65rem 2.2rem;
    }
    
    .stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .footer-content .logo img {
        height: 40px;
    }

    .footer-links {
        flex-direction: column;
        gap: 0.35rem;
    }

    .footer-links span {
        display: none;
    }

    .legal-card {
        padding: 1.4rem;
    }

    .service-card {
        padding: 2rem;
    }

    .service-brands {
        grid-template-columns: 1fr;
    }

    .service-page-hero {
        padding: 2.5rem 5% 3.75rem;
    }

    .service-page-hero-grid,
    .service-overview-grid,
    .service-two-column-section,
    .service-cta-panel {
        grid-template-columns: 1fr;
    }

    .service-section {
        padding: 3.5rem 5%;
    }

    .service-copy-card,
    .service-column-card,
    .service-cta-panel {
        padding: 1.5rem;
    }

    .service-highlight-list {
        grid-template-columns: 1fr;
    }

    .service-cta-actions {
        min-width: 0;
    }

    .faq-trigger {
        padding: 1.1rem 1.15rem;
    }

    .faq-panel-inner {
        padding: 0 1.15rem;
    }

    .modal-content {
        padding: 2.5rem 1.5rem;
    }

    .whatsapp-float {
        right: 16px;
        bottom: calc(108px + env(safe-area-inset-bottom, 0px));
        width: 62px;
        height: 62px;
    }
}

body.menu-open,
body.modal-open {
    overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .faq-icon,
    .faq-panel {
        transition: none;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .about-stack-card,
    .about-stack-card.is-visible,
    .about-stack-card.is-exiting {
        opacity: 1;
        transform: translate(0, 0) rotate(var(--stack-rotate)) scale(1);
    }
}
