/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Montserrat", sans-serif;
    background: rgb(30, 60, 114);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: #fff;
    overflow-x: hidden;
}

/* Smooth RGB Color Transition */
@keyframes gradientBG {
    0% {
        background: rgb(30, 60, 114);
    }
    25% {
        background: rgb(255, 126, 95);
    }
    50% {
        background: rgb(106, 17, 203);
    }
    75% {
        background: rgb(255, 106, 0);
    }
    100% {
        background: rgb(30, 60, 114);
    }
}

/* Renaming and resizing header */
.header-container {
    text-align: center;
    padding: 1.5rem 1rem;
    /* font-size: 2.5rem; */
    /* font-weight: 600; */
    text-transform: uppercase;
    background: white;
    color: #f1c40f;
    position: relative;
    /* box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3); */
    border-radius: 10px;
}

.header-container::after {
    content: "";
    position: absolute;
    /* top: 0; */
    /* left: 0; */
    /* right: 0; */
    /* bottom: 0; */
    /* background: rgba(0, 0, 0, 0.4); */
    border-radius: 10px;
}

.header-container h1 {
    position: relative;
    z-index: 1;
}

/* Introduction */
.intro {
    text-align: center;
    margin: 2rem auto;
    font-size: 1.2rem;
    max-width: 800px;
    color: #ddd;
}

/* Subjects Grid */
.subjects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 2rem;
    max-width: 1200px;
    margin: auto;
}

/* Subject Box - Glassmorphism */
.subject-box {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 15px;
    text-align: center;
    padding: 2rem;
    color: #fff;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    cursor: pointer;
}

/* Hover Effects with Different Colors and Translate */
.subject-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    /* background: #ff6347; Tomato */
}

.subject-box:nth-child(1):hover {
    background: #4facfe; /* Blue */
}

.subject-box:nth-child(2):hover {
    background: #ff6347; /* Tomato */
}

.subject-box:nth-child(3):hover {
    background: #32cd32; /* LimeGreen */
}

.subject-box:nth-child(4):hover {
    background: #ffb6c1; /* LightPink */
}

.subject-box:nth-child(5):hover {
    background: #f39c12; /* Orange */
}

.subject-box:nth-child(6):hover {
    background: #8e44ad; /* Purple */
}

.subject-box:nth-child(7):hover {
    background: #f1c40f; /* Yellow */
}

.subject-box:nth-child(8):hover {
    background: #3498db; /* Sky Blue */
}
.subject-box:nth-child(9):hover {
    background: #4facfe; /* Blue */
}

.subject-box:nth-child(10):hover {
    background: #ff6347; /* Tomato */
}

.subject-box:nth-child(11):hover {
    background: #32cd32; /* LimeGreen */
}

.subject-box:nth-child(12):hover {
    background: #ffb6c1; /* LightPink */
}

.subject-box:nth-child(13):hover {
    background: #f39c12; /* Orange */
}

.subject-box:nth-child(14):hover {
    background: #8e44ad; /* Purple */
}

.subject-box:nth-child(15):hover {
    background: #f1c40f; /* Yellow */
}

.subject-box:nth-child(16):hover {
    background: #3498db; /* Sky Blue */
}
.subject-box:nth-child(17):hover {
    background: #4facfe; /* Blue */
}

.subject-box:nth-child(18):hover {
    background: #ff6347; /* Tomato */
}

.subject-box:nth-child(19):hover {
    background: #32cd32; /* LimeGreen */
}

.subject-box:nth-child(20):hover {
    background: #ffb6c1; /* LightPink */
}

.subject-box:nth-child(21):hover {
    background: #f39c12; /* Orange */
}

.subject-box:nth-child(22):hover {
    background: #8e44ad; /* Purple */
}

.subject-box:nth-child(23):hover {
    background: #f1c40f; /* Yellow */
}

.subject-box:nth-child(24):hover {
    background: #3498db; /* Sky Blue */
}

.subject-box i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #fff;
}

.subject-box h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.subject-box p {
    font-size: 1rem;
    color: #e0e0e0;
}
