/* ---- Import a Modern Font ---- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

/* ---- Global Styles & Resets ---- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    /* NEW: Starry Sky Background */
    background-image: url('https://images.unsplash.com/photo-1534796636912-3b95b3ab5986?q=80&w=2071&auto=format&fit=crop');
    background-color: #0c0b1a; /* Fallback color */
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Creates a parallax scrolling effect */
    color: #ffffff;
    overflow-x: hidden;
}

body.nav-is-open {
    overflow: hidden;
}

/* ---- Header & Navigation ---- */
header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    padding: 20px 5%;
    z-index: 100;
}
header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    position: relative;
    background: transparent;
}
.logo-link {
    display: inline-flex;
    align-items: center;
}
.logo {
    /* UPDATED: Smaller logo size */
    height: 35px;
}
.nav-links {
    list-style: none;
    display: flex;
    gap: 40px;
}
.nav-links a {
    text-decoration: none;
    color: white;
    font-weight: 600;
    transition: color 0.3s;
}
.nav-links a:hover {
    color: #c58cff;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 58px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(16, 13, 35, 0.55);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    cursor: pointer;
    padding: 10px;
    border-radius: 16px;
    box-shadow: 0 18px 42px rgba(10, 8, 28, 0.45);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
    z-index: 150;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
}

.nav-toggle:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 24px 52px rgba(13, 9, 34, 0.55);
}

.nav-toggle:hover span {
    background-color: #c58cff;
}

.nav-toggle[aria-expanded="true"] {
    background: rgba(138, 43, 226, 0.22);
    border-color: rgba(197, 140, 255, 0.5);
    box-shadow: 0 26px 58px rgba(46, 18, 89, 0.55);
}

