.em-frontpage {
    --em-primary: #1A0F2E;
    --em-accent: #FF7A00;
    --em-cyan: #00E5FF;
    --em-bg: #0E0B1F;
    --em-surface: #16112b;
    --em-surface-2: #21183a;
    --em-text: #F8FAFC;
    --em-muted: #b9bfd2;
    --em-line: rgba(255, 255, 255, 0.16);
    background: var(--em-bg);
    color: var(--em-text);
}

body.home .top-header-widget,
body.home .top-contact-detail-section {
    display: none !important;
}

body.home .navbar,
body.home .search-box-outer,
body.home .logo-link-url,
body.home .navbar-brand {
    display: none !important;
}

.em-site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(14, 11, 31, 0.9);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--em-line);
}

.em-site-header-inner {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 78px;
}

.em-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.em-brand-logo {
    width: auto;
    height: 42px;
    display: block;
}

.em-brand-text {
    font-size: 26px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0.01em;
    color: #F8FAFC;
}

.em-main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    margin-right: 10px;
    flex-wrap: wrap;
}

.em-main-nav a {
    padding: 9px 12px;
    border-radius: 10px;
    color: #DFE7FF;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.em-main-nav a:hover,
.em-main-nav a:focus {
    color: #00E5FF;
    background: rgba(0, 229, 255, 0.1);
}

.em-header-cta {
    white-space: nowrap;
}

.em-container {
    width: min(1180px, calc(100% - 28px));
    margin: 0 auto;
}

.em-grid {
    display: grid;
    gap: 18px;
}

.em-section {
    padding: 64px 0;
}

.em-kicker {
    display: inline-block;
    margin-bottom: 8px;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--em-cyan);
}

.em-frontpage h1,
.em-frontpage h2,
.em-frontpage h3 {
    color: var(--em-text);
    margin: 0;
}

.em-frontpage h1 {
    font-size: clamp(34px, 6vw, 62px);
    line-height: 1.04;
}

.em-frontpage h2 {
    font-size: clamp(26px, 4vw, 42px);
    line-height: 1.16;
}

.em-frontpage p,
.em-frontpage li,
.em-frontpage small,
.em-frontpage span {
    color: var(--em-muted);
}

.em-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid transparent;
    font-weight: 700;
    padding: 12px 18px;
    transition: 0.22s ease;
}

.em-btn:hover,
.em-btn:focus {
    text-decoration: none;
    transform: translateY(-2px);
}

.em-btn-primary {
    background: var(--em-accent);
    border-color: var(--em-accent);
    color: #1f1302;
}

.em-btn-primary:hover,
.em-btn-primary:focus {
    background: #ff8b1f;
    border-color: #ff8b1f;
    color: #1f1302;
}

.em-btn-outline {
    background: transparent;
    color: var(--em-text);
    border-color: rgba(248, 250, 252, 0.3);
}

.em-btn-outline:hover,
.em-btn-outline:focus {
    border-color: var(--em-cyan);
    color: var(--em-cyan);
}

.em-btn-block {
    width: 100%;
}

.em-hero {
    position: relative;
    overflow: hidden;
    min-height: 78vh;
    display: flex;
    align-items: center;
    padding: 72px 0 56px;
    background:
        radial-gradient(circle at 85% 5%, rgba(0, 229, 255, 0.16), transparent 33%),
        radial-gradient(circle at 15% 20%, rgba(255, 122, 0, 0.18), transparent 34%),
        var(--em-bg);
}

.em-hero-grid {
    grid-template-columns: 1fr;
    position: relative;
    z-index: 2;
}

.em-hero-video-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.em-hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.1) contrast(1.05);
}

.em-hero-video-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(100deg, rgba(14, 11, 31, 0.85) 0%, rgba(14, 11, 31, 0.66) 45%, rgba(14, 11, 31, 0.42) 100%),
        radial-gradient(circle at 18% 15%, rgba(255, 122, 0, 0.20), transparent 34%),
        radial-gradient(circle at 86% 8%, rgba(0, 229, 255, 0.24), transparent 34%);
}

.em-hero-content-overlay {
    max-width: 760px;
    backdrop-filter: blur(1px);
}

.em-hero-content p {
    margin-top: 14px;
    max-width: 760px;
}

.em-hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 22px 0;
}

.em-hero-points {
    margin: 0;
    padding: 0;
    list-style: none;
}

.em-hero-points li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 8px;
}

.em-hero-points li::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 3px;
    background: var(--em-cyan);
    transform: rotate(45deg);
    position: absolute;
    left: 0;
    top: 8px;
}

.em-hero-media {
    position: relative;
}

.em-hero-media img,
.em-project-card img,
.em-about img {
    width: 100%;
    display: block;
    border-radius: 16px;
    border: 1px solid var(--em-line);
    height: auto;
}

.em-live-badge {
    position: absolute;
    left: 12px;
    bottom: 12px;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 700;
    background: rgba(14, 11, 31, 0.82);
    border: 1px solid rgba(0, 229, 255, 0.5);
    color: #f8fafc;
}

.em-ribbon {
    padding: 13px 0;
    overflow: hidden;
    border-top: 1px solid var(--em-line);
    border-bottom: 1px solid var(--em-line);
    background: var(--em-primary);
}

.em-ribbon-track {
    display: flex;
    gap: 26px;
    min-width: max-content;
    animation: emTicker 22s linear infinite;
}

.em-ribbon-track span {
    white-space: nowrap;
    font-weight: 700;
    color: #dce4f8;
}

.em-services,
.em-process,
.em-about {
    background: var(--em-surface);
}

.em-portfolio,
.em-testimonials,
.em-contact {
    background: var(--em-surface-2);
}

