/* Premium redesign inspired by DESIGN.md */
:root {
    --lfd-white: #ffffff;
    --lfd-paper: #f5f5f5;
    --lfd-stone: rgba(245, 242, 239, 0.86);
    --lfd-text: #000000;
    --lfd-text-soft: #4e4e4e;
    --lfd-muted: #777169;
    --lfd-border: rgba(0, 0, 0, 0.06);
    --lfd-border-strong: #e5e5e5;
    --lfd-shadow: rgba(0, 0, 0, 0.06) 0px 0px 0px 1px, rgba(0, 0, 0, 0.04) 0px 1px 2px, rgba(0, 0, 0, 0.04) 0px 4px 12px;
    --lfd-shadow-soft: rgba(0, 0, 0, 0.04) 0px 4px 4px;
    --lfd-shadow-warm: rgba(78, 50, 23, 0.04) 0px 6px 16px;
    --lfd-radius: 24px;
    --lfd-radius-md: 18px;
    --lfd-radius-sm: 14px;
    --lfd-radius-pill: 9999px;
}

html[data-theme="dark"] {
    --lfd-white: #111418;
    --lfd-paper: #171b20;
    --lfd-stone: rgba(33, 38, 45, 0.96);
    --lfd-text: #f7fbff;
    --lfd-text-soft: #d8e1ea;
    --lfd-muted: #b3becc;
    --lfd-border: rgba(255, 255, 255, 0.14);
    --lfd-border-strong: rgba(255, 255, 255, 0.2);
    --lfd-shadow: rgba(255, 255, 255, 0.05) 0px 0px 0px 1px, rgba(0, 0, 0, 0.28) 0px 8px 24px;
    --lfd-shadow-soft: rgba(0, 0, 0, 0.32) 0px 8px 18px;
    --lfd-shadow-warm: rgba(0, 0, 0, 0.28) 0px 8px 24px;
}

.lfd-redesign {
    background: linear-gradient(180deg, #ffffff 0%, #f7f6f4 100%);
    color: var(--lfd-text-soft);
    font-family: "Inter", "Kanit", sans-serif;
    letter-spacing: 0.16px;
}

.lfd-redesign a {
    text-decoration: none;
}

.lfd-redesign h1,
.lfd-redesign h2,
.lfd-redesign h3,
.lfd-redesign h4,
.lfd-redesign h5,
.lfd-redesign h6 {
    color: var(--lfd-text);
    font-family: "Kanit", "Inter", sans-serif;
    font-weight: 300;
    letter-spacing: -0.4px;
}

.lfd-redesign p {
    color: var(--lfd-text-soft);
    font-size: 1rem;
    line-height: 1.72;
}

.lfd-redesign .spinner-wrapper {
    background-color: #ffffff;
}

.lfd-nav {
    background: rgba(255, 255, 255, 0.88) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: none !important;
}

.lfd-redesign .navbar-custom {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.lfd-redesign .navbar-brand img {
    height: 34px !important;
}

.lfd-redesign .navbar-nav .nav-link {
    color: var(--lfd-text) !important;
    font-size: 0.95rem;
    font-weight: 500;
    opacity: 1 !important;
}

.lfd-nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 1rem;
    padding: 0.75rem 1.1rem;
    border-radius: var(--lfd-radius-pill);
    background: #000000;
    color: #ffffff;
    font-size: 0.94rem;
    font-weight: 500;
    box-shadow: rgba(0, 0, 0, 0.4) 0px 0px 1px, var(--lfd-shadow-soft);
}

.lfd-nav-cta:hover {
    color: #ffffff;
    opacity: 0.92;
}

.lfd-hero {
    position: relative;
    padding: 9.5rem 0 3rem;
    overflow: hidden;
}

.lfd-hero::before,
.lfd-hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(10px);
    opacity: 0.6;
    pointer-events: none;
}

.lfd-hero::before {
    width: 280px;
    height: 280px;
    top: 20px;
    right: -80px;
    background: radial-gradient(circle, rgba(245, 242, 239, 0.95) 0%, rgba(245, 242, 239, 0) 72%);
}

.lfd-hero::after {
    width: 220px;
    height: 220px;
    bottom: 0;
    left: -70px;
    background: radial-gradient(circle, rgba(127, 255, 255, 0.12) 0%, rgba(127, 255, 255, 0) 70%);
}

