:root {
    --primary-dark: #143e6f;
    --primary: #225cc7;
    --primary-light: #4d8dff;
    --accent: #49b0ff;
    --bg-color: #f6f8fc;
    --text-main: #2a2a2a;
    --text-muted: #4b5563;
    --border: #e1e4ec;
    --card: #ffffff;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    transition: background 0.35s ease;
}

.top-nav {
    position: sticky;
    top: 0;
    z-index: 999;
    background: white;
    padding: 10px 20px 10px 20px;
    border-bottom: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.nav-inner { max-width: 66rem; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.nav-logo { font-weight: 900; font-size: 1.25rem; letter-spacing: -0.05em; line-height: 1; color: #0f172a; text-decoration: none; }
.cta-btn { display: inline-block; background: #0f172a; color: #fff; padding: 10px 24px; border-radius: 6px; font-weight: 700; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; text-decoration: none; transition: background 0.18s; }
.cta-btn:hover { background: var(--primary-light); }
.header-inner { max-width: 72rem; margin: 0 auto; }

.top-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 28px;
    font-weight: 600;
    font-size: 0.95rem;
}

.top-nav li a {
    text-decoration: none;
    color: var(--primary-dark);
    transition: color 0.2s ease;
    letter-spacing: normal;
    font-size: 12px;
}

.top-nav li a:hover {
    color: var(--primary);
}

header {
    background: linear-gradient(135deg, #0c1728, #1a2856 45%, #2d4bd9);
    color: #fff;
    text-align: center;
    padding: 20px 20px 40px;
    clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
    transition: padding 0.35s ease;
}

header h1 {
    font-size: 3.2rem;
    font-weight: 700;
    font-family: 'Segoe UI', 'Inter', system-ui, sans-serif;
    line-height: 1.3em;
    margin-bottom: 0;
    padding-bottom: 0.2em;
    padding-top: 0.5em;
    transition: font-size 0.35s ease;
}

.card h2 {
    font-size: 1.9rem;
    color: var(--primary);
    margin-bottom: 13px;
    font-family: 'Segoe UI', 'Inter', system-ui, sans-serif;
    font-weight: 700;
}

header p {
    font-size: 1.2rem;
    opacity: .95;
    transition: font-size 0.35s ease;
}

.container {
    max-width: 1080px;
    margin: 20px auto 0;
    padding: 0 28px;
    transition: padding 0.35s ease;
}

.card {
    background: var(--card);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .07);
    padding: 25px 35px 35px 35px;
    margin-bottom: 35px;
    border-bottom: 3px solid transparent;
    transition: transform 0.25s ease, box-shadow 0.35s ease, border-radius 0.35s ease, margin-bottom 0.35s ease, padding 0.35s ease, border-bottom 0.35s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 40px rgba(0, 0, 0, .1);
}

ul {
    padding-left: 22px
}

.container li {
    margin-top: 14px
}

/* ── Testimonials ── */
.testimonials li {
    padding: 0.5rem 1rem 0.5rem 1.25rem;
    border-left: 3px solid rgba(77,141,255,0.45);
    background: rgba(34,92,199,0.03);
    border-radius: 0 10px 10px 0;
    margin-bottom: 0.6rem;
}
.testimonials li:last-child {
    margin-bottom: 0;
}
.testimonials li p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-main);
    margin: 0 0 0.4rem;
    font-style: italic;
}
.testimonials li strong {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    font-style: normal;
}

.pkg-box {
    background: #eff5ff;
    padding: 24px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    border: 1px solid #e1ebff;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease, padding 0.35s ease, font-size 0.35s ease;
}

.pkg-box:hover {
    background: #f4f8ff;
    border-color: #c9dcff;
    transform: translateY(-2px);
}

.pkg-title {
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 1.1rem
}

/* ── Featured portfolio item ── */
.featured-item {
    margin: 1.25rem 0 0.5rem;
}

.featured-item a {
    display: block;
    background: linear-gradient(135deg, rgba(12,23,40,0.03), rgba(45,75,217,0.04));
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    text-decoration: none;
    color: var(--text-main);
    transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.featured-item a:hover {
    box-shadow: 0 4px 20px rgba(20,62,111,0.08);
    transform: translateY(-2px);
    border-color: var(--primary-light);
}

.featured-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    background: rgba(34,92,199,0.08);
    color: var(--primary);
    padding: 2px 8px;
    border-radius: 6px;
    letter-spacing: 0.02em;
    margin-bottom: 0.6rem;
}

.featured-item h3 {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-dark);
    margin: 0 0 0.4rem;
}

.featured-item p {
    margin: 0;
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.55;
}

@media (prefers-color-scheme: dark) {
    .featured-item a { background: linear-gradient(135deg, rgba(30,41,59,0.5), rgba(45,75,217,0.1)); }
}

