* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

/* ===== Theme Variables ===== */
:root {
    --ink-900: #08111f;
    --ink-700: #163054;
    --ink-500: #2a5f96;
    --sun: #ffbe3b;
    --mint: #78f0c4;
    --pearl: #f3f9ff;
    --text-main: #eff7ff;
    --text-muted: #c3d4ea;
    --line: rgba(255, 255, 255, 0.16);
    --surface: rgba(255, 255, 255, 0.08);
    --surface-strong: rgba(7, 20, 40, 0.72);
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 12px;
}

html {
    scroll-behavior: smooth;
}

/* ===== Global Background ===== */
body {
    min-height: 100vh;
    font-family: "Nunito", sans-serif;
    color: var(--text-main);
    overflow-x: hidden;
    background-attachment: fixed;
    background: linear-gradient(-45deg, #020024, #090979, #0f2027, #2c5364);
    background-size: 400% 400%;
    animation: gradientBG 10s ease infinite;
}

@supports (-moz-appearance: none) {
    body {
        background-attachment: scroll;
    }
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

body.is-loading {
    overflow: hidden;
}

body::before,
body::after {
    content: "";
    position: fixed;
    width: 34vmax;
    height: 34vmax;
    border-radius: 50%;
    filter: blur(54px);
    opacity: 0.18;
    pointer-events: none;
    z-index: -1;
}

body::before {
    top: -20vmax;
    left: -16vmax;
    background: #79f1c6;
    animation: float-a 13s ease-in-out infinite;
}

body::after {
    right: -12vmax;
    bottom: -16vmax;
    background: #ffcd65;
    animation: float-b 11s ease-in-out infinite;
}

canvas {
    display: block;
}

/* ===== Loader ===== */
.page-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 35px;
    background: linear-gradient(155deg, rgba(8, 17, 31, 0.98), rgba(17, 58, 89, 0.98));
    transition: opacity 400ms ease, visibility 400ms ease;
}

.page-loader p {
    margin: 0;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.loader-ring {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.18);
    border-top-color: var(--sun);
    border-right-color: var(--mint);
    box-shadow: 0 0 22px rgba(255, 190, 59, 0.3);
    animation: spin 900ms linear infinite;
}

.page-loader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #08101b;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--ink-500), #6da0dd);
    border-radius: 999px;
}

header {
    width: min(1120px, calc(100% - 32px));
    position: fixed;
    height: 100px;
    left: 0;
    right: 0;
    top: 16px;
    margin-inline: auto;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 18px;
    border-radius: 20px;
    background: rgba(4, 13, 25, 0.5);
    border: 1px solid var(--line);
    backdrop-filter: blur(12px);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
}


.brand {
    text-decoration: none;
}

header a {
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: sans-serif;
    font-size: clamp(2rem, 2.9vw, 2.8rem);
}

header .logo {
    margin-top: 20px;
}

nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.menu-toggle {
    display: none;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.08);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    background: #ffffff;
    transition: transform 220ms ease, opacity 220ms ease;
}

.menu-toggle.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-menu a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.93rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    padding: 10px 14px;
    border-radius: 999px;
    transition: transform 220ms ease, background-color 220ms ease;
}

.nav-menu a:hover,
.nav-menu a:focus-visible {
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-2px);
}

.nav-menu .nav-auth-btn {
    display: none;
    width: 100%;
    margin-top: 4px;
}

body.is-authenticated .auth-open,
body.is-authenticated .nav-auth-btn {
    display: none !important;
}

.auth-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 12px 7px 8px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.08);
}

.avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #0f1d33;
    background: linear-gradient(120deg, var(--sun), #ffd982);
}

.user-name {
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    color: #eef6ff;
    max-width: 140px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-user-chip {
    display: none;
}

.logout-btn {
    border: 1px solid rgba(255, 255, 255, 0.26);
    background: rgba(255, 255, 255, 0.06);
    color: #eef6ff;
    border-radius: 999px;
    padding: 6px 10px;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform 180ms ease, background-color 180ms ease;
}

.logout-btn:hover,
.logout-btn:focus-visible {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.14);
}