.lfd-kicker,
.lfd-mini-title {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.42rem 0.8rem;
    border-radius: var(--lfd-radius-pill);
    background: var(--lfd-stone);
    color: var(--lfd-muted);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: var(--lfd-shadow-warm);
}

.lfd-hero-copy h1 {
    margin-top: 1rem;
    margin-bottom: 1.1rem;
    font-size: clamp(2.6rem, 4.8vw, 4rem);
    line-height: 1.08;
}

.lfd-hero-copy .p-large {
    max-width: 650px;
    margin-bottom: 1.5rem;
    font-size: 1.08rem;
    line-height: 1.8;
}

.lfd-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-bottom: 1.35rem;
}

.lfd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.88rem 1.25rem;
    border-radius: var(--lfd-radius-pill);
    font-size: 0.95rem;
    font-weight: 500;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.lfd-btn:hover {
    transform: translateY(-1px);
}

.lfd-btn-primary {
    background: #000000;
    color: #ffffff;
    box-shadow: rgba(0, 0, 0, 0.4) 0px 0px 1px, var(--lfd-shadow-soft);
}

.lfd-btn-primary:hover {
    color: #ffffff;
}

.lfd-btn-secondary {
    background: var(--lfd-stone);
    color: var(--lfd-text);
    box-shadow: var(--lfd-shadow-warm);
}

.lfd-proof-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.lfd-proof-list span {
    padding: 0.5rem 0.8rem;
    border-radius: var(--lfd-radius-pill);
    border: 1px solid var(--lfd-border);
    background: rgba(255, 255, 255, 0.8);
    color: var(--lfd-text-soft);
    font-size: 0.88rem;
}

.lfd-hero-panel {
    padding: 1rem;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--lfd-shadow);
}

.lfd-panel-top {
    display: flex;
    gap: 0.4rem;
    margin-bottom: 0.8rem;
}

.lfd-panel-top span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d9d9d9;
}

.lfd-panel-body {
    padding: 0.35rem;
}

.lfd-status-pill {
    display: inline-block;
    margin-bottom: 0.8rem;
    padding: 0.35rem 0.75rem;
    border-radius: var(--lfd-radius-pill);
    background: #000000;
    color: #ffffff;
    font-size: 0.76rem;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.lfd-panel-body h2 {
    margin-bottom: 1rem;
    font-size: 2rem;
    line-height: 1.15;
}

.lfd-journey-item {
    margin-bottom: 0.9rem;
    padding: 0.95rem 1rem;
    border-radius: 18px;
    background: #fbfbfb;
    box-shadow: inset rgba(0, 0, 0, 0.075) 0px 0px 0px 0.5px, rgba(0, 0, 0, 0.04) 0px 4px 4px;
}

.lfd-journey-item strong {
    display: block;
    margin-bottom: 0.2rem;
    color: var(--lfd-text);
    font-weight: 500;
}

.lfd-journey-item p {
    margin: 0;
    font-size: 0.95rem;
}

.lfd-brands,
.lfd-services,
.lfd-portfolio-preview,
.lfd-approach,
.lfd-contact-section {
    padding: 1.5rem 0 4.5rem;
}

.lfd-brands {
    padding-top: 0.5rem;
}

.lfd-brands .slider-container {
    margin-top: 1rem;
}

.lfd-brand-card {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 90px;
    padding: 1rem;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: inset rgba(0, 0, 0, 0.075) 0px 0px 0px 0.5px, rgba(0, 0, 0, 0.04) 0px 4px 10px;
}

.lfd-brand-card img {
    max-height: 48px;
    max-width: 100%;
    object-fit: contain;
    filter: saturate(0.9);
}

.lfd-section-heading {
    max-width: 760px;
    margin: 0 auto 2rem;
}

.lfd-section-heading h2 {
    margin: 1rem 0 0.75rem;
    font-size: clamp(2rem, 3.5vw, 3rem);
    line-height: 1.12;
}

.lfd-service-card,
.lfd-step-card,
.lfd-contact-card,
.lfd-qr-card {
    height: 100%;
    padding: 1.3rem;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--lfd-shadow);
}