/* ── Service carousel ── */
.service-carousel {
    position: relative;
    margin: 1rem 0 1rem;
    padding: 0 52px;
    background: linear-gradient(135deg, rgba(34,92,199,0.02), rgba(34,92,199,0.05));
    transition: padding 0.35s ease;
    border: 1px solid rgba(34,92,199,0.08);
    border-radius: 14px;
}

.carousel-track {
    position: relative;
    width: 100%;
    min-height: 100px;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    text-align: center;
    padding: 2rem 1.5rem 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(6px) scale(0.98);
}

.carousel-slide.active {
    position: relative;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.carousel-slide h3 {
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--primary);
    margin: 0 0 0.6rem;
    letter-spacing: -0.01em;
}

.carousel-slide p {
    margin: 0 auto;
    max-width: 520px;
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}


/* Arrows */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    margin-top: 0;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    width: 34px;
    height: 52px;
    font-size: 1.3rem;
    line-height: 1;
    color: var(--text-muted);
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, background 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.carousel-arrow:hover {
    border-color: var(--primary-light);
    color: var(--primary);
    background: #fff;
    box-shadow: 0 2px 8px rgba(34,92,199,0.1);
}

.carousel-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-prev { left: 8px; }
.carousel-next { right: 8px; }

/* Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 0 0 1.25rem;
    width: 100%;
}

.carousel-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--border);
    border: none;
    cursor: pointer;
    padding: 0;
    margin-top: 0;
    transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
}

.carousel-dot.active {
    background: var(--primary);
    transform: scale(1.3);
    box-shadow: 0 0 0 3px rgba(34,92,199,0.12);
}

.carousel-dot:hover:not(.active) {
    background: var(--primary-light);
    transform: scale(1.15);
}


@media (max-width: 768px) {
    .service-carousel { padding: 0 44px; }
    .carousel-slide { padding: 1.75rem 1rem 0.75rem; }
    .carousel-slide p { max-width: 100%; }
    .carousel-prev { left: 6px; }
    .carousel-next { right: 6px; }
}

@media (max-width: 480px) {
    .service-carousel { padding: 0; }
    .carousel-arrow { display: none; }
    .carousel-slide h3 { font-size: 1.05rem; }
    .carousel-slide p { font-size: 0.9rem; }
}

.pkg-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px
}

label {
    display: block;
    margin-top: 22px;
    font-weight: 600
}

input,
textarea {
    width: 100%;
    padding: 6px 12px;
    margin-top: 8px;
    border: 1px solid #c9d0da;
    border-radius: 8px;
    font-size: 1rem
}

form button {
    margin-top: 2em;
}

select {
    width: 100%;
    padding: 16px 18px;
    margin-top: 8px;
    border: 1px solid #c9d0da;
    border-radius: 10px;
    font-size: 1em;
    background: white;
    color: #2a2a2a;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

button {
    margin-top: 30px;
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 16px 36px;
    border-radius: 10px;
    font-size: 1rem;
    cursor: pointer;
    transition: background .18s
}

button:hover {
    background: var(--primary-light)
}

footer {
    text-align: center;
    padding: 48px 20px;
    background: #fff;
    border-top: 1px solid var(--border);
    font-size: .9rem;
    color: #777
}

.social {
    margin-top: 10px
}

.social a {
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: 600
}

/* �”€�”€ Scroll reveal �”€�”€ */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.55s ease-out, transform 0.55s ease-out;
}

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

/* �”€�”€ Back to top �”€�”€ */
.back-to-top {
    position: fixed;
    bottom: 1.25rem;
    left: 1.25rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff;
    border: none;
    box-shadow: 0 4px 16px rgba(20,62,111,0.3);
    z-index: 200;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.2s ease;
    pointer-events: none;
    padding: 0;
    margin: 0;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.back-to-top:hover {
    box-shadow: 0 6px 20px rgba(20,62,111,0.45);
    background: var(--primary-light);
}

.back-to-top svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: #fff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ── Mobile nav FAB + bottom sheet ── */
.mobile-nav-fab {
    display: none;
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff;
    border: none;
    box-shadow: 0 4px 16px rgba(20,62,111,0.35);
    z-index: 200;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    padding: 0;
    margin: 0;
}

.mobile-nav-fab:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(20,62,111,0.45);
}

.mobile-nav-fab:active {
    transform: scale(0.95);
}

.mobile-nav-fab svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: #fff;
    stroke-width: 2;
    stroke-linecap: round;
}

.mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 299;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.mobile-nav-overlay.visible {
    opacity: 1;
}