main {
    width: min(1120px, calc(100% - 32px));
    margin-inline: auto;
    padding-top: 130px;
    padding-bottom: 40px;
}

.section-home {
    min-height: min(500px, 100vh);
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: clamp(20px, 4vw, 48px);
}

#web {
    position: absolute;
    width: 100%;
    height: clamp(340px, 52vh, 560px);
    border-radius: 30px;
}

.profile {
    animation: moveUp 3.2s ease-out forwards;
}

@keyframes moveUp {
    0% {
        opacity: 0;
        transform: translate(0, 120px);
    }

    60% {
        opacity: 1;
        transform: translate(0, -20px);
    }

    100% {
        opacity: 1;
        transform: translate(-550px 0);
    }
}

.profile:hover {
    cursor: pointer;
    animation: moves 1s infinite alternate ease-in-out;
}

@keyframes moves {
    100% {
        transform: translateY(20px);
    }
}



.profile h2 {
    width: 5%;
    font-size: 40px;
    position: absolute;
    left: 310px;
    top: 110px;
    line-height: 100px;
    color: #06739e;
}

.profile h2 span{
    font-size: 60px;
}


.profile img {
    position: absolute;
    width: 35%;
    height: 650px;
}

.profile img:hover {
    cursor: pointer;
    animation: moveUpThenRight 1s infinite alternate ease-in-out;
}

@keyframes moveUpThenRight {
    0% {
        opacity: 0;
        transform: translate(0, 120px);
    }

    60% {
        opacity: 1;
        transform: translate(0, -550px);
    }

    100% {
        opacity: 1;
        transform: translate(400px, -550px);
    }
}

.detail-section {
    margin-left: 490px;
}

.detail-section h2 {
    display: none;
    font-size: clamp(2.15rem, 4.4vw, 4rem);
    line-height: 1.05;
    margin-bottom: 16px;
    white-space: nowrap;
    color: var(--text-main);
}

.detail-section > span {
    display: block;
    opacity: 0;
    animation: showContent 750ms cubic-bezier(0.2, 0.72, 0.22, 1) forwards;
}

.detail-section > span:nth-child(1) {
    animation-delay: 1500ms;
}

.detail-section > span:nth-child(2) {
    animation-delay: 1700ms;
}

.detail-section > span:nth-child(3) {
    animation-delay: 1900ms;
}

.detail-section > span:nth-child(4) {
    animation-delay: 2100ms;
}

.detail-section > span:nth-child(5) {
    animation-delay: 2300ms;
}

@keyframes showContent {
    
    to {
        opacity: 1;
        transform: translateY(0);
    }
    
}


.detail-section p {
    font-size: clamp(1rem, 1.25vw, 1.12rem);
    color: var(--text-muted);
    line-height: 1.8;
    max-width: 64ch;
}

.detail-section .choose {
    margin-top: 24px;
    margin-bottom: 12px;
    color: var(--text-main);
    font-size: clamp(1.2rem, 1.9vw, 1.5rem);
    font-weight: 800;
}

.detail-section ul {
    list-style: none;
    display: grid;
    gap: 10px;
}

.detail-section li {
    position: relative;
    padding-left: 26px;
    color: #e1efff;
    line-height: 1.6;
}

.detail-section li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--sun), var(--mint));
    box-shadow: 0 0 10px rgba(255, 190, 59, 0.5);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 12px;
    border: 1px solid transparent;
    font-size: 0.94rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    padding: 12px 18px;
    cursor: pointer;
    transition: transform 220ms ease, box-shadow 220ms ease, background-color 220ms ease;
}

.btn:hover,
.btn:focus-visible {
    transform: translateY(-2px);
}