.lfd-services-grid {
    row-gap: 1rem;
}

.lfd-services-grid > [class*="col-"] {
    display: flex;
}

.lfd-service-card {
    width: 100%;
    margin-bottom: 0;
}

.lfd-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    border-radius: 14px;
    background: var(--lfd-stone);
    color: var(--lfd-text);
    box-shadow: var(--lfd-shadow-warm);
}

.lfd-service-card h3,
.lfd-step-card h3 {
    margin-bottom: 0.65rem;
    font-size: 1.55rem;
    font-weight: 300;
}

.lfd-showcase-shell {
    padding: 1.3rem;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(245, 242, 239, 0.9) 0%, #ffffff 100%);
    box-shadow: var(--lfd-shadow);
}

.lfd-showcase-shell h2 {
    margin: 1rem 0 1rem;
    font-size: clamp(2rem, 3.6vw, 3rem);
}

.lfd-feature-list {
    padding-left: 0;
    list-style: none;
    margin: 0 0 1.5rem;
}

.lfd-feature-list li {
    position: relative;
    margin-bottom: 0.9rem;
    padding-left: 1.6rem;
    color: var(--lfd-text-soft);
}

.lfd-feature-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--lfd-text);
}

.lfd-media-card {
    padding: 0.75rem;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: inset rgba(0, 0, 0, 0.075) 0px 0px 0px 0.5px, rgba(0, 0, 0, 0.04) 0px 4px 4px;
}

.lfd-media-card img {
    width: 100%;
    border-radius: 20px;
}

.lfd-approach-grid {
    margin-top: 0.5rem;
}

.lfd-step-card span {
    display: inline-block;
    margin-bottom: 0.8rem;
    color: var(--lfd-muted);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.lfd-contact-shell {
    padding: 1.35rem;
    border-radius: 28px;
    background: linear-gradient(180deg, #ffffff 0%, #f8f7f5 100%);
    box-shadow: var(--lfd-shadow);
}

.lfd-contact-card h2 {
    margin: 1rem 0 0.9rem;
    font-size: clamp(2rem, 3.2vw, 2.7rem);
}

.lfd-contact-list {
    display: grid;
    gap: 0.75rem;
    margin: 1.2rem 0 1.4rem;
}

.lfd-contact-list a,
.lfd-contact-list div {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    color: var(--lfd-text-soft);
    font-size: 0.98rem;
}

.lfd-contact-list i {
    width: 20px;
    min-width: 20px;
    margin-top: 0.2rem;
    color: var(--lfd-text);
    text-align: center;
    font-size: 0.95rem;
}

.lfd-contact-list .fa-phone {
    color: inherit;
}

.lfd-qr-card {
    text-align: center;
    background: var(--lfd-stone);
    box-shadow: var(--lfd-shadow-warm);
}

.lfd-qr-card img {
    width: 100%;
    max-width: 220px;
    border-radius: 18px;
    margin-bottom: 1rem;
    background: #ffffff;
    padding: 0.8rem;
}

.lfd-footer {
    padding: 1rem 0 2rem;
}

.lfd-footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    padding: 1.2rem 1.35rem;
    border: 1px solid var(--lfd-border);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(245, 242, 239, 0.72) 100%);
    box-shadow: var(--lfd-shadow-soft);
}

.lfd-footer-brand {
    display: grid;
    gap: 0.35rem;
    max-width: 650px;
}

