/* ==========================================================================
    LSC Main Stylesheet
    Static: static/css/main.css
   ========================================================================== */

/* --------------------------------------------------------------------------
    CSS Custom Properties
   -------------------------------------------------------------------------- */
:root {
    --lsc-green: #2db34a;
    --lsc-green-dark: #1e8e3e;
    --lsc-green-light: #4ade80;
    --lsc-black: #0a0a0a;
    --lsc-dark: #111111;
    --lsc-gray: #999999;
    --lsc-gray-light: #b0b0b0;
    --lsc-white: #fafafa;

    --font-display: 'Syne', sans-serif;
    --font-body: 'Outfit', sans-serif;

    --section-padding: 8rem;
    --section-padding-mobile: 4rem;
}

/* --------------------------------------------------------------------------
    Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html { scroll-behavior: smooth; }

.lsc-body {
    font-family: var(--font-body);
    font-weight: 400;
    background: var(--lsc-black);
    color: var(--lsc-white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: var(--lsc-green);
    color: var(--lsc-black);
}

/* Noise overlay */
.lsc-body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    opacity: 0.025;
    pointer-events: none;
    z-index: 9999;
}

/* --------------------------------------------------------------------------
    Typography
   -------------------------------------------------------------------------- */
h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

h1 { font-weight: 700; }
p { color: var(--lsc-gray-light); }

/* --------------------------------------------------------------------------
    Blobs
   -------------------------------------------------------------------------- */
.blob {
    position: fixed;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
    pointer-events: none;
    will-change: transform;
    animation: blob-float 25s ease-in-out infinite;
}

.blob-1 {
    background: var(--lsc-green);
    top: -150px;
    right: -150px;
}

.blob-2 {
    background: var(--lsc-green-dark);
    bottom: -200px;
    left: -150px;
    animation-delay: -12s;
}

@keyframes blob-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(20px, -20px) scale(1.03); }
    66% { transform: translate(-15px, 15px) scale(0.97); }
}

/* --------------------------------------------------------------------------
    Navigation
   -------------------------------------------------------------------------- */
.nav-main {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.25rem 0;
    transition: background 0.3s, backdrop-filter 0.3s;
}

.nav-main.scrolled {
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(16px);
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--lsc-white);
    text-decoration: none;
    transition: opacity 0.2s;
}

.logo:hover { opacity: 0.8; }
.logo-icon { width: 28px; height: 28px; }

.logo-leaf {
    width: 30px;  /* Pi ratio width:height = π:1 → 24:7.6, adjusted to 24:24 for visibility */
    height: 30px; /* Height matching text cap height */
    margin-left: -0.25rem;
    margin-bottom: 0.75rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--lsc-gray);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--lsc-green);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a:hover { color: var(--lsc-white); }
.nav-links a:hover::after { width: 100%; }

.nav-toggle {
    background: none;
    border: none;
    color: var(--lsc-white);
    cursor: pointer;
    padding: 0.5rem;
}

/* --------------------------------------------------------------------------
    Language Switcher (LSC Theme Overrides)
    Scoped to LSC components - default Bootstrap styling preserved elsewhere
   -------------------------------------------------------------------------- */

/* Dropdown Style - Navbar & Mobile Drawer */
.lsc-body .dropdown .btn-outline-light.dropdown-toggle {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--lsc-gray-light);
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.lsc-body .dropdown .btn-outline-light.dropdown-toggle:hover,
.lsc-body .dropdown .btn-outline-light.dropdown-toggle:focus {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--lsc-green);
    color: var(--lsc-white);
    box-shadow: none;
}

.lsc-body .dropdown .btn-outline-light.dropdown-toggle::after {
    margin-left: 0.4rem;
    opacity: 0.6;
}