.btn-primary {
    color: #0f1d33;
    background: linear-gradient(120deg, var(--sun), #ffd982);
    box-shadow: 0 12px 24px rgba(255, 190, 59, 0.32);
}

.btn-ghost {
    color: #eef6ff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.24);
}


/* ===== Service Sections ===== */
.section-service-bpo {
    margin-top: 86px;
}

.hidden {
    display: none;
}

.section-service-bpo h2 {
    text-align: center;
    font-family: "Dancing Script", cursive;
    font-size: clamp(2rem, 5vw, 3.2rem);
    margin-bottom: 120px;
}

.section-service-bpo h2 span:first-child {
    color: var(--sun);
}

.section-service-bpo h2 span:last-child {
    color: var(--mint);
}

.section-service-digital h2 {
    text-align: center;
    font-family: "Dancing Script", cursive;
    font-size: clamp(2rem, 5vw, 3.2rem);
    margin: 50px 0 120px 0;
}

.section-service-digital h2 span:first-child {
    color: var(--sun);
}

.section-service-digital h2 span:last-child {
    color: var(--mint);
}


.service-card {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}


/* ================= CARD ================= */

.card {
    position: relative;
    margin-bottom: 100px;
    width: 350px;
    height: auto;
    padding: 24px 0;
    border-radius: 40px;
    overflow: visible;
    transition: 0.5s ease-in-out;
    /* glass effect */
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.36);
    cursor: pointer;
}

#seeMoreBtn {
    display: block;
    margin: 0 auto;
    padding: 12px 18px;
    border-radius: 10px;
    background: linear-gradient(120deg, var(--sun), #ffd982);
    color: #0f1d33;
    font-weight: 800;
    border: none;
    cursor: pointer;
}

/* ================= LINES ================= */

.lines {
    position: absolute;
    inset: 0;
    border-radius: 40px;
    overflow: hidden;
    pointer-events: none;
}

/* animated neon line */
.lines::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 150px;
    transform: translate(-50%, -50%);
    background: linear-gradient(transparent, #ca45ff, #ca45ff, transparent);
    animation: rotateLine 4s linear infinite;
    opacity: 0;
}

.card:hover .lines::before {
    opacity: 1;
}

@keyframes rotateLine {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* inner dark layer */
.lines::after {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 40px;
    
}

.card:hover .lines::after {
    background: linear-gradient(-45deg, #020024, #090979, #0f2027, #2c5364);
    background-size: 400% 400%;
    animation: gradientBG 10s ease infinite;
}

/* ================= TOP BOX (ANIMATION ONLY) ================= */

.imgBx {
    position: relative;
    top: 0;
    left: auto;
    transform: none;
    margin: 0 auto 16px;
    width: 140px;
    height: 140px;
    border-radius: 30px;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    background-position: fixed;
    /* neon glow */
    box-shadow: 0 0 15px #00f7ff,
                0 0 30px #ca45ff;
    transition: 0.5s ease-in-out;
    animation: pulseGlow 2s infinite alternate;
}

.imgBx img {
    width: 80px;
    transition: 0.5s ease-in-out;
}

.card:hover .imgBx {
    transform: scale(1.1);
}

.card:hover .imgBx img {
    transform: scale(1.1);
}

.imgBx label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 3.4rem;
    line-height: 1;
}

/* glow animation */
@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 10px #00f7ff,
                    0 0 20px #ca45ff;
    }
    100% {
        box-shadow: 0 0 30px #00f7ff,
                    0 0 60px #ca45ff,
                    0 0 90px #ca45ff;
    }
}



/* ================= CONTENT ================= */

.content {
    position: relative;
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
}

.content .details {
    padding: 25px 20px;
    text-align: center;
    width: 100%;
    transition: 0.5s;
    transform: none;
}

.card:hover .content .details {
    transform: none;
}

.content .details h3 {
    font-size: 20px;
    font-weight: 600;
    color: #ca45ff;
    line-height: 2em;
}

.card p {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 0.9rem;
    margin-top: 15px;
    transform: none;
}
.card:hover p {
    transform: none;
}

.section-service-digital .card {
    perspective: 1200px;
    padding: 0;
    min-height: 360px;
    background: transparent;
    border: none;
    box-shadow: none;
}

.section-service-digital .card .lines {
    z-index: 0;
}

.section-service-digital .card-flip {
    position: relative;
    min-height: 360px;
    border-radius: 40px;
    transform-style: preserve-3d;
    transition: transform 900ms cubic-bezier(0.22, 1, 0.36, 1), filter 260ms ease;
}

.section-service-digital .card:hover .card-flip,
.section-service-digital .card:focus-within .card-flip,
.section-service-digital .card.is-flipped .card-flip {
    transform: rotateY(180deg);
}

