/* ============================================
   Ciptora Digital Indonesia — style.css
   Custom styles complementing Tailwind utilities
   ============================================ */

/* ---------- Base ---------- */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Selection */
::selection {
    background: #1E40AF;
    color: #fff;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
::-webkit-scrollbar-track {
    background: #F8FAFC;
}
::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94A3B8;
}

/* ============================================
   NAVBAR
   ============================================ */
#navbar {
    background: transparent;
    backdrop-filter: blur(0);
}
#navbar.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}

.nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.875rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #475569;
    border-radius: 0.5rem;
    transition: color 0.25s ease, background 0.25s ease;
}
.nav-link:hover {
    color: #1E40AF;
    background: rgba(239, 246, 255, 0.7);
}
.nav-link.active {
    color: #1E40AF;
    background: #EFF6FF;
}

.mobile-nav-link {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: #334155;
    border-radius: 0.75rem;
    transition: background 0.2s ease, color 0.2s ease;
}
.mobile-nav-link:hover {
    background: #F1F5F9;
    color: #1E40AF;
}

.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}
.mobile-menu.open {
    max-height: 500px;
}

/* ============================================
   LOADER
   ============================================ */
.loader {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #FFFFFF 0%, #EFF6FF 50%, #FFF7ED 100%);
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
.loader.hidden {
    opacity: 0;
    visibility: hidden;
}
.loader-inner {
    text-align: center;
}
.loader-mark {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
}
.loader-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #1E40AF;
    animation: loaderBounce 1.2s ease-in-out infinite;
}
.loader-dot-2 {
    background: #3B82F6;
    animation-delay: 0.15s;
}
.loader-dot-3 {
    background: #F97316;
    animation-delay: 0.3s;
}
.loader-text {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 1.25rem;
    color: #1E40AF;
    letter-spacing: -0.01em;
}

@keyframes loaderBounce {
    0%, 80%, 100% {
        transform: scale(0.7);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ============================================
   HERO
   ============================================ */
.hero-gradient {
    background:
        radial-gradient(circle at 20% 0%, rgba(219, 234, 254, 0.6), transparent 50%),
        radial-gradient(circle at 80% 100%, rgba(255, 237, 213, 0.5), transparent 50%),
        linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
    background-size: 200% 200%;
    animation: gradientShift 14s ease infinite;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    50% {
        transform: translateY(-24px) translateX(8px);
    }
}
.animate-float {
    animation: float 8s ease-in-out infinite;
}
.animate-float-slow {
    animation: float 14s ease-in-out infinite;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.5rem;
}
.stat-icon {
    width: 38px;
    height: 38px;
    border-radius: 0.625rem;
    background: #EFF6FF;
    color: #1E40AF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.stat-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #334155;
    line-height: 1.2;
}

/* ============================================
   TRUST PILL
   ============================================ */
.trust-pill {
    font-weight: 600;
    color: #64748B;
    transition: color 0.25s ease;
}
.trust-pill:hover {
    color: #1E40AF;
}

/* ============================================
   FEATURE CARD
   ============================================ */
.feature-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 1.25rem;
    padding: 1.75rem;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(30, 64, 175, 0.08);
    border-color: #BFDBFE;
}
.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 0.875rem;
    background: linear-gradient(135deg, #DBEAFE 0%, #EFF6FF 100%);
    color: #1E40AF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}
.feature-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 0.5rem;
}
.feature-desc {
    font-size: 0.9rem;
    color: #64748B;
    line-height: 1.55;
}

/* ============================================
   SERVICE CARD
   ============================================ */
.service-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 1.25rem;
    padding: 1.75rem;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(249, 115, 22, 0.08);
    border-color: #FED7AA;
}
.service-icon {
    width: 56px;
    height: 56px;
    border-radius: 1rem;
    background: linear-gradient(135deg, #FFF7ED 0%, #FFEDD5 100%);
    color: #EA580C;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.1rem;
}
.service-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 0.5rem;
}
.service-desc {
    font-size: 0.9rem;
    color: #64748B;
    line-height: 1.55;
}