.lfd-footer-brand strong {
    color: var(--lfd-text);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.lfd-footer-brand p,
.lfd-footer-copy,
.lfd-footer a {
    margin: 0;
    color: var(--lfd-muted);
    font-size: 0.92rem;
}

.lfd-footer-brand p {
    line-height: 1.65;
}

.lfd-footer-copy {
    opacity: 0.92;
}

.lfd-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.lfd-footer-links a {
    padding: 0.45rem 0.8rem;
    border-radius: 9999px;
    border: 1px solid var(--lfd-border);
    background: rgba(255, 255, 255, 0.72);
}

.lfd-footer-links a:hover {
    color: var(--lfd-text);
    border-color: var(--lfd-border-strong);
}

html[data-theme="dark"] .lfd-redesign {
    background: linear-gradient(180deg, #0d1117 0%, #161b22 100%);
    color: var(--lfd-text-soft);
}

html[data-theme="dark"] .lfd-redesign h1,
html[data-theme="dark"] .lfd-redesign h2,
html[data-theme="dark"] .lfd-redesign h3,
html[data-theme="dark"] .lfd-redesign h4,
html[data-theme="dark"] .lfd-redesign h5,
html[data-theme="dark"] .lfd-redesign h6,
html[data-theme="dark"] .lfd-redesign .navbar-nav .nav-link,
html[data-theme="dark"] .lfd-contact-list i,
html[data-theme="dark"] .lfd-stat-card strong {
    color: var(--lfd-text) !important;
}

html[data-theme="dark"] .lfd-redesign p,
html[data-theme="dark"] .lfd-redesign .lfd-contact-list a,
html[data-theme="dark"] .lfd-redesign .lfd-contact-list div,
html[data-theme="dark"] .lfd-redesign .lfd-proof-list span,
html[data-theme="dark"] .lfd-redesign .lfd-filter-btn,
html[data-theme="dark"] .lfd-redesign .lfd-portfolio-tags span {
    color: var(--lfd-text-soft);
    line-height: 1.8;
}

html[data-theme="dark"] .lfd-redesign .lfd-footer a,
html[data-theme="dark"] .lfd-redesign .lfd-footer p,
html[data-theme="dark"] .lfd-redesign .lfd-portfolio-meta,
html[data-theme="dark"] .lfd-redesign .lfd-step-card span,
html[data-theme="dark"] .lfd-redesign .lfd-kicker,
html[data-theme="dark"] .lfd-redesign .lfd-mini-title {
    color: var(--lfd-muted);
}

html[data-theme="dark"] .lfd-redesign a:hover {
    color: var(--lfd-text) !important;
}

html[data-theme="dark"] .lfd-proof-list span {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] .lfd-footer-inner {
    background: linear-gradient(180deg, rgba(23, 25, 28, 0.96) 0%, rgba(18, 22, 28, 0.94) 100%);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: rgba(255, 255, 255, 0.04) 0px 0px 0px 1px, rgba(0, 0, 0, 0.3) 0px 10px 28px;
}

html[data-theme="dark"] .lfd-footer-brand strong {
    color: var(--lfd-text);
}

html[data-theme="dark"] .lfd-footer-links a {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .lfd-nav,
html[data-theme="dark"] .lfd-hero-panel,
html[data-theme="dark"] .lfd-service-card,
html[data-theme="dark"] .lfd-step-card,
html[data-theme="dark"] .lfd-contact-card,
html[data-theme="dark"] .lfd-contact-shell,
html[data-theme="dark"] .lfd-brand-card,
html[data-theme="dark"] .lfd-media-card {
    background: #17191c !important;
    box-shadow: rgba(255, 255, 255, 0.05) 0px 0px 0px 1px, rgba(0, 0, 0, 0.28) 0px 8px 24px !important;
}

html[data-theme="dark"] .lfd-kicker,
html[data-theme="dark"] .lfd-mini-title,
html[data-theme="dark"] .lfd-btn-secondary,
html[data-theme="dark"] .lfd-qr-card,
html[data-theme="dark"] .lfd-showcase-shell,
html[data-theme="dark"] .lfd-icon-wrap,
html[data-theme="dark"] .lfd-journey-item {
    background: #23262a !important;
    color: #ffffff;
}

html[data-theme="dark"] .lfd-icon-wrap {
    background: rgba(62, 221, 90, 0.12) !important;
    border: 1px solid rgba(62, 221, 90, 0.2);
    box-shadow: 0 8px 20px rgba(62, 221, 90, 0.08);
}

html[data-theme="dark"] .lfd-icon-wrap i,
html[data-theme="dark"] .lfd-contact-list i,
html[data-theme="dark"] .lfd-feature-list li::before {
    color: #7ee787 !important;
}

html[data-theme="dark"] .lfd-contact-list a:hover i {
    color: #a8ffb8 !important;
}

html[data-theme="dark"] .lfd-contact-list i,
html[data-theme="dark"] .lfd-contact-list .fa-phone-alt {
    color: #7ee787 !important;
}

@media (max-width: 991.98px) {
    .lfd-nav-cta {
        margin-top: 0.75rem;
        margin-left: 0;
    }

    .lfd-hero {
        padding-top: 8rem;
    }

    .lfd-hero-panel {
        margin-top: 1.5rem;
    }
}

.lfd-portfolio-hero {
    position: relative;
    padding: 9.5rem 0 4rem;
    overflow: hidden;
}

.lfd-portfolio-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(245, 242, 239, 0.9), transparent 28%),
        radial-gradient(circle at bottom left, rgba(127, 255, 255, 0.12), transparent 22%);
    pointer-events: none;
}

.lfd-portfolio-intro {
    position: relative;
    z-index: 1;
}

.lfd-portfolio-intro h1 {
    margin: 1rem 0 1rem;
    font-size: clamp(2.6rem, 4.8vw, 4rem);
    line-height: 1.08;
}

.lfd-portfolio-intro .p-large {
    max-width: 720px;
    margin: 0 auto 1.5rem;
}

.lfd-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.lfd-stat-card {
    padding: 1rem 1.15rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--lfd-shadow);
    text-align: left;
}