.section-service-digital .card:hover,
.section-service-digital .card:focus-within,
.section-service-digital .card.is-flipped {
    transform: translateY(-6px);
}

.section-service-digital .card:hover .card-face,
.section-service-digital .card:focus-within .card-face,
.section-service-digital .card.is-flipped .card-face {
    border-color: rgba(255, 223, 153, 0.55);
    box-shadow: 0 20px 34px rgba(2, 10, 20, 0.42), inset 0 -1px 0 rgba(255, 255, 255, 0.36);
}

.section-service-digital .card-face {
    position: absolute;
    inset: 0;
    z-index: 2;
    border-radius: 40px;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.36);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 24px 16px 20px;
}

.section-service-digital .card-front {
    z-index: 2;
}

.section-service-digital .card-back {
    transform: rotateY(180deg);
    justify-content: center;
    background: linear-gradient(145deg, rgba(3, 20, 40, 0.94), rgba(11, 47, 77, 0.9));
}

.section-service-digital .card-front .imgBx {
    margin-bottom: 22px;
}

.section-service-digital .card-back .package-panel {
    width: 100%;
    max-width: 290px;
    opacity: 1;
    transform: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.section-service-digital .package-panel h4 {
    font-size: 0.9rem;
    color: #d9f2ff;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 2px;
    text-align: center;
    font-weight: 800;
}

.section-service-digital .package-list {
    list-style: none;
    display: grid;
    gap: 10px;
    padding: 0;
    margin: 0;
}

.section-service-digital .package-list li {
    position: relative;
    padding: 10px 12px 10px 30px;
    border-radius: 12px;
    font-size: 0.85rem;
    line-height: 1.45;
    color: #e8f4ff;
    background: linear-gradient(145deg, rgba(5, 25, 47, 0.82), rgba(7, 39, 68, 0.78));
    border: 1px solid rgba(142, 219, 255, 0.32);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
    transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.section-service-digital .package-list li::before {
    content: "";
    position: absolute;
    left: 12px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(130deg, var(--sun), var(--mint));
    transform: translateY(-50%);
    box-shadow: 0 0 8px rgba(255, 190, 59, 0.5);
}

.section-service-digital .package-list li:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 223, 153, 0.64);
    background: linear-gradient(145deg, rgba(8, 34, 60, 0.88), rgba(10, 47, 79, 0.85));
}

.section-service-digital .package-list .package-price {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 8px;
    margin: 0 6px 0 4px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 900;
    color: #10223a;
    background: linear-gradient(120deg, #ffd982, #ffbe3b);
    box-shadow: 0 4px 10px rgba(255, 190, 59, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.45);
}

.section-service-digital .package-panel .package-link {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.package-panel .package-link a,
.package-panel .package-link button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 82px;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid rgba(168, 222, 255, 0.4);
    color: #f3f9ff;
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    background: rgba(255, 255, 255, 0.08);
    font-family: inherit;
    cursor: pointer;
    outline: none;
    transition: transform 220ms ease, background-color 220ms ease, border-color 220ms ease;
}

.package-panel .package-link a:hover,
.package-panel .package-link a:focus-visible,
.package-panel .package-link button:hover,
.package-panel .package-link button:focus-visible {
    transform: translateY(-2px);
    background: linear-gradient(120deg, rgba(255, 190, 59, 0.3), rgba(120, 240, 196, 0.22));
    border-color: rgba(255, 223, 153, 0.75);
}

.package-panel .package-link .is-active {
    background: linear-gradient(120deg, rgba(255, 190, 59, 0.38), rgba(120, 240, 196, 0.3));
    border-color: rgba(255, 223, 153, 0.85);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.24);
}

.section-about {
    margin-top: 86px;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 18px;
}

.about-card {
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--line);
    backdrop-filter: blur(4px);
    padding: clamp(18px, 3vw, 30px);
    transition: 1s ease-in-out;
}

.about-card h2 {
    font-size: clamp(1.7rem, 3vw, 2.5rem);
    margin-bottom: 12px;
}

.about-card p {
    color: var(--text-muted);
    line-height: 1.8;
}

