@font-face {
    font-family: "BebasNeue";
    src: url("https://raw.githubusercontent.com/10clouds/codepen/tesla-hero-slider/tesla-hero-slider/src/assets/fonts/BebasNeue-Regular.otf");
}

* {
    box-sizing: border-box;
}

:root {
    --btn-color: #0047fd;
    --car-color: #0047fd;
    --bckg-height: 300px;
    --shadow-opacity: 0.2;
    --car-shadow-height: 300px;
    --primary-color: #0047fd;
    --secondary-color: #ee0101;
    --dark-bg: #000;
    --light-text: #fff;
    --card-bg: rgba(255, 255, 255, 0.05);
    --input-bg: rgba(255, 255, 255, 0.1);
}

body {
    background-color: var(--dark-bg);
    color: var(--light-text);
    font-family: "Helvetica", "Arial", sans-serif;
    font-size: 14px;
    line-height: 1.4;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

.tool-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 40px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.5);
}

.tool-header__logo img {
    height: 20px;
    width: auto;
}

.back-button {
    color: var(--light-text);
    text-decoration: none;
    font-weight: 500;
    padding: 10px 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.back-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
}

.tool-slider {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 40px 40px;
}

.tool-slide {
    display: flex;
    align-items: center;
    height: 100%;
    gap: 40px;
}

.tool-slide-aside {
    flex: 1;
    max-width: 40%;
}

.tool-slide-aside__wholename {
    font-family: "BebasNeue", sans-serif;
    font-size: 5.5rem;
    margin-bottom: 20px;
    line-height: 1;
    color: var(--light-text);
}

.tool-slide-aside__name {
    color: var(--primary-color);
}

.tool-slide-aside__desc {
    font-size: 1.6rem;
    line-height: 1.6;
    margin-bottom: 40px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.7);
}

.calculator-container {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.input-section {
    padding: 2rem;
    border-radius: 10px;
}

.input-section h2 {
    color: var(--light-text);
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 2rem;
    font-weight: 500;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--light-text);
    font-size: 1.4rem;
}

.input-group input, .input-group select {
    width: 100%;
    padding: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    font-size: 1.6rem;
    background-color: var(--input-bg);
    color: var(--light-text);
    transition: all 0.3s ease;
}

.input-group input:focus, .input-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 71, 253, 0.3);
}

button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 1.4rem 1.5rem;
    border-radius: 5px;
    font-size: 1.6rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 71, 253, 0.3);
}

button:active {
    transform: translateY(0);
}

.result-section {
    padding: 2rem;
    border-radius: 10px;
}

.result-section h2 {
    color: var(--light-text);
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 2rem;
    font-weight: 500;
}

.result-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.result-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-color: var(--primary-color);
}

.result-card h3 {
    margin: 0;
    color: var(--primary-color);
    font-size: 3rem;
    font-weight: 700;
}

.result-card p {
    margin: 0.5rem 0 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.4rem;
}

.additional-results {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.result-item:last-child {
    border-bottom: none;
}

.result-item p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.4rem;
}

.result-item h4 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.6rem;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.calculator-container {
    animation: fadeIn 0.8s ease-out;
}

.result-card {
    animation: fadeIn 0.5s ease-out;
}

.result-card:nth-child(2) {
    animation-delay: 0.2s;
}

.result-card:nth-child(3) {
    animation-delay: 0.4s;
}

/* Responsive styles */
@media (max-width: 992px) {
    .tool-slide {
        flex-direction: column;
        text-align: center;
    }
    
    .tool-slide-aside {
        max-width: 100%;
        margin-bottom: 40px;
    }
    
    .calculator-container {
        grid-template-columns: 1fr;
        width: 100%;
    }
    
    .tool-slide-aside__wholename {
        font-size: 4rem;
    }
}

@media (max-width: 768px) {
    .tool-header {
        padding: 15px 20px;
    }
    
    .tool-slider {
        padding: 70px 20px 20px;
    }
    
    .tool-slide-aside__wholename {
        font-size: 3.5rem;
    }
    
    .tool-slide-aside__desc {
        font-size: 1.4rem;
    }
    
    .calculator-container {
        padding: 1.5rem;
    }
    
    .result-cards {
        grid-template-columns: 1fr;
    }
    
    .input-section, .result-section {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .tool-slide-aside__wholename {
        font-size: 3rem;
    }
    
    .tool-slide-aside__desc {
        font-size: 1.2rem;
    }
    
    .input-group label {
        font-size: 1.2rem;
    }
    
    .input-group input, .input-group select {
        padding: 1rem;
        font-size: 1.4rem;
    }
    
    button {
        padding: 1.2rem;
        font-size: 1.4rem;
    }
    
    .result-card h3 {
        font-size: 2.5rem;
    }
    
    .result-card p {
        font-size: 1.2rem;
    }
    
    .result-item p {
        font-size: 1.2rem;
    }
    
    .result-item h4 {
        font-size: 1.4rem;
    }
}