/* Custom Styles and Animations for Earth Curvature Calculator */

/* Custom fonts styling override */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', 'Inter', sans-serif;
    letter-spacing: -0.02em;
}

/* Glassmorphism Cards */
.glass-card {
    background: rgba(17, 24, 39, 0.45);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card-hover:hover {
    background: rgba(17, 24, 39, 0.6);
    border-color: rgba(99, 102, 241, 0.25);
    box-shadow: 0 10px 30px -10px rgba(99, 102, 241, 0.15);
    transform: translateY(-2px);
}

/* Styled Scrollbars */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #090d16;
}

::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4f46e5;
}

/* Interactive Slider Styling */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    cursor: pointer;
}

input[type="range"]::-webkit-slider-runnable-track {
    background: #1e293b;
    height: 6px;
    border-radius: 9999px;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    background: #536eff;
    height: 18px;
    width: 18px;
    border-radius: 50%;
    margin-top: -6px;
    box-shadow: 0 0 10px rgba(83, 110, 255, 0.5);
    transition: all 0.15s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
    background: #3a4dfa;
    transform: scale(1.15);
    box-shadow: 0 0 15px rgba(83, 110, 255, 0.8);
}

input[type="range"]::-moz-range-track {
    background: #1e293b;
    height: 6px;
    border-radius: 9999px;
}

input[type="range"]::-moz-range-thumb {
    background: #536eff;
    height: 18px;
    width: 18px;
    border: none;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(83, 110, 255, 0.5);
    transition: all 0.15s ease;
}

input[type="range"]::-moz-range-thumb:hover {
    background: #3a4dfa;
    transform: scale(1.15);
}

/* SVG Line Animations */
.animate-dash {
    stroke-dasharray: 6;
    animation: dash-animation 20s linear infinite;
}

@keyframes dash-animation {
    to {
        stroke-dashoffset: -100;
    }
}

.pulse-dot {
    animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-ring {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

/* FAQ Accordion Transitions */
.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
}

.faq-content.open {
    max-height: 1000px;
    transition: max-height 0.3s cubic-bezier(1, 0, 1, 0);
}

.faq-icon {
    transition: transform 0.3s ease;
}

.faq-icon.open {
    transform: rotate(180deg);
}

/* SVG Curved Earth Grid Representation style */
.grid-earth-arc {
    stroke: rgba(99, 102, 241, 0.2);
    stroke-width: 0.5;
}

/* Dynamic visual chart adjustments */
#svg-visualization-container {
    background: radial-gradient(circle at bottom center, rgba(15, 23, 42, 0.8), rgba(2, 6, 23, 1));
}
