@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@400;700&display=swap');

/* CSS Variables for Easy Customization */
:root {
    --primary-color: #00796b;
    --secondary-color: #3498db;
    --tertiary-color: #4CAF50;
    --background-color: #ffffff;
    --hover-color: #2980b9;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --footer-bg-color: #f1f1f1;
    --footer-text-color: #00796b;
    --footer-hover-color: #E91E63;
    --social-icon-hover-color: #4CAF50;
}

/* Global Styles */
body {
    font-family: 'Raleway', sans-serif;
    background: linear-gradient(135deg, #a8e063, #56ab2f);
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: #fff;
}

.container {
    background: var(--background-color);
    border-radius: 15px;
    box-shadow: 0 5px 15px var(--shadow-color);
    padding: 30px;
    width: 90%;
    max-width: 600px;
    margin: 20px;
    text-align: center;
}

/* Heading and Label Styles */
h1 {
    color: var(--primary-color);
    font-size: 2.2em;
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 10px;
    color: var(--primary-color);
    font-weight: bold;
}

/* Input Fields */
.input-field {
    margin-bottom: 20px;
    text-align: left;
}

.input-field input,
.input-field select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    outline: none;
    transition: border-color 0.2s, background-color 0.2s;
}

.input-field input:focus,
.input-field select:focus {
    border-color: var(--primary-color);
    background-color: #f1f8f6;
}

/* Buttons */
button {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    margin: 5px;
    display: inline-block;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-weight: bold;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Calculate Button */
button#calculateBtn {
    background-color: var(--tertiary-color);
    color: white;
    border: 2px solid transparent;
}

button#calculateBtn:hover {
    background-color: #3e8e41;
    border: 2px solid #3e8e41;
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(62, 142, 65, 0.2);
}

/* Reset Button */
button#resetBtn {
    background-color: #F44336;
    color: white;
    border: 2px solid transparent;
}

button#resetBtn:hover {
    background-color: #D32F2F;
    border: 2px solid #D32F2F;
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(211, 47, 47, 0.2);
}

/* Common Hover Effect for All Buttons */
button:hover {
    cursor: pointer;
}

/* Active State for Buttons */
button:active {
    transform: translateY(1px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}


.result-display {
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    background: #f9f9f9;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 20px auto;
    width: 90%;
    max-width: 500px;
}

.result-display h3 {
    font-size: 2.2em;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    display: inline-block;
    padding: 12px 25px;
    border-radius: 25px;
    background: linear-gradient(135deg, #00796b, #4CAF50);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.result-display h3:hover {
    transform: scale(1.05);
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.3);
}

.result-display p {
    font-size: 1.2em;
    color: #333;
    margin: 10px 0;
    padding: 10px;
    border-radius: 8px;
    background-color: #e0f7fa;
    border-left: 5px solid transparent;
    transition: all 0.3s ease;
}

.result-display p#resultValue {
    border-left-color: #00796b;
}

.result-display p#percentage {
    background-color: #c8e6c9;
    border-left-color: #4CAF50;
}

.result-display p#grade {
    background-color: #fff3e0;
    border-left-color: #FF5722;
}

.result-display p:hover {
    transform: scale(1.03);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}




/* Semester Row Layout */
.semester-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

@media (max-width: 600px) {
    .semester-row {
        flex-direction: column;
    }
}

/* Footer Section */
/* Footer Section */
.footer {
    margin-top: 20px;
    padding: 20px;
    text-align: center;
    font-size: 16px;
    background: linear-gradient(135deg, #2c3e50, #3498db);
    color: #fff;
    box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.1);
}

.footer p {
    margin-bottom: 15px;
    font-weight: 500;
}

.footer p a {
    color: #ffd700;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer p a:hover {
    color: #fff;
}

.footer .social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer .social-icons a {
    display: inline-block;
    font-size: 24px;
    color: #ffd700;
    text-decoration: none;
    transition: transform 0.3s ease, color 0.3s ease;
}

.footer .social-icons a:hover {
    color: #fff;
    transform: scale(1.2);
}

/* Add animation */





/* FAQ Section */
.faq-section {
    margin-top: 30px;
    padding: 25px;
    background: #f9f9f9; /* Light background for better readability */
    border-radius: 10px;
    border-top: 4px solid var(--primary-color);
    box-shadow: 0 4px 8px var(--shadow-color);
    text-align: left;
    animation: fadeInUp 0.7s ease;
}

.faq-section h2 {
    color: var(--primary-color);
    font-size: 2em;
    margin-bottom: 20px;
    text-align: center;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 1px 2px 2px rgba(0, 0, 0, 0.1);
}

.faq {
    margin-bottom: 20px;
    padding: 15px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.faq:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.faq h3 {
    color: var(--primary-color);
    font-size: 1.3em;
    margin-bottom: 8px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
}

.faq h3::before {
    content: '❓'; /* Add a question mark icon */
    font-size: 1.2em;
    color: var(--secondary-color);
}

.faq p {
    font-size: 1em;
    color: #555;
    line-height: 1.6;
    padding-left: 20px;
    border-left: 4px solid var(--primary-color);
    margin: 10px 0 0;
    transition: color 0.3s ease;
}

.faq p strong {
    color: var(--tertiary-color);
    font-weight: bold;
}

.faq ul {
    padding-left: 30px;
    margin-top: 10px;
}

.faq ul li {
    color: #444;
    font-size: 1em;
    line-height: 1.6;
    list-style-type: disc;
    margin-bottom: 8px;
    transition: transform 0.2s ease;
}

.faq ul li:hover {
    transform: translateX(5px);
    color: var(--secondary-color);
}

/* Animation for FAQ fade-in */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Share Section */
.share-section {
    margin-top: 20px;
    padding: 20px;
    background: linear-gradient(135deg, var(--secondary-color), #2ecc71);
    border-radius: 10px;
    text-align: center;
    color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-family: 'Arial', sans-serif;
}

.share-section h2 {
    margin-bottom: 10px;
    font-size: 24px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
}

.share-section p {
    margin-bottom: 15px;
    font-size: 16px;
    color: #eaf2f8;
    font-weight: 500;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.share-buttons .share-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 50%;
    text-decoration: none;
    font-size: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.share-buttons .share-icon:hover {
    background: #fff;
    color: var(--secondary-color);
    transform: scale(1.1);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
}

/* Mobile-Friendly Share Buttons */
@media (max-width: 600px) {
    .share-buttons {
        flex-direction: column;
    }

    .share-buttons .share-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
}

