/* Global styles for the personal website */

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

body {
    font-family: 'Montserrat', sans-serif;
    background: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

header {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: #fff;
    padding: 20px 0;
}

header .container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

header h1 {
    font-size: 2rem;
    margin: 0;
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: opacity 0.2s;
}

nav a:hover {
    opacity: 0.8;
}

main .intro {
    text-align: center;
    padding: 40px 0;
}

main .intro h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

main .intro p {
    font-size: 1.2rem;
    color: #555;
}

section {
    margin-top: 40px;
}

section h2 {
    margin-bottom: 20px;
    font-size: 1.8rem;
    color: #333;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    grid-gap: 20px;
}

.card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-5px);
}

.card h3 {
    margin-bottom: 10px;
    font-size: 1.4rem;
    color: #2575fc;
}

.card p {
    color: #555;
    margin-bottom: 10px;
}

.card a {
    display: inline-block;
    color: #2575fc;
    text-decoration: none;
    font-weight: bold;
}

.card a:hover {
    text-decoration: underline;
}

footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

footer p {
    margin: 0;
}

.date {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 10px;
}

article {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

article h2 {
    color: #2575fc;
    margin-bottom: 10px;
}

article .content p {
    margin-bottom: 15px;
}

article a {
    color: #2575fc;
    font-weight: bold;
}

form label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
}

form input[type='text'],
form input[type='password'],
form select,
form textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-top: 5px;
    font-family: inherit;
}

form textarea {
    resize: vertical;
}

form button {
    padding: 10px 20px;
    background: #2575fc;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.2s;
}

form button:hover {
    background: #6a11cb;
}

.error {
    color: #e74c3c;
    margin-bottom: 15px;
}

.success {
    color: #27ae60;
    margin-bottom: 15px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.admin-table th,
.admin-table td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
    text-align: left;
}

.admin-table tr:hover {
    background-color: #f1f1f1;
}