.about-card button {
    margin-top: 18px;
    padding: 12px 18px;
    border-radius: 10px;
    background: linear-gradient(120deg, var(--sun), #ffd982);
    color: #0f1d33;
    font-weight: 800;
    border: none;
    cursor: pointer;
}

.about-card:has(button:hover) {
    padding-bottom: 300px;
    transition: all 1s ease-in-out;
}

/* Firefox and older browsers fallback when backdrop-filter is unavailable */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    header,
    .card,
    .section-service-digital .card-face,
    .about-card,
    .contact-box {
        background: rgba(7, 20, 40, 0.9);
        border-color: rgba(255, 255, 255, 0.18);
    }

    .section-service-digital .package-list li {
        background: rgba(9, 36, 63, 0.9);
    }
}


.stats-grid {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.stats-grid article {
    border-radius: var(--radius-sm);
    padding: 14px;
    background: rgba(2, 14, 28, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.13);
}

.stats-grid h3 {
    color: var(--sun);
    font-size: 1.4rem;
}

.stats-grid p {
    color: #daebff;
    margin-top: 4px;
    font-size: 0.9rem;
}

.about-checklist h3 {
    font-size: 1.35rem;
    margin-bottom: 10px;
}

.about-checklist ul {
    list-style: none;
    display: grid;
    gap: 10px;
}

.about-checklist li {
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(2, 14, 28, 0.48);
}

.section-contact {
    margin-top: 86px;
    padding-bottom: 50px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.12);
}

.contact-box {
    max-width: 760px;
    margin-inline: auto;
    border-radius: var(--radius-lg);
    padding: clamp(18px, 3vw, 34px);
    background:
        radial-gradient(circle at 10% 10%, rgba(255, 190, 59, 0.18), transparent 45%),
        rgba(7, 20, 40, 0.76);
    border: 1px solid var(--line);
    box-shadow: 0 24px 52px rgba(0, 0, 0, 0.3);
}

.contact-box h2 {
    font-size: clamp(1.65rem, 3vw, 2.5rem);
    margin-bottom: 8px;
}

.contact-box p {
    color: var(--text-muted);
}

.contact-form {
    margin-top: 16px;
    display: grid;
    gap: 12px;
}

.contact-form label {
    display: grid;
    gap: 8px;
    font-weight: 700;
    font-size: 0.92rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.07);
    color: #f3f9ff;
    padding: 12px 14px;
    font: inherit;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(237, 246, 255, 0.66);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #8ad7ff;
    box-shadow: 0 0 0 3px rgba(138, 215, 255, 0.22);
}

footer {
    margin-top: 24px;
    padding: clamp(18px, 3vw, 30px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 22px;
    color: #d9e9ff;
    background: linear-gradient(145deg, rgba(7, 19, 37, 0.9), rgba(13, 43, 70, 0.85));
    transition: box-shadow 320ms ease, border-color 320ms ease;
}

footer:hover {
    border-color: rgba(255, 255, 255, 0.28);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28), 0 0 18px rgba(255, 190, 59, 0.18);
}

.footer-details {
    display: grid;
    gap: 20px;
    padding-bottom: 16px;
}


.footer-top {
    display: grid;
    gap: 10px;
    justify-items: center;
    text-align: center;
}

.footer-top h3 {
    font-size: clamp(1.25rem, 2.4vw, 1.7rem);
    letter-spacing: 0.18em;
}

.footer-top h3 span {
    padding-bottom: 6px;
    border-bottom: 3px solid #ffd982;
}

.footer-top p {
    font-size: clamp(0.92rem, 1.8vw, 1.02rem);
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.quick-links,
.social-links {
    display: grid;
    gap: 8px;
    align-content: start;
}

.quick-links h2,
.social-links h2 {
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #edf6ff;
    margin-bottom: 4px;
}

.footer-links a {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: clamp(0.9rem, 1.7vw, 1rem);
    font-weight: 700;
    padding: 6px 0;
    text-decoration: none;
    color: #d2e6ff;
    transition: color 240ms ease, transform 240ms ease;
}

.footer-links a:hover {
    color: #ffffff;
    transform: translateX(2px);
}

.social-links {
    justify-items: start;
}

.social-links a {
    padding: 6px 0;
}

.social-links i {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    font-size: 1.05rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 12px;
}

.footer-bottom p {
    text-align: center;
    font-size: 0.88rem;
    color: #c8daef;
    letter-spacing: 0.03em;
}

.auth-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(3, 11, 20, 0.72);
    backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms ease;
}