/* ============================================
   WORKFLOW
   ============================================ */
.workflow-step {
    text-align: center;
    position: relative;
}
.workflow-number {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    font-weight: 700;
    color: #F97316;
    background: #FFF7ED;
    border: 1px solid #FED7AA;
    border-radius: 999px;
    padding: 2px 8px;
    z-index: 2;
}
.workflow-icon {
    width: 64px;
    height: 64px;
    border-radius: 1rem;
    background: #FFFFFF;
    border: 2px solid #E2E8F0;
    color: #1E40AF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}
.workflow-step:hover .workflow-icon {
    background: linear-gradient(135deg, #1E40AF 0%, #3B82F6 100%);
    color: #FFFFFF;
    border-color: #1E40AF;
    transform: scale(1.05);
}
.workflow-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 0.4rem;
}
.workflow-desc {
    font-size: 0.825rem;
    color: #64748B;
    line-height: 1.5;
}

/* ============================================
   TECH BADGE
   ============================================ */
.tech-badge {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 1rem;
    padding: 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    min-height: 110px;
}
.tech-badge:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    border-color: #BFDBFE;
}
.tech-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: #334155;
}

/* ============================================
   INDUSTRY CHIP
   ============================================ */
.industry-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 0.75rem;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 1rem;
    transition: all 0.3s ease;
    text-align: center;
}
.industry-chip ion-icon {
    font-size: 1.75rem;
    color: #1E40AF;
    transition: color 0.3s ease;
}
.industry-chip span {
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569;
}
.industry-chip:hover {
    background: #FFFFFF;
    border-color: #FED7AA;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(249, 115, 22, 0.08);
}
.industry-chip:hover ion-icon {
    color: #F97316;
}
.industry-chip:hover span {
    color: #0F172A;
}

/* ============================================
   PORTFOLIO CARD
   ============================================ */
.portfolio-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 1.25rem;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    display: flex;
    flex-direction: column;
}
.portfolio-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: #BFDBFE;
}
.portfolio-cover {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #F1F5F9;
}
.portfolio-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}
.portfolio-card:hover .portfolio-cover img {
    transform: scale(1.08);
}
.portfolio-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(15, 23, 42, 0.4) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}
.portfolio-card:hover .portfolio-cover::after {
    opacity: 1;
}
.portfolio-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    color: #1E40AF;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    letter-spacing: 0.02em;
}
.portfolio-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.portfolio-cat {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #F97316;
    margin-bottom: 0.5rem;
}
.portfolio-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 0.5rem;
}
.portfolio-desc {
    font-size: 0.875rem;
    color: #64748B;
    line-height: 1.55;
    margin-bottom: 1rem;
    flex-grow: 1;
}
.portfolio-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.6rem 1rem;
    background: #EFF6FF;
    color: #1E40AF;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 0.625rem;
    transition: all 0.3s ease;
    align-self: flex-start;
}
.portfolio-btn ion-icon {
    font-size: 0.95rem;
    transition: transform 0.3s ease;
}
.portfolio-btn:hover {
    background: #1E40AF;
    color: #FFFFFF;
}
.portfolio-btn:hover ion-icon {
    transform: translateX(3px);
}

/* ============================================
   COMPARISON TABLE
   ============================================ */
.comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #FFFFFF;
    font-size: 0.875rem;
}
.comparison-table thead th {
    background: #F8FAFC;
    color: #0F172A;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    padding: 1.25rem 1rem;
    text-align: center;
    border-bottom: 1px solid #E2E8F0;
    font-size: 0.95rem;
}
.comparison-table thead th:first-child {
    text-align: left;
    background: #FFFFFF;
}
.comparison-table tbody td {
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid #F1F5F9;
    color: #475569;
}
.comparison-table tbody td:first-child {
    text-align: left;
    color: #0F172A;
}
.comparison-table tbody tr:last-child td {
    border-bottom: none;
}
.comparison-table tbody tr:hover {
    background: #F8FAFC;
}
.comparison-table .highlight-col {
    background: rgba(255, 247, 237, 0.5);
    color: #9A3412;
    font-weight: 600;
    position: relative;
}
.comparison-table thead .highlight-col {
    background: linear-gradient(135deg, #F97316 0%, #EA580C 100%);
    color: #FFFFFF;
}

/* ============================================
   PRICING CARD
   ============================================ */
.pricing-card {
    position: relative;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 1.5rem;
    padding: 2rem 1.75rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}
.pricing-card--popular {
    border-color: #F97316;
    box-shadow: 0 16px 40px rgba(249, 115, 22, 0.15);
    transform: scale(1.02);
}
.pricing-card--popular:hover {
    transform: scale(1.02) translateY(-4px);
}
.pricing-popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #F97316 0%, #EA580C 100%);
    color: #FFFFFF;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    white-space: nowrap;
}
.pricing-head {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #F1F5F9;
}
.pricing-name {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: #0F172A;
    margin-bottom: 0.5rem;
}
.pricing-tagline {
    font-size: 0.875rem;
    color: #64748B;
    line-height: 1.5;
}
.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.75rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex-grow: 1;
}
.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.875rem;
    color: #334155;
    line-height: 1.5;
}
.pricing-features ion-icon {
    color: #F97316;
    font-size: 1.15rem;
    flex-shrink: 0;
    margin-top: 1px;
}
.pricing-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.85rem 1.5rem;
    background: #FFFFFF;
    color: #1E40AF;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1.5px solid #1E40AF;
    border-radius: 0.875rem;
    transition: all 0.3s ease;
}
.pricing-btn ion-icon {
    font-size: 1rem;
    transition: transform 0.3s ease;
}
.pricing-btn:hover {
    background: #EFF6FF;
    transform: translateY(-2px);
}
.pricing-btn:hover ion-icon {
    transform: translateX(3px);
}
.pricing-btn--primary {
    background: linear-gradient(135deg, #F97316 0%, #EA580C 100%);
    color: #FFFFFF;
    border-color: transparent;
    box-shadow: 0 8px 24px rgba(249, 115, 22, 0.3);
}
.pricing-btn--primary:hover {
    background: linear-gradient(135deg, #EA580C 0%, #C2410C 100%);
    box-shadow: 0 12px 32px rgba(249, 115, 22, 0.45);
}

/* ============================================
   FAQ
   ============================================ */
.faq-item {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 1rem;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.faq-item:hover {
    border-color: #BFDBFE;
}
.faq-item[open] {
    border-color: #1E40AF;
    box-shadow: 0 8px 24px rgba(30, 64, 175, 0.06);
}
.faq-summary {
    list-style: none;
    cursor: pointer;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #0F172A;
    transition: color 0.25s ease;
}
.faq-summary::-webkit-details-marker {
    display: none;
}
.faq-summary:hover {
    color: #1E40AF;
}
.faq-icon {
    color: #1E40AF;
    font-size: 1.25rem;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}
.faq-item[open] .faq-icon {
    transform: rotate(180deg);
}
.faq-content {
    padding: 0 1.5rem 1.25rem 1.5rem;
    color: #475569;
    font-size: 0.9rem;
    line-height: 1.65;
}
.faq-content p {
    margin: 0;
}

/* ============================================
   FOOTER
   ============================================ */
.footer-link {
    color: #94A3B8;
    transition: color 0.25s ease;
    display: inline-block;
}
.footer-link:hover {
    color: #FB923C;
}

.footer-social {
    width: 40px;
    height: 40px;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    color: #CBD5E1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.footer-social:hover {
    background: #F97316;
    color: #FFFFFF;
    transform: translateY(-3px);
}

/* ============================================
   SCROLL REVEAL
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    transition-delay: var(--reveal-delay, 0s);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ============================================
   PRINT
   ============================================ */
@media print {
    #navbar, #backToTop, .loader {
        display: none !important;
    }
}