@import url('https://fonts.googleapis.com/css2?family=Mukta:wght@200;300;400;500;600;700;800;900&display=swap');

html {
	scroll-behavior: smooth;
	max-width: 100%;
	overflow-x: hidden;
	font-family: 'Mukta', sans-serif;
}

body {
	margin: 0;
	max-width: 100%;
	position: static;
	overflow-x: hidden;
	text-wrap: balance;

	font-family: 'Mukta', sans-serif;
	background-color: #958941;
	background-image: radial-gradient(at 84% 12%, hsla(212, 75%, 71%, 1) 0px, transparent 50%),
	radial-gradient(at 22% 27%, hsla(168, 89%, 62%, 1) 0px, transparent 50%),
	radial-gradient(at 22% 17%, hsla(351, 78%, 74%, 1) 0px, transparent 50%),
	radial-gradient(at 91% 82%, hsla(150, 65%, 76%, 0.6) 0px, transparent 50%),
	radial-gradient(at 48% 80%, hsla(227, 62%, 71%, 1) 0px, transparent 50%),
	radial-gradient(at 79% 9%, hsla(268, 63%, 67%, 1) 0px, transparent 50%),
	radial-gradient(at 91% 88%, hsla(357, 95%, 74%, 1) 0px, transparent 50%);
}

footer {
    margin: 8% 5% !important;
    height: auto;
    text-align: center;
}

.third_screen {
    text-align: center;
    min-height: none !important;
    margin: auto !important;
    border-radius: 28px !important;
    box-shadow: inset 0 0 8px 4px rgba(0, 0, 0, 0.2);
}

.third_screen .content {
    padding: 40px 12px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.third_screen h1 {
    line-height: 1;
    margin-bottom: 20px;
}

.third_screen h1 strong {
    font-weight: 900;
    animation: 10s glow infinite;
}

.gradient_button {
    margin-top: 24px !important;
}

@keyframes glow {
    0% {
        text-shadow: 0 0 10px #0080ff;
    }
    20% {
        text-shadow: 0 0 24px #0080ff, 0 0 20px #00f2ff;
    }
    40% {
        text-shadow: 0 0 24px #00f2ff, 0 0 20px #00ffea;
    }
    60% {
        text-shadow: 0 0 24px #00ffea, 0 0 20px #0040ff;
    }
    80% {
        text-shadow: 0 0 24px #0040ff, 0 0 20px #0080ff;
    }
    100% {
        text-shadow: 0 0 10px #0080ff;
    }
}

#gradient-canvas {
	width: 100%;
	height: 100%;
	--gradient-color-1: #04f2da;
	--gradient-color-2: #0491ea;
	--gradient-color-3: #04b6e7;
	--gradient-color-4: #176bfc;
	z-index: -1;
	position: fixed;
	filter: brightness(85%) saturate(140%);
}

/* Calculator specific styles */
.calculator_section {
    width: 90%;
    max-width: 1200px;
    margin: calc(8vh + 48px + 100px) auto 10%;
    color: white;
}

.calculator_container {
    text-align: center;
}

.calculator_section h1 {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 0;
    line-height: 100%;
}

.calculator_description {
    margin: 0 auto;
    font-size: 16px;
    max-width: 800px;
}

.calculator_card {
    background: transparent;
    backdrop-filter: blur(48px);
    border-radius: 24px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    padding: 12px;
    margin: 32px 0;
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.15),
        0 0 100px rgba(48, 213, 200, 0.1);
}

.calculator_input {
    margin-bottom: 12px;
    padding: 16px 32px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.calculator_input label {
    font-size: 24px;
    font-weight: 700;
}

.calculator_input label span {
    color: #00FFEB;
    font-size: 32px;
    font-weight: 900;
}

.segmented_slider {
    position: relative;
    width: 100%;
    margin: 28px 0 8px;
    height: 14px;
}

.calculator_input input[type="range"] {
    appearance: none;
    width: 100%;
    height: 20px;
    border-radius: 6px;
    background: linear-gradient(130deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.2));
    outline: none;
    margin: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.calculator_input input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 28px;
    border-radius: 4px;
    border: 2px solid rgba(0, 255, 235, 0.3);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.8));
    backdrop-filter: blur(2px);
    cursor: pointer;
    transition: 0.4s;
    position: relative;
}

.calculator_input input[type="range"]::-moz-range-thumb {
    width: 14px;
    height: 28px;
    border-radius: 4px;
    border: 2px solid rgba(0, 255, 235, 0.3);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.8));
    backdrop-filter: blur(2px);
    cursor: pointer;
    transition: 0.4s;
}

.calculator_input input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.4);
}

.calculator_input input[type="range"]::-moz-range-thumb:hover {
    transform: scale(1.4);
}

.calculator_input input[type="range"]::-webkit-slider-thumb:active {
    transform: scale(1.2);
}

.calculator_input input[type="range"]::-moz-range-thumb:active {
    transform: scale(1.2);
}

.slider_breakpoint {
    position: absolute;
    top: -20%;
    width: 2px;
    height: 32px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 2px;
    pointer-events: none;
}

.slider_breakpoint::after {
    content: attr(data-label);
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    white-space: nowrap;
}

.bp-10 {
    left: 30.15%;
}

.bp-100 {
    left: 64.7%;
}

.bp-1000 {
    left: 89.4%;
}

.slider_labels {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 12px;
}

.result_item {
    padding: 24px 0;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.result_item h3 {
    margin: 0;
    color: #00FFEB;
}

.result_value {
    font-size: 42px;
    font-weight: 900;
    color: white;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 1));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.result_value.overhead {
    font-size: 20px;
    font-weight: 700;
}

/* Info section */
.calculator_info {
    margin-top: 60px;
}

.calculator_info h2 {
    font-size: 36px;
    font-weight: 800;
}

.info_grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
}

.info_card {
    backdrop-filter: blur(24px);
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    padding: 20px;
    text-align: left;
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.15),
        0 0 100px rgba(48, 213, 200, 0.1);
}

.info_card h4 {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    color: #00FFEB;
}

.info_card p {
    font-size: 14px;
    line-height: 1.6;
    margin: 4px 0;
}

/* Responsive design */
@media (max-width: 768px) {
    .calculator_input {
        padding: 16px 24px;
    }

    .info_grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .calculator_section {
        width: 95%;
    }

    .calculator_section h1 {
        font-size: 36px;
        margin-bottom: 16px;
    }

    .calculator_description {
        font-size: 14px;
        margin-bottom: 24px;
        line-height: 1.2;
    }

    .calculator_input {
        padding: 16px 20px;
    }

    .calculator_input label {
        line-height: 1;
    }

    .calculator_input label span {
        font-size: 28px;
    }

    .calculator_input input[type="range"]::-webkit-slider-thumb,
    .calculator_input input[type="range"]::-moz-range-thumb {
        width: 16px;
    }

    .slider_labels {
        font-size: 10px;
        margin-top: 0px;
    }

    .result_item {
        padding: 20px 0 0;
    }

    .result_item h3 {
        font-size: 16px;
        margin-bottom: 16px;
    }

    .result_value {
        font-size: 32px;
        margin-bottom: 20px;
    }

    .calculator_info h2 {
        font-size: 30px;
    }

    .info_card h4 {
        font-size: 20px;
    }
}