.auth-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.auth-panel {
    width: min(440px, 100%);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background:
        radial-gradient(circle at 20% 10%, rgba(255, 190, 59, 0.18), transparent 40%),
        linear-gradient(160deg, rgba(7, 22, 40, 0.96), rgba(14, 45, 74, 0.92));
    padding: 22px;
    box-shadow: 0 24px 54px rgba(0, 0, 0, 0.4);
    position: relative;
}

.auth-close {
    position: absolute;
    right: 12px;
    top: 12px;
    border: 0;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 0.9rem;
    cursor: pointer;
}

.auth-panel h2 {
    font-size: 1.8rem;
    margin-bottom: 6px;
}

.auth-panel p {
    color: var(--text-muted);
    line-height: 1.6;
}

.auth-tabs {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.tab-btn {
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: #e8f4ff;
    border-radius: 10px;
    padding: 10px 12px;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.tab-btn.is-active {
    background: linear-gradient(130deg, var(--sun), #ffd988);
    color: #132742;
    border-color: transparent;
}

.auth-form {
    margin-top: 14px;
    display: none;
    gap: 10px;
}

.auth-form.is-active {
    display: grid;
}

.auth-form label {
    display: grid;
    gap: 7px;
    font-size: 0.88rem;
    font-weight: 700;
}

.auth-form input {
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.08);
    color: #f2f8ff;
    border-radius: 10px;
    padding: 11px 12px;
    font: inherit;
}

.auth-form input:focus {
    outline: none;
    border-color: #95d7ff;
    box-shadow: 0 0 0 3px rgba(149, 215, 255, 0.2);
}

.auth-message {
    min-height: 24px;
    margin-top: 12px;
    font-size: 0.9rem;
    color: #e8f4ff;
}

@keyframes float-a {
    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(24px, 18px);
    }
}

@keyframes float-b {
    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(-20px, -20px);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .detail-section > span {
        opacity: 1;
        transform: none;
        animation: none;
    }
}

@media (max-width: 1024px) {
    main {
        padding-top: 116px;
    }

    .section-home {
        grid-template-columns: 1fr;
        min-height: auto;
        gap: 26px;
    }

    #web {
        height: clamp(260px, 44vh, 420px);
    }

    .service-card {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .section-about {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    header {
        padding: 12px 14px;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .nav-menu {
        position: absolute;
        left: 0;
        right: 0;
        top: calc(100% + 10px);
        background: rgba(5, 15, 30, 0.94);
        border: 1px solid var(--line);
        border-radius: 16px;
        margin: 0 6px;
        padding: 10px;
        display: grid;
        gap: 4px;
        opacity: 0;
        transform: translateY(-8px);
        pointer-events: none;
        transition: opacity 240ms ease, transform 240ms ease;
    }

    .nav-menu.is-open {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .nav-menu a {
        padding: 12px;
        border-radius: 10px;
    }

    .nav-menu .nav-auth-btn {
        display: inline-flex;
    }

    .nav-user-chip {
        display: inline-flex;
        margin-top: 4px;
        width: 100%;
        justify-content: flex-start;
    }

    .auth-controls {
        display: none;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    main {
        width: calc(100% - 22px);
        padding-top: 104px;
    }

    header {
        width: calc(100% - 20px);
    }

    .service-card {
        grid-template-columns: 1fr;
    }

    .section-service-digital .card,
    .section-service-digital .card-flip {
        min-height: 380px;
    }

    .section-service-digital .package-list li {
        font-size: 0.82rem;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .quick-links,
    .social-links {
        justify-items: center;
        text-align: center;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .contact-box {
        padding: 18px;
    }

    .detail-section h2 {
        font-size: clamp(1.45rem, 7.2vw, 2.1rem);
    }
}