.lsc-body .dropdown-menu {
    background: var(--lsc-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.35rem;
    min-width: 140px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.lsc-body .dropdown-menu .dropdown-item {
    color: var(--lsc-gray-light);
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
    border-radius: 5px;
    transition: background 0.2s, color 0.2s;
}

.lsc-body .dropdown-menu .dropdown-item:hover,
.lsc-body .dropdown-menu .dropdown-item:focus {
    background: rgba(45, 179, 74, 0.1);
    color: var(--lsc-white);
}

.lsc-body .dropdown-menu .dropdown-item.active {
    background: var(--lsc-green);
    color: var(--lsc-black);
}

/* Pills Style */
.lsc-body .btn-group .btn-outline-light {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--lsc-gray-light);
    font-size: 0.75rem;
    padding: 0.35rem 0.6rem;
    border-radius: 5px;
}

.lsc-body .btn-group .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--lsc-green);
    color: var(--lsc-white);
}

.lsc-body .btn-group .btn-light {
    background: var(--lsc-green);
    border-color: var(--lsc-green);
    color: var(--lsc-black);
    font-weight: 600;
}

/* Links Style (footer) */
.lsc-body footer nav[aria-label] a {
    color: var(--lsc-gray);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.lsc-body footer nav[aria-label] a:hover {
    color: var(--lsc-green);
}

.lsc-body footer nav[aria-label] a.fw-bold {
    color: var(--lsc-white);
}

.lsc-body footer nav[aria-label] .text-muted {
    color: rgba(255, 255, 255, 0.3) !important;
}

/* --------------------------------------------------------------------------
    Mobile Drawer (Bootstrap Offcanvas Override)
   -------------------------------------------------------------------------- */
.offcanvas-dark {
    background: var(--lsc-black);
    color: var(--lsc-white);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.offcanvas-dark .offcanvas-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.25rem 1.5rem;
}

.offcanvas-dark .offcanvas-body {
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
}

.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-list li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mobile-nav-list a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 0;
    color: var(--lsc-white);
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 500;
    transition: color 0.2s;
}

.mobile-nav-list a:hover { color: var(--lsc-green); }

.mobile-nav-num {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--lsc-green);
}

.mobile-nav-footer {
    margin-top: auto;
    padding-top: 2rem;
}

.mobile-nav-contact {
    text-align: center;
    color: var(--lsc-gray);
}

/* --------------------------------------------------------------------------
    Buttons
   -------------------------------------------------------------------------- */
.btn-primary-lsc {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.875rem 1.75rem;
    background: var(--lsc-green);
    color: var(--lsc-black);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1),
                background 0.2s;
}

.btn-primary-lsc:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 16px 32px rgba(45, 179, 74, 0.25);
    color: var(--lsc-black);
}

.btn-primary-lsc:active {
    transform: translateY(-1px) scale(0.98);
    transition-duration: 0.1s;
}

.btn-primary-lsc svg { transition: transform 0.3s; }
.btn-primary-lsc:hover svg { transform: translateX(3px); }

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.25rem;
    color: var(--lsc-gray-light);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

.btn-ghost:hover { color: var(--lsc-green); }

/* --------------------------------------------------------------------------
    Urgent Banner (below fixed navbar)
   -------------------------------------------------------------------------- */
.urgent-banner {
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.12) 0%, rgba(239, 68, 68, 0.06) 100%);
    border-bottom: 1px solid rgba(239, 68, 68, 0.2);
    padding: 0.65rem 0;
    margin-top: 70px; /* ✅ Push below navbar, no background bleed */
}

.urgent-banner .container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    text-align: center;
}

.urgent-banner-icon {
    font-size: 1rem;
    animation: pulse-urgent 2s ease-in-out infinite;
}

.urgent-banner p {
    font-size: 0.8rem;
    margin: 0;
    color: var(--lsc-gray-light);
}

.urgent-banner strong {
    color: #f87171;
}

.urgent-banner a {
    color: #f87171;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.urgent-banner a:hover {
    color: #fca5a5;
    text-decoration: underline;
}