.lfd-stat-card strong {
    display: block;
    margin-bottom: 0.2rem;
    color: var(--lfd-text);
    font-size: 1.4rem;
    font-weight: 500;
}

.lfd-filter-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin: 0 0 2rem;
}

.lfd-filter-btn {
    border: 1px solid var(--lfd-border);
    background: rgba(255, 255, 255, 0.85);
    color: var(--lfd-text-soft);
    padding: 0.7rem 1rem;
    border-radius: var(--lfd-radius-pill);
    font-size: 0.92rem;
    font-weight: 500;
    cursor: pointer;
    box-shadow: var(--lfd-shadow-soft);
}

.lfd-filter-btn.active,
.lfd-filter-btn:hover {
    background: #000000;
    color: #ffffff;
}

.lfd-portfolio-grid {
    row-gap: 0.4rem;
    padding-bottom: 4rem;
}

.lfd-portfolio-item {
    margin-bottom: 0 !important;
}

.lfd-portfolio-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--lfd-shadow);
}

.lfd-portfolio-card img {
    width: 100%;
    height: 215px;
    object-fit: cover;
    object-position: top;
}

.lfd-portfolio-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.2rem;
}

.lfd-portfolio-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.7rem;
    color: var(--lfd-muted);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.lfd-portfolio-body h3 {
    margin-bottom: 0.55rem;
    font-size: 1.4rem;
}

.lfd-portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0.9rem 0 1rem;
}

.lfd-portfolio-tags span {
    padding: 0.35rem 0.65rem;
    border-radius: var(--lfd-radius-pill);
    background: var(--lfd-stone);
    color: var(--lfd-text-soft);
    font-size: 0.78rem;
}

.lfd-portfolio-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: auto;
}

.lfd-portfolio-item.is-hidden {
    display: none;
}

.lfd-cta-shell {
    padding: 1.5rem;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(245, 242, 239, 0.9) 0%, #ffffff 100%);
    box-shadow: var(--lfd-shadow);
}

html[data-theme="dark"] .lfd-stat-card,
html[data-theme="dark"] .lfd-filter-btn,
html[data-theme="dark"] .lfd-portfolio-card,
html[data-theme="dark"] .lfd-cta-shell {
    background: #17191c !important;
    box-shadow: rgba(255, 255, 255, 0.05) 0px 0px 0px 1px, rgba(0, 0, 0, 0.28) 0px 8px 24px !important;
}

html[data-theme="dark"] .lfd-portfolio-tags span {
    background: #23262a !important;
    color: #ffffff;
}

@media (max-width: 767.98px) {
    .lfd-redesign .navbar-custom {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .lfd-hero-copy h1,
    .lfd-portfolio-intro h1 {
        font-size: 2.35rem;
    }

    .lfd-section-heading h2,
    .lfd-panel-body h2,
    .lfd-showcase-shell h2,
    .lfd-contact-card h2 {
        font-size: 1.9rem;
    }

    .lfd-btn,
    .lfd-nav-cta {
        width: 100%;
    }

    .lfd-stats-row {
        grid-template-columns: 1fr;
    }

    .lfd-footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}