.em-ai {
    background: linear-gradient(180deg, rgba(26, 15, 46, 0.98) 0%, rgba(22, 17, 43, 0.98) 100%);
    border-top: 1px solid var(--em-line);
    border-bottom: 1px solid var(--em-line);
}

.em-ai-grid {
    margin-top: 18px;
    grid-template-columns: 1fr;
}

.em-ai-card {
    border: 1px solid var(--em-line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
    padding: 18px;
}

.em-ai-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #04131a;
    background: linear-gradient(135deg, var(--em-cyan), #89f2ff);
    margin-bottom: 10px;
}

.em-ai-card h3 {
    margin-bottom: 8px;
}

.em-services-grid {
    margin-top: 18px;
    grid-template-columns: 1fr;
}

.em-card,
.em-step-card,
.em-project-card,
.em-quote,
.em-contact-form {
    border: 1px solid var(--em-line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
}

.em-card {
    padding: 18px;
}

.em-card h3 {
    margin-bottom: 8px;
}

.em-card ul {
    margin: 12px 0;
    padding-left: 18px;
}

.em-card a {
    color: var(--em-cyan);
    font-weight: 700;
}

.em-head-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.em-portfolio-grid {
    margin-top: 16px;
    grid-template-columns: 1fr;
}

.em-project-card {
    overflow: hidden;
}

.em-preview-wrap {
    position: relative;
}

.em-preview-link {
    position: absolute;
    right: 12px;
    bottom: 12px;
    background: rgba(14, 11, 31, 0.82);
    border: 1px solid rgba(0, 229, 255, 0.5);
    color: #f8fafc;
    border-radius: 999px;
    padding: 8px 12px;
    font-weight: 700;
    font-size: 12px;
}

.em-preview-link:hover,
.em-preview-link:focus {
    color: var(--em-cyan);
    text-decoration: none;
}

.em-project-meta {
    padding: 16px;
}

.em-project-meta p {
    margin-bottom: 8px;
}

.em-process-grid {
    margin-top: 18px;
    grid-template-columns: 1fr;
}

.em-step-card {
    padding: 18px;
}

.em-step-icon {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    background: rgba(0, 229, 255, 0.16);
    color: var(--em-cyan);
    margin-bottom: 8px;
}

.em-step-card small {
    display: block;
    margin-top: 8px;
    color: #d1d8ea;
}

.em-center-cta {
    margin-top: 18px;
    text-align: center;
}

.em-testimonials-grid {
    margin-top: 18px;
    grid-template-columns: 1fr;
}

.em-quote {
    margin: 0;
    padding: 16px;
}

.em-person {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.em-person img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid var(--em-line);
}

.em-person strong,
.em-quote a {
    color: #f8fafc;
}

.em-person span {
    display: block;
    font-size: 13px;
}

.em-about-grid,
.em-contact-grid {
    grid-template-columns: 1fr;
}

.em-contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.em-contact-form {
    padding: 18px;
}

.em-contact-form label {
    display: block;
    margin-bottom: 6px;
    margin-top: 10px;
    color: #f1f5ff;
    font-weight: 700;
}

.em-contact-form input,
.em-contact-form select,
.em-contact-form textarea {
    width: 100%;
    border-radius: 9px;
    border: 1px solid rgba(248, 250, 252, 0.2);
    background: rgba(255, 255, 255, 0.03);
    color: #f8fafc;
    padding: 10px;
}

.em-contact-form small {
    display: block;
    margin-top: 8px;
}

.em-whatsapp-float {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 999;
    border-radius: 999px;
    padding: 12px 16px;
    background: #25D366;
    color: #072013;
    font-weight: 800;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
}

.em-whatsapp-float:hover,
.em-whatsapp-float:focus {
    color: #072013;
    text-decoration: none;
    transform: translateY(-2px);
}

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

@media (min-width: 768px) {
    .em-container {
        width: min(1180px, calc(100% - 42px));
    }

    .em-services-grid,
    .em-process-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .em-ai-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .em-portfolio-grid,
    .em-testimonials-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1100px) {
    .em-section {
        padding: 82px 0;
    }

    .em-hero-grid,
    .em-about-grid,
    .em-contact-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
        align-items: center;
    }

    .em-head-row {
        flex-direction: row;
        justify-content: space-between;
        align-items: end;
    }

    .em-services-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .em-process-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .em-portfolio-grid,
    .em-testimonials-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .em-hero {
        min-height: 72vh;
        padding: 52px 0 44px;
    }

    .em-hero-content-overlay h1 {
        font-size: clamp(32px, 9vw, 46px);
    }

    .em-hero-video-overlay {
        background:
            linear-gradient(120deg, rgba(14, 11, 31, 0.9) 0%, rgba(14, 11, 31, 0.72) 56%, rgba(14, 11, 31, 0.58) 100%),
            radial-gradient(circle at 18% 15%, rgba(255, 122, 0, 0.16), transparent 34%),
            radial-gradient(circle at 86% 8%, rgba(0, 229, 255, 0.20), transparent 34%);
    }
}

@media (max-width: 1100px) {
    .em-site-header-inner {
        min-height: auto;
        padding: 10px 0;
        flex-wrap: wrap;
    }

    .em-brand-text {
        font-size: 22px;
    }

    .em-main-nav {
        order: 3;
        width: 100%;
        margin: 0;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 4px;
    }

    .em-main-nav a {
        font-size: 14px;
    }
}

@media (max-width: 640px) {
    .em-brand-logo {
        height: 34px;
    }

    .em-brand-text {
        font-size: 18px;
    }

    .em-header-cta {
        width: 100%;
    }
}