@keyframes pulse-urgent {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Hero after banner doesn't need extra top padding */
.hero-with-banner {
    padding-top: var(--section-padding);
}

/* --------------------------------------------------------------------------
    Hero
   -------------------------------------------------------------------------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 7rem 0 5rem;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.hero-brand {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    color: var(--lsc-green);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.hero h1 {
    font-size: clamp(2.75rem, 8vw, 5.5rem);
    margin-bottom: 1.5rem;
}

.hero h1 span {
    display: inline-block;
    margin-right: 0.15em;
}

.hero h1 .accent {
    color: var(--lsc-green);
    position: relative;
}

.hero h1 .accent::after {
    content: '';
    position: absolute;
    bottom: 0.08em;
    left: 0;
    width: 100%;
    height: 0.12em;
    background: var(--lsc-green);
    opacity: 0.25;
    transform: skewX(-10deg);
}

.hero-sub {
    font-size: 1.125rem;
    font-weight: 300;
    color: var(--lsc-gray);
    max-width: 460px;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

/* --------------------------------------------------------------------------
    Marquee
   -------------------------------------------------------------------------- */
.marquee-wrap {
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.marquee {
    display: flex;
    gap: 3rem;
    animation: marquee 35s linear infinite;
}

.marquee-item {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--lsc-gray);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 3rem;
}

.marquee-item::after {
    content: '◆';
    color: var(--lsc-green);
    font-size: 0.5rem;
}

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

/* --------------------------------------------------------------------------
    Sections
   -------------------------------------------------------------------------- */
.services,
.values,
.cta {
    padding: var(--section-padding) 0;
    position: relative;
}

.section-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--lsc-green);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 600;
    margin-bottom: 3rem;
    max-width: 550px;
    color: var(--lsc-white);
}

/* --------------------------------------------------------------------------
    Service Cards (3D Tilt + Shine Effect)
   -------------------------------------------------------------------------- */
.service-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    perspective: 1000px;
}

.service-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    transform-style: flat;
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1),
                border-color 0.3s,
                box-shadow 0.5s;
}

/* Gradient underlay */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(45, 179, 74, 0.12) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.5s;
    z-index: -1;
}

/* Shine/glare overlay */
.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.08) 45%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.08) 55%,
        transparent 100%
    );
    transition: left 0.6s ease-out;
    z-index: 20;
    pointer-events: none;
}

/* Hover state - Card 1: tilt left */
.service-card:hover,
.service-card.reveal.visible:hover {
    transform: translateY(-8px) rotateX(4deg) rotateY(-3deg);
    border-color: rgba(45, 179, 74, 0.5);
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(45, 179, 74, 0.2);
}

/* Card 2: tilt right */
.service-card:nth-child(2):hover,
.service-card.reveal.visible:nth-child(2):hover {
    transform: translateY(-8px) rotateX(4deg) rotateY(3deg);
}

/* Card 3: tilt left-down */
.service-card:nth-child(3):hover,
.service-card.reveal.visible:nth-child(3):hover {
    transform: translateY(-8px) rotateX(-3deg) rotateY(-3deg);
}

/* Card 4: tilt right-down */
.service-card:nth-child(4):hover,
.service-card.reveal.visible:nth-child(4):hover {
    transform: translateY(-8px) rotateX(-3deg) rotateY(3deg);
}

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

.service-card:hover::after,
.service-card.reveal.visible:hover::after {
    left: 100%;
}

.service-num {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.04);
    position: absolute;
    top: 0.75rem;
    right: 1rem;
    line-height: 1;
    z-index: 1;
    transition: color 0.3s;
}

.service-card:hover .service-num {
    color: rgba(45, 179, 74, 0.15);
}

