/* General Reset */
* {
    margin: 0;
    padding: 0;
}

body {
    background-color: rgb(0, 0, 33);
    color: white;
    font-family: 'Poppins', sans-serif;
}

/* Header */
header {
    background-color: rgb(18, 18, 62);
    color: white;
    padding: 20px;
    text-align: center;
}

nav {
    margin-top: 10px;
}

nav a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    font-weight: bold;
}

nav a:hover {
    color: rgb(155, 61, 155);
    font-size: 1.1rem;
}

/* Main Layout */
main {
    display: flex;
    padding: 30px;
    gap: 30px;
}

/* Article */
article {
    flex: 3;
    background: rgba(255, 255, 255, 0.2);
    padding: 30px;
    border-radius: 14px;
    border: 2px solid whitesmoke;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    animation: slideUp 0.9s ease-out forwards;
}

/* Hobby article with blurred background */
article#hobby {
    position: relative;
    padding: 30px;
    border-radius: 16px;
    overflow: hidden;
    color: #ffffff;
}

/* Blurred background image */
article#hobby::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("image.png") center / cover no-repeat;
    filter: blur(8px);
    transform: scale(1.1); /* avoids blur edges */
    z-index: 0;
}

/* Dark overlay for contrast */
article#hobby::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

/* Highlight content */
article#hobby * {
    position: relative;
    z-index: 2;
}

/* Optional: glass-style sections */
article#hobby section {
    background: rgba(255, 255, 255, 0.15);
    padding: 18px 22px;
    border-radius: 12px;
    margin-bottom: 22px;
}

article#hobby section h2{
    color: rgb(18, 18, 62);
}

section a{
    text-decoration: none;
}

/* Sections */
section {
    margin-bottom: 30px;
}

section h2 {
    color: rgb(155, 61, 155);
    margin-bottom: 10px;
}

/* Lists */
article ol,
article ul {
    margin-left: 50px;
}

article li {
    margin-bottom: 6px;
}

/* Images */
img {
    width: 250px;
    height: 250px;
    border-radius: 120px;
    margin-bottom: 15px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

img:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 25px rgb(18, 18, 62);
}

/* Table */
table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 10px;
    text-align: center;
}

th {
    background-color: rgb(18, 18, 62);
}

/* Aside */
aside {
    flex: 1;
    background-color: rgb(0, 0, 33);
    padding: 20px;
    border: 2px solid white;
    border-radius: 10px;
    height: fit-content;
    animation: fadeIn 1.2s ease-in forwards;
}

aside h3 {
    color: rgb(155, 61, 155);
}

/* Footer */
footer {
    background-color: rgb(155, 61, 155);
    color: grey;
    text-align: center;
    padding: 15px;
    margin-top: 30px;
}

/* Forms */
form label {
    font-weight: 500;
}

input[type="text"],
input[type="email"],
textarea {
    width: 90%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    margin-top: 6px;
    font-size: 14px;
}

input[type="radio"] {
    accent-color: rgb(155, 61, 155);
}

/* Submit Button */
input[type="submit"] {
    width: 100%;
    padding: 14px;
    background: rgb(18, 18, 62);
    color: rgb(155, 61, 155);
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 30px;
    cursor: pointer;
}

input[type="submit"]:hover {
    background: rgb(155, 61, 155);
    color: rgb(18, 18, 62);
}

/* Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    main {
        flex-direction: column;
        padding: 20px;
    }
}