.nav-toggle[aria-expanded="true"] span {
    background-color: #ffffff;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ---- Reusable Glass Panel Effect ---- */
.glass-panel {
    background: rgba(12, 11, 26, 0.35);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
}

header .glass-panel {
    background: rgba(12, 11, 26, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 20px 38px rgba(8, 6, 20, 0.45);
}

/* ---- Hero Section with Globe ---- */
.hero-section-globe {
    position: relative;
    min-height: 100vh;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    text-align: left;
    overflow: hidden;
    padding: 160px clamp(5%, 7vw, 120px) 140px;
    gap: clamp(40px, 8vw, 120px);
    width: min(1180px, 100%);
    margin: 0 auto;
}
.spline-background {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    pointer-events: none;
}

.spline-background spline-viewer {
    width: clamp(520px, 90vw, 820px);
    height: clamp(520px, 90vw, 820px);
    transform: translate(12%, -6%) scale(1.14);
}
.hero-content-panel {
    padding: 0;
    width: min(100%, 620px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    background: transparent;
    border: none;
    border-radius: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
}
.hero-content-panel h1 {
    font-size: clamp(2.6rem, 6vw, 3.6rem);
    font-weight: 700;
    line-height: 1.2;
}
.hero-content-panel p {
    font-size: 1.05rem;
    font-weight: 300;
    margin: 0 0 8px;
    max-width: 560px;
}

/* ---- Buttons ---- */
.button-group {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 20px;
}
.hero-slide-actions {
    margin-top: 20px;
}
.hero-contact-actions {
    margin-top: 28px;
}
.cta-primary, .cta-secondary {
    padding: 12px 30px;
    border-radius: 50px;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}
.cta-primary {
    background: linear-gradient(90deg, #8A2BE2, #C58CFF);
    color: white;
}
.cta-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 20px rgba(138, 43, 226, 0.4);
}
.cta-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}
.cta-secondary:hover {
    background-color: white;
    color: #0c0b1a;
    transform: translateY(-3px) scale(1.05);
}

.nav-links a.active {
    color: #c58cff;
}

/* ---- Services Section ---- */
.services-section {
    padding: 80px 5% 120px;
    text-align: center;
}
.services-intro {
    max-width: 700px;
    margin: 0 auto 60px;
}
.services-intro h2 {
    font-size: 2.75rem;
    margin-bottom: 18px;
}

.two-line-heading {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.two-line-heading span {
    display: block;
    white-space: nowrap;
}

/* ---- Contact Page ---- */
.contact-main {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 140px 5% 120px;
}

.contact-hero {
    width: 100%;
    max-width: 1080px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    padding: 60px;
}

.contact-intro h1 {
    font-size: clamp(2.2rem, 4vw, 3rem);
    margin-bottom: 18px;
}

.contact-intro p {
    font-weight: 300;
    margin-bottom: 14px;
}

.contact-email a {
    color: #c58cff;
    font-weight: 600;
}

.contact-form-wrapper {
    width: 100%;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.95rem;
}

.form-field span {
    font-weight: 600;
}

.form-field input,
.form-field textarea {
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(12, 11, 26, 0.55);
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-field input:focus,
.form-field textarea:focus {
    border-color: #c58cff;
    box-shadow: 0 0 0 3px rgba(197, 140, 255, 0.25);
}

.form-field textarea {
    resize: vertical;
    min-height: 140px;
}

.form-field.full-width {
    grid-column: 1 / -1;
}

.submit-button {
    align-self: flex-start;
    padding-inline: 40px;
}

/* ---- Footer ---- */
.site-footer {
    text-align: center;
    padding: 24px 5%;
    background: rgba(12, 11, 26, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
}

/* ---- Floating Contact Widget ---- */
.floating-contact-widget {
    position: fixed;
    bottom: 32px;
    right: 32px;
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-end;
    gap: 12px;
    z-index: 1200;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    padding-right: env(safe-area-inset-right, 0px);
}

.floating-contact-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #8A2BE2, #C58CFF);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 18px 30px rgba(138, 43, 226, 0.35);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.floating-contact-icon {
    width: 26px;
    height: 26px;
}

.floating-contact-toggle:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 34px rgba(138, 43, 226, 0.45);
}

.floating-contact-toggle:focus-visible {
    outline: 3px solid rgba(197, 140, 255, 0.8);
    outline-offset: 4px;
}

.floating-contact-panel {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(22px) saturate(135%);
    -webkit-backdrop-filter: blur(22px) saturate(135%);
    border: 1px solid rgba(138, 43, 226, 0.18);
    border-radius: 18px;
    padding: 22px 24px;
    width: clamp(260px, 75vw, 340px);
    display: flex;
    flex-direction: column;
    gap: 18px;
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    box-shadow: 0 26px 48px rgba(17, 20, 45, 0.18);
    color: #1b0f33;
}

.floating-contact-widget.open .floating-contact-panel {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}


.floating-chat-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.floating-chat-stage {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.floating-chat-stage[hidden] {
    display: none !important;
}

.floating-chat-stage--success {
    gap: 20px;
    align-items: stretch;
}

.floating-chat-form h3 {
    font-size: 1.2rem;
    margin: 0;
    color: #1b0f33;
}

.floating-chat-success-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 28px 24px 24px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(22px) saturate(135%);
    -webkit-backdrop-filter: blur(22px) saturate(135%);
    color: #1b0f33;
    border: 1px solid rgba(138, 43, 226, 0.18);
    box-shadow: 0 26px 48px rgba(17, 20, 45, 0.18);
    text-align: left;
    min-height: 220px;
    overflow: hidden;
}

.floating-chat-success-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, rgba(138, 43, 226, 0.16), rgba(197, 140, 255, 0.08));
    pointer-events: none;
}

.floating-chat-success-card > * {
    position: relative;
    z-index: 1;
}

.floating-chat-success-card__title {
    margin: 0;
    font-size: 2.2rem;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.015em;
    color: #1b0f33;
}

.floating-chat-success-card__title span {
    display: inline-block;
    background: linear-gradient(135deg, #6b1fb6, #c58cff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.floating-chat-success-card__subtitle {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(27, 15, 51, 0.7);
    padding-top: 16px;
    border-top: 1px solid rgba(138, 43, 226, 0.16);
}

.floating-chat-reset {
    align-self: flex-end;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #6b1fb6, #c58cff);
    color: #ffffff;
    border: none;
    border-radius: 999px;
    padding: 10px 24px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    box-shadow: 0 18px 32px rgba(138, 43, 226, 0.35);
    margin-top: auto;
}

.floating-chat-reset::after {
    content: '↻';
    font-size: 0.9rem;
}

.floating-chat-reset:hover,
.floating-chat-reset:focus-visible {
    outline: none;
    transform: translateY(-2px);
    box-shadow: 0 24px 38px rgba(138, 43, 226, 0.45);
}

.floating-chat-reset:active {
    transform: translateY(0);
    box-shadow: 0 16px 28px rgba(138, 43, 226, 0.35);
}

.floating-chat-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.85rem;
    color: rgba(27, 15, 51, 0.75);
}

.floating-chat-field span {
    font-weight: 600;
    color: #1b0f33;
}

.floating-chat-field input,
.floating-chat-field textarea {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(27, 15, 51, 0.12);
    border-radius: 12px;
    padding: 10px 12px;
    color: #1b0f33;
    font-size: 0.95rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.floating-chat-field input::placeholder,
.floating-chat-field textarea::placeholder {
    color: rgba(27, 15, 51, 0.45);
}

.floating-chat-field input:focus-visible,
.floating-chat-field textarea:focus-visible {
    outline: none;
    border-color: rgba(138, 43, 226, 0.55);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 10px 26px rgba(138, 43, 226, 0.2);
}

.floating-chat-field textarea {
    resize: vertical;
    min-height: 90px;
}

.floating-chat-field--message .floating-chat-input-with-controls {
    position: relative;
    display: flex;
    align-items: stretch;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(27, 15, 51, 0.1);
    border-radius: 16px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 20px 34px rgba(17, 20, 45, 0.12);
    overflow: hidden;
}

.floating-chat-field--message textarea {
    flex: 1;
    background: transparent;
    border: none;
    padding: 14px 52px 14px 18px;
    min-height: 110px;
    line-height: 1.4;
    color: #1b0f33;
}

.floating-chat-field--message textarea:focus-visible {
    border: none;
    outline: none;
    box-shadow: none;
}

.floating-chat-voice {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 40px;
    height: 40px;
    border-radius: 14px;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, rgba(138, 43, 226, 0.92), rgba(197, 140, 255, 0.88));
    color: #ffffff;
    cursor: pointer;
    box-shadow: 0 14px 28px rgba(138, 43, 226, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.floating-chat-voice svg {
    width: 18px;
    height: 18px;
}

.floating-chat-voice:hover,
.floating-chat-voice:focus-visible {
    outline: none;
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(138, 43, 226, 0.45);
}

.floating-chat-voice.is-listening {
    background: linear-gradient(160deg, rgba(255, 97, 210, 0.95), rgba(138, 43, 226, 0.95));
    box-shadow: 0 20px 38px rgba(255, 97, 210, 0.4);
}

.floating-chat-voice-status {
    display: block;
    margin-top: 6px;
    font-size: 0.75rem;
    color: rgba(27, 15, 51, 0.6);
    min-height: 0.9rem;
}

.floating-chat-submit {
    align-self: flex-end;
    background: linear-gradient(135deg, #6b1fb6, #c58cff);
    color: #ffffff;
    border: none;
    border-radius: 999px;
    padding: 10px 28px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(138, 43, 226, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.floating-chat-submit:hover,
.floating-chat-submit:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(138, 43, 226, 0.45);
    outline: none;
}

.floating-chat-submit[disabled] {
    cursor: not-allowed;
    opacity: 0.7;
    transform: none;
    box-shadow: 0 10px 22px rgba(138, 43, 226, 0.2);
}

.floating-chat-error {
    margin: -6px 0 0;
    font-size: 0.82rem;
    color: #b42336;
    background: rgba(180, 35, 54, 0.12);
    border: 1px solid rgba(180, 35, 54, 0.2);
    border-radius: 12px;
    padding: 10px 12px;
}

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

.services-intro p {
    font-weight: 300;
    line-height: 1.6;
}
.services-grid-four-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.service-card {
    text-align: left;
    padding: 30px;
    transition: all 0.4s ease-in-out;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.service-explanation {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.4s ease-in-out;
    font-weight: 300;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 0;
}
.service-learn-more {
    font-size: 0.85rem;
    font-weight: 600;
    color: #c58cff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s ease, transform 0.3s ease, opacity 0.3s ease, margin-top 0.3s ease;
    opacity: 0;
    transform: translateY(10px);
    max-height: 0;
    overflow: hidden;
    margin-top: 0;
}
.service-learn-more::after {
    content: '›';
    font-size: 0.9rem;
    line-height: 1;
}
.service-card:hover .service-learn-more,
.service-card:focus-within .service-learn-more,
.service-card.is-expanded .service-learn-more {
    opacity: 1;
    transform: translateY(0);
    max-height: 60px;
    margin-top: 12px;
}
.service-learn-more:hover {
    color: #ffffff;
    transform: translateY(0) translateX(4px);
}
.service-learn-more:focus-visible {
    outline: 2px solid #c58cff;
    outline-offset: 4px;
    opacity: 1;
    transform: translateY(0);
    max-height: 60px;
    margin-top: 12px;
}
.service-card.is-expanded,
.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(190, 150, 255, 0.8);
}
.service-card.is-expanded .service-explanation,
.service-card:hover .service-explanation,
.service-card:focus-within .service-explanation {
    max-height: 200px;
    opacity: 1;
    margin-top: 20px;
    padding-top: 20px;
}

/* ---- SmartConnect Section ---- */
.smart-connect-section {
    background: transparent;
    color: #ffffff;
    padding: 100px 5%;
    display: grid;
    grid-template-columns: minmax(260px, 0.9fr) minmax(280px, 1fr);
    align-items: start;
    justify-content: center;
    gap: 50px;
}
.smart-connect-visual {
    display: flex;
    justify-content: flex-end;
    padding: 25px;
}

.smart-connect-visual img {
    height: auto;
    width: min(100%, 520px);
    object-fit: contain;
}
.smart-connect-content {
    max-width: 540px;
}
.smart-connect-content p {
    color: rgba(255, 255, 255, 0.85);
}

.smart-connect-learn-more {
    margin-top: 28px;
    box-shadow: 0 12px 24px rgba(138, 43, 226, 0.35);
    display: inline-flex;
}

.smart-connect-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

@media (max-width: 960px) {
    .smart-connect-section {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .smart-connect-visual {
        justify-content: center;
    }

    .smart-connect-content {
        max-width: 560px;
        text-align: left;
    }
}

/* ---- Hero Carousel Enhancements ---- */
.hero-carousel {
    display: grid;
    align-items: center;
    justify-items: start;
    row-gap: 0;
    width: 100%;
}

.hero-slide {
    grid-area: 1 / 1;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    width: 100%;
    max-width: 640px;
    padding: 0;
    pointer-events: none;
    text-align: left;
}

.hero-slide.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}



@media (min-width: 1025px) {
    .hero-section-globe {
        padding: 180px clamp(6%, 8vw, 10%) 160px;
    }

    .hero-content-panel h1 {
        font-size: clamp(3.2rem, 4.5vw + 1rem, 4.8rem);
        line-height: 1.05;
    }

    .hero-content-panel p {
        max-width: 520px;
        font-size: 1.1rem;
    }

    .spline-background spline-viewer {
        width: clamp(720px, 58vw + 160px, 1100px);
        height: clamp(720px, 58vw + 160px, 1100px);
        transform: translate(8%, -4%) scale(1.18);
    }
}

/* ---- Responsive Navigation & Hero Carousel Adjustments ---- */

@media (max-width: 1024px) {
    header {
        padding: 16px 5%;
    }

    header nav {
        padding: 14px 20px;
        gap: 18px;
    }

    .hero-section-globe {
        padding: 150px 6% 120px;
        gap: clamp(32px, 6vw, 60px);
    }

    .hero-content-panel h1 {
        font-size: clamp(2.2rem, 4.5vw, 3rem);
    }

    .hero-content-panel p {
        font-size: 1rem;
    }
}

@media (max-width: 900px) {
    header {
        padding: 14px 5%;
    }

    header nav {
        padding: 12px 18px;
        z-index: 160;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 90px;
        right: 20px;
        left: 20px;
        flex-direction: column;
        align-items: center;
        gap: 18px;
        padding: 28px 26px;
        background: rgba(12, 11, 26, 0.92);
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 18px;
        box-shadow: 0 28px 58px rgba(8, 6, 20, 0.55);
        opacity: 0;
        transform: translateY(-12px);
        pointer-events: none;
        transition: opacity 0.3s ease, transform 0.3s ease;
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        z-index: 150;
    }

    .nav-links.open {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        width: 100%;
        padding: 12px 0;
        text-align: center;
        font-size: 1rem;
    }

    .hero-section-globe {
        flex-direction: column;
        align-items: center;
        text-align: center;
        min-height: auto;
        padding: 140px 6% 110px;
    }

    .hero-content-panel {
        align-items: center;
        text-align: center;
        gap: 18px;
    }

    .hero-content-panel p {
        max-width: 520px;
    }

    .hero-carousel {
        justify-items: center;
    }

    .hero-slide {
        text-align: center;
    }

    .spline-background {
        position: static;
        width: min(520px, 90vw);
        height: auto;
        margin-bottom: 24px;
        display: flex;
        justify-content: center;
    }

    .spline-background spline-viewer {
        width: 100%;
        height: clamp(320px, 70vw, 460px);
        transform: none;
    }

    .services-section {
        padding: 70px 6% 110px;
    }

    .services-intro h2 {
        font-size: 2.2rem;
    }

    .smart-connect-section {
        padding: 90px 6%;
    }

    body.nav-is-open::before {
        content: '';
        position: fixed;
        inset: 0;
        background: rgba(5, 4, 16, 0.6);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
        z-index: 120;
    }
}

@media (max-width: 720px) {
    .hero-section-globe {
        padding: 130px 6% 100px;
    }

    .hero-content-panel h1 {
        font-size: clamp(2rem, 6.8vw, 2.6rem);
    }

    .hero-content-panel p {
        font-size: 0.95rem;
    }

    .button-group {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .button-group .cta-primary,
    .button-group .cta-secondary {
        width: 100%;
    }

    .services-grid-four-items {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 24px;
    }

    .service-card {
        padding: 26px 24px;
    }

    .smart-connect-content {
        text-align: center;
    }

    .smart-connect-content h2 {
        font-size: 2.2rem;
    }

    .contact-main {
        padding: 130px 6% 110px;
    }

    .contact-hero {
        padding: 40px 32px;
    }

    .floating-contact-widget {
        right: 18px;
        bottom: 24px;
    }

    .floating-contact-toggle {
        width: 56px;
        height: 56px;
    }

    .floating-contact-panel {
        width: clamp(240px, 88vw, 320px);
    }
}

@media (max-width: 540px) {
    header nav {
        padding: 12px 16px;
    }

    .nav-links {
        top: 78px;
        right: 16px;
        left: 16px;
        padding: 24px 20px;
    }

    .hero-section-globe {
        padding: 120px 6% 90px;
        gap: 32px;
    }

    .hero-content-panel {
        gap: 16px;
    }

    .services-section {
        padding: 60px 6% 100px;
    }

    .services-grid-four-items {
        grid-template-columns: 1fr;
    }

    .smart-connect-section {
        padding: 80px 6%;
    }

    .smart-connect-visual {
        padding: 10px;
    }

    .smart-connect-content p {
        font-size: 0.95rem;
    }

    .contact-hero {
        padding: 32px 24px;
        gap: 28px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .floating-contact-widget {
        right: 14px;
        bottom: 20px;
    }

    .floating-contact-panel {
        width: calc(100vw - 32px);
        padding: 20px 18px;
    }

    .floating-chat-success-card {
        padding: 24px 20px 22px;
    }
}

@media (max-width: 420px) {
    .hero-content-panel h1 {
        font-size: clamp(1.8rem, 8vw, 2.2rem);
    }

    .hero-content-panel p {
        font-size: 0.92rem;
    }

    .cta-primary,
    .cta-secondary {
        padding: 12px 24px;
        font-size: 0.95rem;
    }

    .services-intro h2 {
        font-size: 1.9rem;
    }

    .site-footer {
        padding: 20px 16px;
    }
}
