/* General Body Styles */
body {
    font-family: 'Merriweather', serif;
    background: linear-gradient(135deg, #8e44ad, #6a11cb); /* Purple-dominant gradient */
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    overflow: hidden;
    position: relative;
}

/* Background 3D Shapes */
body::before,
body::after {
    content: '';
    position: absolute;
    width: 180px;
    height: 180px;
    background: rgba(255, 255, 255, 0.1); /* Semi-transparent white */
    border-radius: 50%; /* Circular shape */
    filter: blur(50px);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.2);
    z-index: 0;
}

body::before {
    top: 10%;
    left: 15%;
}

body::after {
    bottom: 15%;
    right: 20%;
}

/* Additional 3D Shape (Square) */
.shape-square {
    position: absolute;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px; /* Rounded square */
    filter: blur(40px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 0;
    transform: rotate(15deg); /* Slight tilt for aesthetic effect */
}

.shape-square.one {
    top: 20%;
    left: 40%;
}

.shape-square.two {
    bottom: 20%;
    right: 25%;
}

/* Calculator Styles */
.calculator {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.12); /* Slightly more transparent */
    border-radius: 25px;
    padding: 20px;
    width: 320px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3); /* Deeper shadow */
    backdrop-filter: blur(20px); /* Strong frosted glass effect */
    border: 1px solid rgba(255, 255, 255, 0.2); /* Subtle border */
}

/* Title Styles */
.title {
    text-align: center;
    font-size: 24px;
    color: white;
    margin-bottom: 15px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

/* Display Styles */
.display {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 24px;
    text-align: right;
    padding: 10px;
    border-radius: 15px;
    margin-bottom: 20px;
    height: 50px;
    display: flex;
    align-items: center;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Buttons Grid */
.buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

/* Button Styles */
.btn {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: none;
    padding: 15px;
    font-size: 18px;
    border-radius: 50%; /* Circular buttons */
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); /* Floating look */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    backdrop-filter: blur(10px); /* Frosted glass effect */
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.btn:active {
    transform: translateY(2px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

/* Equals Button */
.equals {
    background: rgba(106, 17, 203, 0.5); /* Vibrant violet */
    color: white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}