.service-icon {
    width: 44px;
    height: 44px;
    background: var(--lsc-green);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: var(--lsc-black);
    position: relative;
    z-index: 2;
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover .service-icon {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(45, 179, 74, 0.35);
}

.service-card h3 {
    font-family: var(--font-body);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 2;
    color: var(--lsc-white);
}

.service-card p {
    font-size: 0.95rem;
    line-height: 1.65;
    position: relative;
    z-index: 2;
}

/* --------------------------------------------------------------------------
    Work/Case Studies Section (3D Tilt + Shine Effect)
   -------------------------------------------------------------------------- */
.work {
    padding: var(--section-padding) 0;
    position: relative;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    perspective: 1000px;
}

.work-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1),
                border-color 0.3s,
                box-shadow 0.5s;
}

/* Gradient underlay */
.work-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(45, 179, 74, 0.12) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.5s;
    z-index: -1;
}

/* Shine overlay */
.work-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.08) 45%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.08) 55%,
        transparent 100%
    );
    transition: left 0.6s ease-out;
    z-index: 20;
    pointer-events: none;
}

/* Hover states */
.work-card:hover,
.work-card.reveal.visible:hover {
    transform: translateY(-8px) rotateX(4deg) rotateY(-2deg);
    border-color: rgba(45, 179, 74, 0.5);
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(45, 179, 74, 0.2);
}

.work-card:nth-child(2):hover,
.work-card.reveal.visible:nth-child(2):hover {
    transform: translateY(-8px) rotateX(4deg) rotateY(0deg);
}

.work-card:nth-child(3):hover,
.work-card.reveal.visible:nth-child(3):hover {
    transform: translateY(-8px) rotateX(4deg) rotateY(2deg);
}

.work-card:hover::before,
.work-card.reveal.visible:hover::before {
    opacity: 1;
}

.work-card:hover::after,
.work-card.reveal.visible:hover::after {
    left: 100%;
}

/* Tag */
.work-card-tag {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--lsc-green);
    background: rgba(45, 179, 74, 0.1);
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.work-card h3 {
    font-family: var(--font-body);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--lsc-white);
    position: relative;
    z-index: 2;
}

.work-card p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    position: relative;
    z-index: 2;
}

/* Tech badges */
.work-card-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    position: relative;
    z-index: 2;
}

.tech-badge {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--lsc-gray-light);
    background: rgba(255, 255, 255, 0.05);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* --------------------------------------------------------------------------
    Values
   -------------------------------------------------------------------------- */
.values { background: var(--lsc-dark); }

.value-row {
    display: flex;
    align-items: flex-start;
    gap: 3rem;
    padding: 2.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.value-row:last-child { border-bottom: none; }

.value-num {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--lsc-green);
    min-width: 32px;
}

.value-content h3 {
    font-family: var(--font-body);
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--lsc-white);
}

.value-content p {
    max-width: 480px;
    font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
    Resources Section
   -------------------------------------------------------------------------- */
.resources {
    padding: var(--section-padding) 0;
    position: relative;
}

.section-desc {
    font-size: 1rem;
    color: var(--lsc-gray);
    max-width: 500px;
    margin-bottom: 2.5rem;
}

.resource-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 2.5rem;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: center;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    transition: border-color 0.3s, box-shadow 0.5s;
}

/* Gradient underlay - CHANGED TO GREEN */
.resource-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(45, 179, 74, 0.12) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.5s;
    z-index: -1;
}

/* Shine overlay */
.resource-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.08) 45%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.08) 55%,
        transparent 100%
    );
    transition: left 0.6s ease-out;
    z-index: 20;
    pointer-events: none;
}

.resource-card:hover {
    border-color: rgba(45, 179, 74, 0.5);
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(45, 179, 74, 0.2);
}

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

.resource-card:hover::after {
    left: 100%;
}

/* Top accent bar for featured */
.resource-card.featured .resource-card-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ef4444, #f87171);
    z-index: 2;
}

.resource-card-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--lsc-green);
    background: rgba(45, 179, 74, 0.1);
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    z-index: 2;
}

.resource-card-content {
    max-width: 600px;
    position: relative;
    z-index: 2;
}

.resource-card-lang {
    display: inline-block;
    font-size: 0.8rem;
    color: var(--lsc-gray);
    margin-bottom: 0.75rem;
}

