/* Setting MikroTik Indonesia - Styles */
/* Extracted from index.html for better maintainability */

* {
    font-family: 'Poppins', sans-serif;
}

/* ========================================
   COMPACT MODE - Reduce scroll length
   ======================================== */
/* Reduce section padding */
section.py-24 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

section.py-16 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
}

/* Reduce header margins */
.text-center.mb-16 {
    margin-bottom: 1.5rem !important;
}

.mb-16 {
    margin-bottom: 2rem !important;
}

.mb-10 {
    margin-bottom: 1.5rem !important;
}

/* Reduce section headlines */
.text-4xl.md\:text-5xl {
    font-size: 1.875rem !important;
    line-height: 2.25rem !important;
}

@media (min-width: 768px) {
    .text-4xl.md\:text-5xl {
        font-size: 2.25rem !important;
        line-height: 2.5rem !important;
    }
}

/* Reduce gap in grids */
.gap-8 {
    gap: 1rem !important;
}

/* Reduce card padding */
.p-8 {
    padding: 1.25rem !important;
}

.p-6 {
    padding: 1rem !important;
}

/* Reduce mt-16 margins */
.mt-16 {
    margin-top: 2rem !important;
}

/* Hero section compact */
.min-h-screen {
    min-height: 70vh !important;
}

/* Reduce decorative blob sizes */
.blur-3xl {
    filter: blur(50px) !important;
    opacity: 0.3 !important;
}


.gradient-bg {
    background: linear-gradient(135deg, #1e3a5f 0%, #0d1b2a 50%, #1b263b 100%);
}

.gradient-text {
    background: linear-gradient(90deg, #00d4ff, #00ff88);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px -12px rgba(0, 212, 255, 0.25);
}

.glow {
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.3);
}

.pulse-animation {
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.scroll-smooth {
    scroll-behavior: smooth;
}

html {
    scroll-behavior: smooth;
}

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-15px);
    }

    60% {
        transform: translateY(-7px);
    }
}

.network-bg {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2300d4ff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes rotateGlow {
    0% {
        box-shadow: 0 0 20px rgba(0, 212, 255, 0.3), 0 0 40px rgba(0, 212, 255, 0.1);
    }

    50% {
        box-shadow: 0 0 30px rgba(0, 212, 255, 0.5), 0 0 60px rgba(0, 212, 255, 0.2);
    }

    100% {
        box-shadow: 0 0 20px rgba(0, 212, 255, 0.3), 0 0 40px rgba(0, 212, 255, 0.1);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease-out;
}

.animate-slideInLeft {
    animation: slideInLeft 0.6s ease-out;
}

.animate-slideInRight {
    animation: slideInRight 0.6s ease-out;
}

.animate-scaleIn {
    animation: scaleIn 0.6s ease-out;
}

.glow-rotate {
    animation: rotateGlow 3s ease-in-out infinite;
}

.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
}

.text-shadow-glow {
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.gradient-border {
    position: relative;
    background: linear-gradient(to right, #00d4ff, #00ff88);
    padding: 2px;
    border-radius: 16px;
}

.gradient-border-content {
    background: #1f2937;
    border-radius: 14px;
}

/* Premium UI helpers */
.glass {
    background: rgba(17, 24, 39, 0.55);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(34, 211, 238, 0.18);
}

.shine {
    position: relative;
    overflow: hidden;
}

.shine::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -60%;
    width: 40%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.10), transparent);
    transform: rotate(20deg);
    transition: transform 0.7s ease, left 0.7s ease;
    pointer-events: none;
}

.shine:hover::after {
    left: 120%;
}

.bg-animated {
    background-size: 200% 200%;
    animation: bgShift 10s ease infinite;
}

@keyframes bgShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Service cards (extra polish) */
.service-card {
    position: relative;
}

.service-card::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 16px;
    background: linear-gradient(90deg, rgba(34, 211, 238, 0.0), rgba(34, 211, 238, 0.25), rgba(34, 197, 94, 0.22), rgba(34, 211, 238, 0.0));
    opacity: 0;
    transition: opacity 260ms ease;
    pointer-events: none;
}