.mobile-nav-panel {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 70vh;
    background: var(--card, #fff);
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -8px 30px rgba(0,0,0,0.15);
    z-index: 300;
    overflow-y: auto;
    padding: 0.75rem 1.25rem 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}

.mobile-nav-panel.visible {
    transform: translateY(0);
}

.mobile-nav-panel-handle {
    width: 36px;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    margin: 0.25rem auto 1rem;
}

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

.mobile-nav-panel li {
    margin-bottom: 0.15rem;
}

.mobile-nav-panel li a {
    text-decoration: none;
    color: var(--text-muted, #4b5563);
    font-weight: 600;
    font-size: 0.95rem;
    display: block;
    padding: 0.6rem 0.7rem;
    border-radius: 8px;
    transition: background 0.15s ease, color 0.15s ease;
}

.mobile-nav-panel li a:hover {
    background: rgba(34,92,199,0.06);
    color: var(--primary);
}

.mobile-nav-panel li a:active {
    background: rgba(34,92,199,0.1);
    color: var(--primary);
}

/* �”€�”€ Reduce motion �”€�”€ */
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .back-to-top { transition: none; }
    .card { transition: none; }
    .pkg-box { transition: none; }
}

@media (max-width: 868px) {
  .top-nav {
    display: none;
  }

  .mobile-nav-fab {
    display: flex;
  }
}

@media (max-width: 720px) {
    body {
      background: var(--card);
    }

    .container {
      padding: 0;
    }

    header h1 {
      font-size: 2rem;
    }

    header p {
      font-size: 1rem;
    }

    .card {
      padding: 28px 20px;
      margin-bottom: 0;
      border-radius: 0;
      box-shadow: none;
      border-bottom: 3px solid rgba(77,141,255,0.45);
    }

    .card:hover {
      transform: none;
      box-shadow: none;
    }

    .pkg-box {
      padding: 20px;
      font-size: 0.95rem;
    }

    .pkg-title {
      font-size: 1rem;
    }

    ul {
      padding-left: 18px;
    }

    li {
      margin-top: 10px;
      font-size: 0.95rem;
    }

    input,
    textarea,
    select {
      padding: 14px 16px;
      font-size: 0.95rem;
    }

    button {
      padding: 14px 28px;
      font-size: 0.95rem;
    }

    header a {
      margin-top: 10px;
      padding: 10px 20px;
      font-size: 0.95rem;
    }
}

/* �”€�”€ Dark mode �”€�”€ */
@media (prefers-color-scheme: dark) {
    :root {
        --primary-dark: #7db4ff;
        --primary: #5a9cf5;
        --primary-light: #4d8dff;
        --accent: #49b0ff;
        --bg-color: #0f1219;
        --text-main: #e2e8f0;
        --text-muted: #94a3b8;
        --border: #2d3748;
        --card: #1a202c;
    }

    header {
        background: linear-gradient(135deg, #0c1728, #1a2856 45%, #2d4bd9);
    }

    .top-nav {
        background: var(--card);
        border-bottom-color: var(--border);
    }

    .nav-logo {
        color: var(--text-main);
    }

    .top-nav li a {
        color: var(--text-muted);
    }

    .top-nav li a.active,
    .top-nav li a:hover {
        color: var(--primary);
    }

    .top-nav .cta-btn {
        background: var(--primary) !important;
    }

    .card {
        box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
        border: none;
    }

    .card:hover {
        box-shadow: 0 14px 40px rgba(0, 0, 0, .35);
    }

    .card h2 {
        color: var(--primary);
    }

    .pkg-box {
        background: rgba(34, 92, 199, 0.08);
        border-color: var(--border);
    }

    .pkg-box:hover {
        background: rgba(34, 92, 199, 0.12);
        border-color: var(--primary-light);
    }

    .pkg-title {
        color: var(--primary-dark);
    }

    .testimonials li:not(:last-child) {
        border-bottom-color: var(--border);
    }

    input,
    textarea,
    select {
        background: var(--bg-color);
        color: var(--text-main);
        border-color: var(--border);
    }

    footer {
        background: var(--card);
        border-top-color: var(--border);
        color: var(--text-muted);
    }

    .social a {
        color: var(--primary-dark);
    }

    .mobile-nav-panel {
        background: var(--card);
        box-shadow: 0 -8px 30px rgba(0,0,0,0.35);
    }

    .mobile-nav-overlay {
        background: rgba(0, 0, 0, 0.5);
    }

    .mobile-nav-panel li a {
        color: var(--text-muted);
    }

    .mobile-nav-panel li a:hover {
        background: rgba(255,255,255,0.06);
        color: var(--primary);
    }

    .mobile-nav-panel li a {
        color: var(--text-muted);
        border-bottom-color: var(--border);
    }

    .mobile-nav-panel li a:hover {
        color: var(--primary);
    }
}

/* �”€�”€ Print �”€�”€ */
@media print {
    .top-nav,
    .back-to-top,
    .mobile-nav-fab,
    .mobile-nav-overlay,
    .mobile-nav-panel {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
    }

    header {
        background: #143e6f !important;
        color: #fff !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
        clip-path: none;
        padding: 30px 20px;
    }

    .card {
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }

    .card:hover {
        transform: none;
        box-shadow: none;
    }

    .pkg-box {
        border: 1px solid #ccc;
        page-break-inside: avoid;
    }

    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }

    footer {
        border-top: 1px solid #ccc;
    }

    a[href^="http"]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }
}
