@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');
@import "cssreset.css";
@import "nav.css";

/* Adjust scroll position for sections targeted by anchor links */
#about-section {
    scroll-margin-top: 4rem; /* Adjust this value to match the height of your sticky header */
}

html {
    scroll-padding-top: 4rem; /* Optional: Adds padding for smoother scrolling */
}

.about-section {
    max-width: 900px; /* Limits width for readability */
    margin: 50px auto; /* Centers content with spacing from header */
    padding: 20px; /* Adds space around content */
}

.about-section h1 {
    font-size: 2.5rem; /* Large heading size */
    font-style: underlline; /* Underlined for emphasis */
    color: #2c3e50; /* Dark modern colour */
    padding-bottom: 10px;
}

.about-section p {
    font-size: 1.2rem; /* Readable paragraph size */
    line-height: 1.8; /* Improves readability */
    color: #34495e; /* Complementary dark grey */
    margin-bottom: 10px; /* Space between paragraphs */
}
.quote-section {
    max-width: 900px; /* Limits width for readability */
    margin: 50px auto; /* Centers content with spacing from header */
    padding: 20px; /* Adds space around content */
}

.quote-section h1 {
    font-size: 2.5rem; /* Large heading size */
    color: #2c3e50; /* Dark modern colour */
    padding-bottom: 10px;
}

.quote-section p {
    font-size: 1.2rem; /* Readable paragraph size */
    line-height: 1.8; /* Improves readability */
    color: #34495e; /* Complementary dark grey */
    margin-bottom: 10px; /* Space between paragraphs */
}
.quote-list {
    list-style-type: disc; /* Default disc bullets */
    margin: 20px; /* Adds spacing around the list */
    padding-left: 40px; /* Indents the list */
}

.quote-list li {
    margin-bottom: 10px; /* Adds spacing between list items */
    line-height: 1.6; /* Improves readability */
}

.quote-list li::marker {
    color: #3498db; /* Custom bullet color */
    font-size: 1.2rem; /* Larger bullet size */
}


.myWork {
    max-width: 900px; /* Match other sections' width */
    margin: 20px auto; /* Add vertical spacing and center */
    padding: 20px; /* Internal spacing */
    text-align: center; /* Center-align the link */
}


.myWork a {
    display: inline-block; /* Makes the link behave like a button */
    font-size: 2rem;
    font-weight: bold; /* Makes the link text bold */
    text-decoration: underline; /* Adds underline to the link */
    color: black; /* Stylish blue color for links */
}
.myWork a:hover {
    color: #3498db; /* Slightly lighter blue on hover */
}
.myWork a:focus {
    outline: none; /* Removes default focus outline */
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5); /* Adds shadow effect on focus */
}


/* Responsive design for mobile devices */
@media only screen and (max-width: 768px) {
    /* General adjustments for smaller screens */
    html {
        scroll-padding-top: 4rem; /* Optional: Adds padding for smoother scrolling */
    }

    body {
        font-size: 16px; /* Adjust font size for readability */
        line-height: 1.6; /* Improve text spacing */
        padding: 0; /* Remove unnecessary padding */
    }

    /* About section adjustments */
    .about-section {
        max-width: 100%; /* Allow full width on smaller screens */
        margin: 20px auto; /* Reduce vertical spacing */
        padding: 15px; /* Adjust padding for smaller screens */
        padding-top: 5rem; /* Increase padding for smaller screens if needed */
        scroll-margin-top: 5rem; /* Ensure proper spacing for anchor links */
    }

    .about-section h1 {
        font-size: 2rem; /* Reduce heading size */
        text-align: center; /* Center-align heading for better appearance */
    }

    .about-section p {
        font-size: 1rem; /* Adjust paragraph size for readability */
        margin-bottom: 15px; /* Reduce spacing between paragraphs */
    }

    /* Quote section adjustments */
    .quote-section {
        max-width: 100%; /* Allow full width on smaller screens */
        margin: 20px auto; /* Reduce vertical spacing */
        padding: 15px; /* Adjust padding for smaller screens */
    }

    .quote-section h1 {
        font-size: 2rem; /* Reduce heading size */
        text-align: center; /* Center-align heading for better appearance */
    }

    .quote-list {
        padding-left: 20px; /* Reduce indentation of list items */
    }

    .quote-list li {
        font-size: 1rem; /* Adjust list item font size */
        margin-bottom: 10px; /* Reduce spacing between list items */
    }

    /* My Work section adjustments */
    .myWork {
        max-width: 100%; /* Allow full width on smaller screens */
        margin: 20px auto; /* Reduce vertical spacing */
        padding: 15px;
        text-align: center; /* Center-align content */
    }

    .myWork a {
        font-size: 1rem;
        display: block; /* Ensure link spans the full width of its container */
        margin-top: 10px;
    }

    .myWork a:hover {
        color: #2980b9; /* Darker blue on hover for better visibility */
    }
}
