/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body and Font */
body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #e0f7fa, #ffffff);
    color: #333;
    padding: 0;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #007bff, #00bcd4);
    color: white;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

header .subtitle {
    font-size: 1.2rem;
    font-weight: 300;
}

/* Section Titles */
section {
    margin-bottom: 40px;
}

.subjects {
    font-size: 1.8rem;
    text-align: center;
    color: #007bff;
    margin-bottom: 20px;
}

/* Cards */
.cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.card {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #ddd;
    border-radius: 15px;
    padding: 20px;
    width: calc(45% - 20px);
    text-align: center;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    backdrop-filter: blur(10px);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.card p {
    font-size: 1rem;
    color: #555;
}

/* MATLAB Code */
textarea {
    width: 100%;
    height: 200px;
    font-family: 'Courier New', monospace;
    background: rgba(240, 240, 240, 0.9);
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 15px;
    resize: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

button {
    background: linear-gradient(135deg, #007bff, #00bcd4);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

button:hover {
    background: linear-gradient(135deg, #0056b3, #008394);
    transform: scale(1.05);
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #007bff, #00bcd4);
    color: white;
    margin-top: 30px;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    header .subtitle {
        font-size: 1rem;
    }

    .card {
        width: calc(100% - 20px);
    }

    .cards {
        gap: 15px;
    }

    textarea {
        height: 150px;
    }

    button {
        width: 100%;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.8rem;
    }

    header .subtitle {
        font-size: 0.9rem;
    }

    .container {
        padding: 0 10px;
    }

    .card h3 {
        font-size: 1.2rem;
    }

    .card p {
        font-size: 0.9rem;
    }

    textarea {
        font-size: 0.9rem;
    }

    button {
        padding: 10px;
        font-size: 0.9rem;
    }
}