.service-card:hover::before {
    opacity: 1;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {

    .pulse-animation,
    .float-animation,
    .glow-rotate,
    .bg-animated {
        animation: none !important;
    }

    .reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .splash-panel {
        animation: none !important;
        transform: none !important;
    }

    .splash-spinner,
    .splash-bar {
        animation: none !important;
    }

    .splash {
        transition: none !important;
    }
}

/* Better mobile/tablet experience */
body {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}

section {
    scroll-margin-top: 90px;
}

/* Prevent iOS tap highlight & improve tap targets */
a,
button {
    -webkit-tap-highlight-color: transparent;
}

/* Tooltip: hide on touch devices */
@media (hover: none) {
    .whatsapp-float>div:last-child {
        display: none;
    }

    .card-hover:hover {
        transform: none;
        box-shadow: none;
    }
}

/* Make floating button responsive on small screens */
@media (max-width: 640px) {
    .whatsapp-float {
        right: 18px;
        bottom: 18px;
    }
}

/* Mobile performance mode */
@media (max-width: 768px) {
    .glass {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    nav {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    #overlay .overlay-backdrop {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .splash-panel {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .blur-3xl {
        display: none !important;
    }

    .pulse-animation,
    .float-animation,
    .glow-rotate,
    .whatsapp-float {
        animation: none !important;
    }

    .animate-ping,
    .animate-pulse {
        animation: none !important;
    }

    .reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* Render optimization for long pages */
@supports (content-visibility: auto) {
    section {
        content-visibility: auto;
        contain-intrinsic-size: 900px;
    }

    #beranda {
        content-visibility: visible;
        contain-intrinsic-size: auto;
    }
}

/* Tighter hero padding on small devices */
@media (max-width: 640px) {
    #beranda .py-32 {
        padding-top: 7.5rem;
        padding-bottom: 6.5rem;
    }
}

/* Details/Accordion polish */
details summary {
    list-style: none;
}

details summary::-webkit-details-marker {
    display: none;
}

details[open] summary .chev {
    transform: rotate(180deg);
}

/* Table polish inside overlay */
#overlay table {
    border-collapse: collapse;
    width: 100%;
}

#overlay th,
#overlay td {
    vertical-align: top;
}

/* Form focus polish */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12);
}

/* Splash screen */
.splash-lock {
    overflow: hidden;
}

.splash {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    background: radial-gradient(1200px 800px at 20% 20%, rgba(34, 211, 238, 0.18), transparent 55%),
        radial-gradient(900px 700px at 80% 25%, rgba(34, 197, 94, 0.14), transparent 55%),
        linear-gradient(135deg, #0b1220 0%, #0d1b2a 55%, #111827 100%);
    opacity: 1;
    pointer-events: auto;
    transition: opacity 380ms ease;
}

.splash-panel {
    width: min(520px, calc(100% - 32px));
    border-radius: 24px;
    padding: 28px 22px;
    text-align: center;
    background: rgba(17, 24, 39, 0.55);
    border: 1px solid rgba(34, 211, 238, 0.22);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    transform: translateY(8px) scale(0.99);
    animation: splashIn 520ms cubic-bezier(.2, .8, .2, 1);
}

@keyframes splashIn {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.985);
    }

    to {
        opacity: 1;
        transform: translateY(8px) scale(0.99);
    }
}

.splash-spinner {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.18);
    border-top-color: rgba(34, 211, 238, 0.95);
    border-right-color: rgba(34, 197, 94, 0.75);
    animation: spin 0.9s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.splash-bar {
    height: 100%;
    width: 45%;
    background: linear-gradient(90deg, rgba(34, 211, 238, 0.0), rgba(34, 211, 238, 0.9), rgba(34, 197, 94, 0.9), rgba(34, 211, 238, 0.0));
    background-size: 200% 100%;
    animation: splashBar 1.2s ease-in-out infinite;
}

@keyframes splashBar {
    0% {
        transform: translateX(-60%);
    }

    50% {
        transform: translateX(30%);
    }

    100% {
        transform: translateX(120%);
    }
}

.splash.is-hiding {
    opacity: 0;
    pointer-events: none;
}

.splash.is-hidden {
    display: none;
}

/* Overlay page (simulate multi-page) */
.no-scroll {
    overflow: hidden;
}

/* Overlay header: compact on mobile */
@media (max-width: 640px) {
    #overlay-title {
        font-size: 1.45rem;
        line-height: 1.25;
    }

    #overlay-subtitle {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

#overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

#overlay .overlay-backdrop {
    background: rgba(3, 7, 18, 0.70);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    opacity: 0;
    transition: opacity 260ms ease;
}

#overlay.is-open .overlay-backdrop {
    opacity: 1;
}

#overlay #overlay-panel {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
    transition: transform 320ms cubic-bezier(.2, .8, .2, 1), opacity 320ms cubic-bezier(.2, .8, .2, 1);
}

#overlay.is-open #overlay-panel {
    opacity: 1;
    transform: translateY(0) scale(1);
}

