:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --text-color: #333;
    --background-color: #f4f4f4;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    margin: 0;
    padding: 0;
}

header {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem;
}

nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap; /* Allow links to wrap on small screens */
}

nav a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--secondary-color);
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

footer {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 1rem;
}

.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap; /* Stack on smaller screens */
    margin-bottom: 2rem;
}

.hero-content {
    display: flex;
    flex-wrap: wrap; /* Adjust layout for smaller screens */
    justify-content: center;
    align-items: center;
    width: 100%;
}

.hero-text {
    flex: 1;
    text-align: center; /* Center-align text on smaller devices */
}

.hero-image {
    margin-left: 2rem;
    margin-top: 1rem;
    flex: 0 0 auto; /* Prevent stretching */
    text-align: center;
}

.profile-pic {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--primary-color);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Quick Links Section */
.quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive grid */
    gap: 1rem;
    margin-bottom: 2rem;
}

.link-card {
    padding: 1rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* Responsive Media Queries */
@media screen and (max-width: 768px) {
    header {
        text-align: center;
    }

    nav {
        flex-direction: column; /* Stack links vertically */
    }

    .hero {
        flex-direction: column; /* Stack hero text and image */
    }

    .hero-text h1 {
        font-size: 2rem; /* Adjust font size */
    }

    .profile-pic {
        width: 150px;
        height: 150px;
    }

    main {
        padding: 1rem;
    }

    .quick-links {
        grid-template-columns: 1fr; /* Make cards stack vertically */
    }
}

@media screen and (max-width: 480px) {
    .hero-text h1 {
        font-size: 1.8rem; /* Further reduce font size */
    }

    body {
        padding: 1rem;
    }

    nav a {
        font-size: 14px; /* Reduce link font size */
    }
}