.resource-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--lsc-white);
}

.resource-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.resource-card-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.8rem;
    color: var(--lsc-gray);
}

.resource-card-meta strong {
    color: var(--lsc-white);
}

.resource-card .btn-primary-lsc {
    position: relative;
    z-index: 2;
}

/* Urgent States */
.resource-card-badge.urgent {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    animation: pulse-urgent 2s ease-in-out infinite;
}

.btn-urgent {
    background: linear-gradient(135deg, #2db34a 0%, #1e8e3e 100%);
    box-shadow: 0 4px 15px rgba(45, 179, 74, 0.3);
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1),
                background 0.2s;
}

.btn-urgent:hover {
    box-shadow: 0 8px 25px rgba(45, 179, 74, 0.4);
    transform: translateY(-3px) scale(1.02);
}

.btn-urgent:active {
    transform: translateY(-1px) scale(0.98);
    transition-duration: 0.1s;
}

@media (max-width: 768px) {
    .resource-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .resource-card-badge {
        position: static;
        margin-bottom: 1rem;
    }

    .resource-card-meta {
        justify-content: center;
        flex-wrap: wrap;
    }

    .resource-card .btn-primary-lsc {
        width: 100%;
        justify-content: center;
    }
}

/* --------------------------------------------------------------------------
    CTA
   -------------------------------------------------------------------------- */
.cta {
    padding: var(--section-padding) 0 calc(var(--section-padding) + 2rem);
    text-align: center;
}

.cta-title {
    font-size: clamp(2rem, 6vw, 4rem);
    margin-bottom: 1.5rem;
    color: var(--lsc-white);
}

.cta-title span { color: var(--lsc-green); }

.cta-sub {
    font-size: 1rem;
    margin-bottom: 2.5rem;
    max-width: 380px;
    margin-inline: auto;
}

/* --------------------------------------------------------------------------
    Footer
   -------------------------------------------------------------------------- */
.site-footer {
    padding: 2.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.footer-copy {
    color: var(--lsc-gray);
    font-size: 0.8rem;
}

.footer-tagline {
    color: var(--lsc-green);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.footer-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.8rem;
}

.footer-location {
    color: var(--lsc-gray);
}

.footer-email {
    color: var(--lsc-gray-light);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-email:hover {
    color: var(--lsc-green);
}

.footer-lang {
    font-size: 0.8rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--lsc-gray);
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.2s;
}

.footer-links a:hover { color: var(--lsc-green); }

/* --------------------------------------------------------------------------
    Reveal Animation
   -------------------------------------------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* --------------------------------------------------------------------------
    HTMX States
   -------------------------------------------------------------------------- */
.htmx-request { opacity: 0.7; pointer-events: none; }
.htmx-indicator { display: none; }
.htmx-request .htmx-indicator { display: inline-block; }

/* --------------------------------------------------------------------------
    Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
    .service-grid,
    .work-grid {
        grid-template-columns: 1fr;
        perspective: none;
    }

    .service-card:hover,
    .service-card.reveal.visible:hover,
    .service-card:nth-child(2):hover,
    .service-card:nth-child(3):hover,
    .service-card:nth-child(4):hover,
    .work-card:hover,
    .work-card.reveal.visible:hover,
    .work-card:nth-child(2):hover,
    .work-card:nth-child(3):hover {
        transform: translateY(-4px);
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 768px) {
    :root { --section-padding: var(--section-padding-mobile); }
    .hero { padding: 6rem 0 4rem; }
    .hero h1 { font-size: 2.5rem; }
    .hero h1 span { display: block; margin-right: 0; }
    .value-row { flex-direction: column; gap: 0.75rem; }
    .service-card,
    .work-card { padding: 1.5rem; }
}

/* --------------------------------------------------------------------------
    Reduced Motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    .blob, .marquee { animation: none; }
    .reveal { opacity: 1; transform: none; }
}
