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

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f7f7f7; /* Light background, dark-reader will adjust */
    color: #333; /* Dark text, dark-reader will adjust */
    line-height: 1.6;
    padding: 30px 15px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

header {
    text-align: center;
    margin-bottom: 40px;
}

h1 {
    font-size: 3rem;
    color: #1e3d58; /* Dark blue color for the heading */
    font-weight: 600;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

header p {
    font-size: 1.2rem;
    color: #555; /* Lighter gray for the paragraph text */
    margin-top: 8px;
    transition: color 0.3s ease;
}

section.content {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.section {
    background: linear-gradient(135deg, #ffffff, #f1f1f1); /* Light background, dark reader will adjust */
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, background 0.3s ease;
}

.section:hover {
    transform: translateY(-8px);
    background: linear-gradient(135deg, #e2e2e2, #ffffff); /* Slight hover change */
}

h2 {
    font-size: 2.2rem;
    color: #007BFF; /* Blue color */
    margin-bottom: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
    padding-left: 0;
}

li {
    margin: 15px 0;
}

a {
    text-decoration: none;
    font-size: 1.15rem;
    color: #007BFF; /* Blue color for links */
    display: inline-block;
    position: relative;
    transition: color 0.3s, transform 0.3s;
    padding-bottom: 5px;
}

a:hover {
    color: #0056b3; /* Darker blue on hover */
    transform: translateX(5px);
}

a:before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: #007BFF; /* Blue underline on hover */
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

a:hover:before {
    transform: scaleX(1);
}

a:focus {
    outline: 3px solid #4CAF50;
    outline-offset: 4px;
}

@media (max-width: 768px) {
    body {
        padding: 20px 10px;
    }

    header h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .section {
        padding: 20px;
    }

    a {
        font-size: 1rem;
    }
}

/* For Dark-Reader Adjustment */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #121212; /* Dark background for dark mode */
        color: #e0e0e0; /* Light text for dark mode */
    }

    header h1 {
        color: #ffffff; /* Light color for heading */
    }

    header p {
        color: #dcdcdc; /* Light gray for paragraph */
    }

    .section {
        background: linear-gradient(135deg, #111111, #222222); /* Darker gradient for sections */
    }

    .section:hover {
        background: linear-gradient(135deg, #222222, #333333); /* Slight hover effect */
    }

    h2 {
        color: #80b3ff; /* Light blue for headings in dark mode */
    }

    a {
        color: #80b3ff; /* Blue for links in dark mode */
    }

    a:hover {
        color: #4d94ff; /* Darker blue on hover */
    }
}
