/* ========================================
   Kontira - Custom Styles
   ======================================== */

/* --- Base --- */
html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* --- Navbar glass effect --- */
#navbar {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(202, 240, 248, 0.3);
    transition: all 0.3s ease;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 1px 20px rgba(3, 4, 94, 0.06);
}

/* --- Language flags --- */
.lang-flag,
.lang-flag-option {
    font-size: 1.25rem;
    line-height: 1;
}

.lang-flag-btn {
    font-size: 1.5rem;
    padding: 0.25rem;
    border-radius: 0.5rem;
    transition: transform 0.15s ease;
    background: none;
    border: none;
    cursor: pointer;
}

.lang-flag-btn:hover {
    transform: scale(1.15);
}

/* --- Scroll reveal animations --- */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }

/* --- Hide scrollbar utility --- */
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

/* --- Calculator plan button --- */
.calc-plan-btn {
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.calc-plan-btn.active {
    border-color: #0077B6;
    background-color: rgba(0, 119, 182, 0.05);
    color: #0077B6;
}

/* --- Details/Summary arrow hide (use custom icon) --- */
details summary::-webkit-details-marker {
    display: none;
}

details summary::marker {
    display: none;
    content: '';
}

/* --- Selection color --- */
::selection {
    background-color: #CAF0F8;
    color: #03045E;
}

/* --- Focus styles --- */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #0077B6;
    box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.12);
}

/* --- Checkbox styling --- */
input[type="checkbox"] {
    accent-color: #0077B6;
}

/* --- Smooth scroll offset for anchor links --- */
[id] {
    scroll-margin-top: 8rem;
}

/* --- Slide-in from left --- */
.reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.reveal-left.in { opacity: 1; transform: translateX(0); }

/* --- Slide-in from right --- */
.reveal-right {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.reveal-right.in { opacity: 1; transform: translateX(0); }

/* --- Scale up --- */
.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.reveal-scale.in { opacity: 1; transform: scale(1); }

/* --- Subtle float animation for mock elements --- */
@keyframes subtle-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
.float-subtle { animation: subtle-float 4s ease-in-out infinite; }

/* --- Pulse for notification badges --- */
@keyframes subtle-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}
.pulse-subtle { animation: subtle-pulse 3s ease-in-out infinite; }

/* --- Animated bar growth --- */
@keyframes bar-grow {
    0% { height: 30%; }
    25% { height: 65%; }
    50% { height: 45%; }
    75% { height: 80%; }
    100% { height: 60%; }
}
.bar-animate { animation: bar-grow 8s ease-in-out infinite alternate; }

/* --- Counter animation for numbers --- */
@keyframes count-up {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

/* --- Print styles --- */
@media print {
    #navbar,
    footer {
        display: none;
    }
    main {
        padding-top: 0 !important;
    }
}