#overlay-body {
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}

.overlay-body-anim {
    animation: overlayBodyIn 260ms ease;
}

@keyframes overlayBodyIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {

    #overlay .overlay-backdrop,
    #overlay #overlay-panel {
        transition: none !important;
    }

    .overlay-body-anim {
        animation: none !important;
    }
}

/* ========================================
   TABS Component
   ======================================== */
.tabs-container {
    width: 100%;
}

.tabs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(34, 211, 238, 0.2);
    padding-bottom: 12px;
}

.tab-btn {
    padding: 10px 20px;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #9ca3af;
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.25s ease;
}

.tab-btn:hover {
    color: #e5e7eb;
    background: rgba(34, 211, 238, 0.08);
}

.tab-btn.active {
    color: #fff;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.2), rgba(34, 197, 94, 0.15));
    border-color: rgba(34, 211, 238, 0.35);
}

.tab-panel {
    display: none;
    animation: tabFadeIn 0.3s ease;
}

.tab-panel.active {
    display: block;
}

@keyframes tabFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   CAROUSEL Component
   ======================================== */
.carousel-container {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
    flex: 0 0 100%;
    min-width: 100%;
    padding: 0 8px;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .carousel-slide {
        flex: 0 0 50%;
        min-width: 50%;
    }
}

@media (min-width: 1024px) {
    .carousel-slide {
        flex: 0 0 33.333%;
        min-width: 33.333%;
    }
}

.carousel-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 20px;
}

.carousel-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(17, 24, 39, 0.7);
    border: 1px solid rgba(34, 211, 238, 0.3);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.carousel-btn:hover {
    background: rgba(34, 211, 238, 0.15);
    border-color: rgba(34, 211, 238, 0.5);
}

.carousel-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.carousel-dots {
    display: flex;
    gap: 8px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(156, 163, 175, 0.4);
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
}

.carousel-dot.active,
.carousel-dot:hover {
    background: rgba(34, 211, 238, 0.8);
    transform: scale(1.2);
}

/* ========================================
   ACCORDION Component
   ======================================== */
.accordion-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.accordion-item {
    border-radius: 16px;
    border: 1px solid rgba(107, 114, 128, 0.3);
    background: rgba(17, 24, 39, 0.4);
    overflow: hidden;
    transition: border-color 0.25s ease;
}

.accordion-item:hover {
    border-color: rgba(34, 211, 238, 0.35);
}

.accordion-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s ease;
}

.accordion-trigger:hover {
    background: rgba(34, 211, 238, 0.06);
}

.accordion-icon {
    width: 20px;
    height: 20px;
    color: #22d3ee;
    transition: transform 0.3s ease;
}

.accordion-item.open .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
}

.accordion-item.open .accordion-content {
    max-height: 800px;
}

.accordion-inner {
    padding: 0 20px 20px;
}

/* Mobile adjustments for new components */
@media (max-width: 640px) {
    .tabs-nav {
        justify-content: center;
    }

    .tab-btn {
        padding: 8px 14px;
        font-size: 0.8rem;
    }

    .carousel-btn {
        width: 36px;
        height: 36px;
    }

    .accordion-trigger {
        padding: 14px 16px;
        font-size: 0.9rem;
    }
}

/* Reduce motion for new components */
@media (prefers-reduced-motion: reduce) {

    .tab-panel,
    .carousel-track,
    .accordion-content,
    .accordion-icon {
        transition: none !important;
        animation: none !important;
    }
}

/* ========================================
   MODAL POPUP SYSTEM
   ======================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    overflow-y: auto;
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    max-width: 1200px;
    margin: 0 auto;
    background: linear-gradient(180deg, #1a2332 0%, #0f1419 100%);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 24px;
    position: relative;
    transform: translateY(30px) scale(0.95);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}

.modal-header {
    padding: 24px 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 212, 255, 0.05);
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(90deg, #00d4ff, #00ff88);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-close {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
}

.modal-body {
    padding: 32px;
    max-height: 70vh;
    overflow-y: auto;
}

/* Dashboard Cards - Compact navigation buttons */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (min-width: 768px) {
    .dashboard-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.dashboard-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.9) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 212, 255, 0.5);
    box-shadow: 0 20px 40px -15px rgba(0, 212, 255, 0.3);
}

.dashboard-card-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dashboard-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 6px;
}

.dashboard-card-desc {
    font-size: 0.8rem;
    color: #9ca3af;
}

/* Body scroll lock */
body.modal-open {
    overflow: hidden;
}