/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: linear-gradient(to right, #e3f9ff, #c0eaff);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.main-container {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

/* Calculator Section */
.calculator-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.title {
    font-size: 2.2rem;
    font-weight: bold;
    color: #1a1a2e;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px #888;
}

.calculator {
    background: #2c323f;
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    width: 400px;
}

#display {
    width: 100%;
    height: 80px;
    font-size: 48px;
    text-align: right;
    margin-bottom: 25px;
    padding: 10px 15px;
    border: none;
    border-radius: 12px;
    background: #1f242f;
    color: #fff;
    box-shadow: inset 0 4px 8px rgba(0,0,0,0.3);
}

.buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

button {
    height: 75px;
    font-size: 24px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    background: #4a5362;
    color: #fff;
    transition: all 0.2s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

button:hover {
    transform: translateY(-3px);
    background: #5a6474;
}

button.operator {
    background: #33ffd8;
    color: #000;
    font-weight: bold;
}

button.operator:hover {
    background: #2ad1b6;
}

button.equal {
    background: #ff914d;
    color: #fff;
    font-weight: bold;
    grid-column: span 2;
    width: 160px; 
}

button.equal:hover {
    background: #ff7a26;
}

/* Description Section */
.description-section {
    max-width: 450px;
    margin-top: 65px;
    background: #fff;
    padding: 25px 30px;
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.2);
    color: #333;
}

.description-section h2 {
    margin-bottom: 18px;
    font-size: 1.8rem;
    font-weight: bold;
    color: #1a1a2e;
    text-align: center;
    text-shadow: 1px 1px 1px #ccc;
}

.description-section p {
    margin-bottom: 15px;
    line-height: 1.6;
    font-size: 1rem;
}

.description-section ul {
    margin-top: 8px;
    margin-bottom: 8px;
    padding-left: 20px;
}

.description-section li {
    margin-bottom: 6px;
}

.highlight {
    color: #33a1fd;
    font-weight: bold;
}
@media (max-width: 900px) {
    .main-container {
        flex-direction: column;
        align-items: center;
        gap: 25px;
    }

    .calculator {
        width: 90%; /* scale down for mobile */
    }

    .description-section {
        width: 90%;
    }
}
