/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;

}
/* Navbar */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem; /* Ensure consistent padding */
    background: #e6e6e6; /* Match the background color of the #about section */
    color: black; /* Match the text color of the #about section */
    border-radius: 10px; /* Match the border radius of the #about section */
    position: relative; /* Use relative position */
    top: 0; /* Ensure it starts at the top */
    left: 0; /* Align to the left */
    width: 100%; /* Ensure it spans the full width */
    box-sizing: border-box; /* Include padding and border in the width */
    max-width: 100%; /* Ensure it does not exceed the viewport width */
    z-index: 1000; /* Ensure it stays above other elements */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 0 8px rgba(30, 144, 255, 0.8); /* Add a shiny blue outline */
    border: 1px solid #ccc; /* Match the border of the #about section */
    overflow: hidden;
}
nav ul {
    list-style: none;
    display: flex;
    gap: 1rem;
}
nav ul li a {
    color: black; /* Match the text color of the #about section */
    font-size: 15px; /* Match font size with #about */
    font-style: italic; /* Match font style with #about */
    font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif; /* Match font family with #about */
    text-decoration: none; /* Remove underline */
    transition: color 0.3s ease, background 0.3s ease; /* Smooth transition for hover effects */
    font-weight: bold; /* Increase font weight of nav links */
    padding: 0.5rem 1rem; /* Add padding to create space for the hover box */
    border-radius: 5px; /* Add rounded corners for the hover box */
}
nav ul li a:hover {
    background: blue; /* Add a blue background on hover */
    color: white; /* Change text color to white */
}

/* Hero Section */
#hero {
    display: flex;
    align-items: center;
    padding: 3rem 1rem; /* Adjust padding for better alignment */
    margin: 1.5rem; /* Maintain margin */
    color: black;
    font-size: 30px;
    background: url('./Assets/background4.jpg') no-repeat center center; /* Background image */
    background-size: cover; /* Ensure the image covers the entire section */
    font-style: italic;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    border: 1px solid #ccc;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: margin 0.3s, background 0.3s, box-shadow 0.3s, transform 0.3s ease;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Ensure equal spacing on both sides */
    gap: 1rem; /* Adjust this value to control the spacing between the image and text flexbox */
    padding-right: 10px; /* Reduce padding on the left and right */
}

.profile-image {
    width: 100%; /* Ensure the image takes full width of its container */
    max-width: 300px; /* Limit the maximum width for responsiveness */
    height: 350px; /* Maintain aspect ratio */
    border-radius: 50%; /* Keep the image circular */
    object-fit: cover; /* Ensure the image fills the circle without distortion */
    object-position: center; /* Center the image within the circle */
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15); /* Add a subtle shadow */
    transition: transform 0.5s ease, box-shadow 0.5s ease; /* Smooth transition for hover effects */
    margin: 0 auto; /* Center the image horizontally */
}

.profile-image:hover {
    transform: translateX(10px); /* Slightly zoom the image on hover */
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2); /* Enhance the shadow effect on hover */
}

.hero-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left; /* Align text to the left */
    color: black; /* Set the text color to black */
    height: 300px; /* Match the height of the image */
    background: #e6e6e6; /* Add the same background color as the #about section */
    border-radius: 10px; /* Match the rounded corners */
    padding: 1rem; /* Adjust padding for balance */
    flex: 1; /* Ensure this allows the text flexbox to take up the remaining space */
    transition: transform 0.8s ease, opacity 0.8s ease, color 0.8s ease, background 0.8s ease, box-shadow 0.8s ease; /* Smooth transitions */
    margin-left: 200px; /* Maintain initial position */
    margin-right: 40px; /* Maintain spacing from the image */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 0 8px rgba(30, 144, 255, 0.8); /* Add a shiny blue outline */
}

.hero-text:hover {
    transform: translateX(-10px) scale(1.05); /* Increase left movement distance */
    opacity: 1; /* Ensure the text remains visible */
    color: black; /* Ensure the text color remains black on hover */
    background: antiquewhite; /* Maintain the hover background color */
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15); /* Add a shadow effect */
}

.hero-text h2 {
    margin-bottom: 1rem;
    font-size: 36px; /* Adjust font size for the heading */
    font-weight: bold;
}

.hero-text p {
    font-size: 20px; /* Adjust font size for the paragraph */
    line-height: 1.6;
}

#about-skills-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem; /* Reduced gap between sections */
    margin: 1.5rem; /* Reduced margin */
}

#about, #skills, .project-card, .career-objectives-card, .contact-card {
    background: #e6e6e6; /* Restore the original background color */
    border-radius: 10px; /* Maintain the border radius */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 0 8px rgba(30, 144, 255, 0.8); /* Add a shiny blue outline */
    transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease; /* Smooth transition for hover effects */
}

#about:hover, #skills:hover, .project-card:hover, .career-objectives-card:hover {
    background: antiquewhite; /* Restore the hover background color */
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2); /* Add a more prominent shadow */
    transform: scale(1.05); /* Slightly zoom the flexbox */
    cursor: pointer; /* Change the cursor to indicate interactivity */
}

#about {
    flex: 1; /* Allow the about section to take up available space */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 2rem;
    gap: 1rem;
    border: 1px solid #ccc;
    max-width: 450px; /* Increased size to reduce empty space */
    margin: 1.5rem; /* Reduced margin */
}
#about h2 {
    text-align: center; /* Center align the heading */
    font-size: 24px;
    font-style: italic;
    font-family: "Georgia", serif;
    color: #333;
    margin: 0;
}
#about p {
    font-size: 18px;
    font-style: italic;
    font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
    line-height: 1.8;
    color: black;
    text-align: left;
    margin: 0;
}

#skills {
    max-width: 450px; /* Match the max-width of the #about section */
    margin: 1.5rem; /* Reduced margin */
    padding: 2rem; /* Add consistent padding like #about */
    flex: none; /* Prevent flex items from stretching */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center align content vertically */
    align-items: center; /* Center align content horizontally */
    gap: 1rem;
    border: 1px solid #ccc;
    font-size: 18px; /* Match font size with #about */
    font-style: italic; /* Match font style with #about */
    font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif; /* Match font family with #about */
    line-height: 1.8; /* Match line height with #about */
    color: black; /* Match text color with #about */
    text-align: left; /* Match text alignment with #about */
}
#skills h2 {
    margin-bottom: 0.5rem; /* Reduce the space below the heading */
}
#skills ul {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem;
    justify-content: center; /* Center align the skills */
    margin-top: 0; /* Remove any additional margin above the list */
}
#skills li {
    background: #eee;
    padding: 10px;
    border-radius: 5px;
    font-size: 16px;
    font-family: "Arial", sans-serif;
    text-align: center;
    transition: transform 0.3s, background 0.3s;
}
#skills li:hover {
    background: #ddd;
    transform: scale(1.05);
    cursor: pointer; /* Added pointer cursor */
}

/* Project Grid */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.5rem; /* Reduced gap between project cards */
    padding: 1.5rem; /* Reduced padding */
    text-align: center; /* Ensure all child elements, including h2, are centered */
}
.project-card {
    padding: 1rem;
    border-radius: 10px; /* Maintain the border radius */
    text-align: center;
    margin: 0.5rem; /* Add spacing between project cards */
    display: flex;
    flex-direction: column; /* Stack elements vertically */
    align-items: center; /* Center-align content horizontally */
    gap: 1rem; /* Add spacing between elements */
}

.project-image {
    width: 100%; /* Ensure the image is responsive */
    max-width: 300px; /* Limit the maximum width for project images */
    height: auto; /* Maintain aspect ratio */
    border-radius: 10px; /* Add rounded corners */
    object-fit: cover; /* Ensure the image fills its container without distortion */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Add a subtle shadow */
    margin: 0 auto; /* Center the image horizontally */
}

.project-grid h2 {
    display: block; /* Ensure it behaves as a block element */
    margin: 0 auto; /* Center horizontally */
    margin-left: auto; /* Add left margin to test movement */
    text-align: center; /* Center the text */
}

/* Projects Section */
#projects {
    font-size: 18px; /* Match font size with #about */
    font-style: italic; /* Match font style with #about */
    font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif; /* Match font family with #about */
    line-height: 1.8; /* Match line height with #about */
    color: black; /* Match text color with #about */
    text-align: left; /* Match text alignment with #about */
    margin: 1.5rem; /* Reduced margin */
}
.project-title {
    display: flex; /* Use flexbox for alignment */
    flex-direction: column; /* Stack elements vertically */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center horizontally */
    text-align: center; /* Ensure text alignment */
    margin: 1rem auto; /* Center the section and add spacing */
}
.project-title h2 {
    margin-bottom: 0.5rem; /* Add spacing below the heading */
    text-align: center; /* Center-align the heading */
}
.project-title p {
    text-align: center; /* Center-align the text */
    margin: 0.5rem auto; /* Add spacing and center horizontally */
    font-size: 16px; /* Set a readable font size */
    line-height: 1.6; /* Improve readability */
    color: #555; /* Set a subtle text color */
    max-width: 600px; /* Limit the width of the text */
}
.project-title h2 {
    font-size: 24px; /* Match heading font size with #about h2 */
    font-style: italic; /* Match heading font style */
    font-family: "Georgia", serif; /* Match heading font family */
    color: #333; /* Match heading color */
}
.project-title p {
    font-size: 18px; /* Match paragraph font size with #about p */
    font-style: italic; /* Match paragraph font style */
    font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif; /* Match paragraph font family */
    line-height: 1.8; /* Match paragraph line height */
    color: black; /* Match paragraph text color */
}
.project-title h2, .project-title p {
    transition: color 0.3s ease; /* Smooth transition for color changes */
}

body:not(.dark-mode) .project-title h2, 
body:not(.dark-mode) .project-title p {
    color: #333; /* Dark text for light mode */
}

body.dark-mode .project-title h2, 
body.dark-mode .project-title p {
    color: #ddd; /* Light text for dark mode */
}
.project-card h3 {
    font-size: 20px; /* Adjust font size for project titles */
    font-style: italic; /* Match font style */
    font-family: "Georgia", serif; /* Match font family */
    color: #333; /* Match text color */
}
.project-card p {
    font-size: 18px; /* Match paragraph font size */
    font-style: italic; /* Match paragraph font style */
    font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif; /* Match paragraph font family */
    line-height: 1.8; /* Match paragraph line height */
    color: black; /* Match paragraph text color */
}

/* Contact Form */
form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
}
form input, form textarea {
    padding: 0.5rem;
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 5px;
}
button {
    padding: 0.5rem;
    background: #333;
    color: white;
    border: none;
    cursor: pointer;
}
button:hover {
    background: #ffcc00;
    color: black;
    cursor: pointer; /* Added pointer cursor */
}

.contact-card {
    width: 50%; /* Fixed size covering half of the section */
    float: right; /* Align to the right */
    padding: 20px;
    box-sizing: border-box;
    border-radius: 10px; /* Maintain the border radius */
    margin: 1.5rem; /* Reduced margin */
    background: #e6e6e6; /* Match the background color of the career objectives flexbox */
    border: 1px solid #ccc; /* Ensure consistent border style */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 0 8px rgba(30, 144, 255, 0.8); /* Add a shiny blue outline */
}

.contact-card h2 {
    text-align: center;
    margin-bottom: 20px;
}

#contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#contact-form input,
#contact-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}

#contact-form textarea {
    height: 150px; /* Fixed height */
    resize: none; /* Disable resizing completely */
    overflow-y: scroll; /* Force vertical scrollbars */
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}

#contact-form button {
    background-color: #333;
    color: #fff;
    padding: 10px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#contact-form button:hover {
    background-color: #555;
}

/* CV Section */
#cv-contact-container {
    display: flex; /* Use flexbox for alignment */
    justify-content: space-between; /* Space out the Career Objectives and Contact sections */
    align-items: flex-start; /* Align items at the top */
    gap: 0.5rem; /* Reduced gap between the flexboxes */
    padding: 1.5rem; /* Maintain reduced padding */
    gap: 1rem;
}

#cv-contact-container .cv-card,
#cv-contact-container .contact-card {
    max-width: 450px; /* Match the max-width of the #about section */
    margin: 1.5rem; /* Reduced margin */
    padding: 2rem; /* Add consistent padding like #about */
    flex: none; /* Prevent flex items from stretching */
    margin-left: 100px;
}

.cv-card, .contact-card {
    text-align: center; /* Center-align the text */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth transition for hover effects */
}

.cv-card h2, .contact-card h2 {
    font-size: 20px; /* Match font size with project card titles */
    font-style: italic; /* Match font style */
    font-family: "Georgia", serif; /* Match font family */
    color: #333; /* Match text color */
    margin-bottom: 0.5rem; /* Add spacing below the heading */
}

.cv-card a, .contact-card a {
    color: blue; /* Set the text color to blue to appear like a link */
    text-decoration: none; /* Remove underline from the link */
    cursor: pointer; /* Ensure the cursor is a pointer */
}

.cv-card a:hover, .contact-card a:hover {
    color: blue; /* Maintain the blue color on hover */
    text-decoration: none; /* Ensure no underline appears on hover */
}

.cv-card:hover, .contact-card:hover {
    background: antiquewhite; /* Match hover background color with project cards */
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15); /* Restore the hover shadow effect */
    transform: scale(1.05); /* Slightly enlarge the card to appear as if coming forward */
    cursor: pointer; /* Change the cursor to a pointer */
}

.contact-card {
    max-width: 450px; /* Match the max-width of the .cv-card */
    margin: 1.5rem; /* Reduced margin */
    padding: 2rem; /* Add consistent padding like .cv-card */
    flex: none; /* Prevent flex items from stretching */
}

.cv-preview {
    width: 100%; /* Make the preview span the full width of the card */
    height: 150px; /* Set a small height for the preview */
    border: 1px solid #ccc; /* Add a border around the preview */
    margin-bottom: 1rem; /* Add spacing below the preview */
    border-radius: 5px; /* Match the border radius of the card */
}

/* Career Objectives Section */
.career-objectives-card {
    flex: 1; /* Allow the section to take up available space */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 2rem;
    gap: 1rem;
    border: 1px solid #ccc;
    max-width: 450px; /* Match the size of the #about section */
    margin: 1.5rem; /* Reduced margin */
}

.career-objectives-card h2 {
    text-align: center; /* Center align the heading */
    font-size: 24px;
    font-style: italic;
    font-family: "Georgia", serif;
    color: #333;
    margin: 0;
}

.career-objectives-card p {
    font-size: 18px;
    font-style: italic;
    font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
    line-height: 1.8;
    color: black;
    text-align: left;
    margin: 0;
}

/* Footer */
#footer {
    background: #f4f4f4; /* Match the background color of the contact section */
    text-align: center; /* Center-align the text */
    padding: 1rem; /* Add padding around the footer */
    font-size: 16px; /* Set a readable font size */
    font-style: italic; /* Match font style */
    font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif; /* Match font family */
    color: black; /* Match text color */
    border-top: 1px solid #ccc; /* Add a top border to separate the footer */
    margin: 1.5rem; /* Reduced margin */
    border-radius: 10px; /* Match the border radius of the hero section */
}

/* Dark Mode */
.dark-mode {
    background: #222;
    color: white;
}

.dark-mode #theme-toggle {
    background: #555; /* Darker button background in dark mode */
    color: white; /* Light text for contrast */
}

/* Theme Toggle Button */
#theme-toggle {
    background: black; /* Bright yellow background for light mode */
    color: white; /* Black text for contrast */
    border: none; /* Remove default border */
    border-radius: 50%; /* Make it circular */
    padding: 0.5rem 1rem; /* Add padding for better appearance */
    font-size: 18px; /* Set a readable font size */
    cursor: pointer; /* Change cursor to pointer */
    transition: background 0.3s ease, transform 0.3s ease; /* Smooth transitions */
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Navbar */
    nav {
        flex-direction: column; /* Stack all elements vertically */
        align-items: center; /* Center-align items */
        padding: 0.5rem; /* Adjust padding for smaller screens */
        margin: 0.2rem; /* Further reduce margin for smaller screens */
    }

    nav h1 {
        display: inline-block; /* Ensure h1 and icon are inline */
        font-size: 14px; /* Reduce font size for smaller screens */
        margin: 0; /* Remove extra margin */
    }

    #theme-toggle {
        display: inline-block; /* Ensure the icon is inline with h1 */
        font-size: 14px; /* Adjust font size for smaller screens */
        padding: 0.3rem; /* Adjust padding for compactness */
        margin-left: auto; /* Push the icon to the right */
    }

    nav ul {
        flex-direction: row; /* Arrange navigation links horizontally */
        gap: 0.5rem; /* Adjust spacing between links */
        justify-content: flex-start; /* Align links to the left */
        flex-wrap: wrap; /* Allow wrapping if necessary */
        margin-top: 0.5rem; /* Add spacing below h1 and icon */
        width: 100%; /* Ensure the links span the full width */
    }

    nav ul li a {
        font-size: 10px; /* Further reduce font size for smaller screens */
        font-weight: 300; /* Reduce font weight for better fit */
        padding: 0.1rem 0.3rem; /* Minimize padding for compact layout */
        white-space: nowrap; /* Prevent text wrapping */
    }

    #theme-toggle {
        position: absolute; /* Position the icon absolutely */
        top: 0.5rem; /* Position it near the top */
        right: 1rem; /* Align it to the right corner */
        font-size: 14px; /* Adjust font size for smaller screens */
        padding: 0.3rem; /* Adjust padding for compactness */
    }

    #hero {
        flex-direction: column; /* Stack image and text vertically */
        padding: 2rem 1rem; /* Reduce padding for smaller screens */
        font-size: 20px; /* Adjust font size for smaller screens */
        transform: none;
    }
    .hero-content {
        flex-direction: column; /* Stack image and text vertically */
        gap: 1rem; /* Maintain spacing between elements */
    }
    .profile-image {
        width: 100%; /* Ensure the image takes full width of its container */
        max-width: 200px; /* Limit the maximum width for responsiveness */
        height: auto; /* Maintain aspect ratio */
    }
    .hero-text {
        margin-left: 0; /* Remove left margin */
        height: auto; /* Allow height to adjust dynamically */
        text-align: center; /* Center-align text */
        transform: none; /* Disable the transform effect on mobile responsiveness */
        height: auto; /* Allow height to adjust dynamically */
        padding: 1rem; /* Adjust padding for better fit */
        margin: 0 1rem; /* Add margins to fit within the container */
        overflow: hidden; /* Ensure no overflow of text */
        transform: none; /* Disable the transform effect on mobile responsiveness */
    }

    /* About and Skills Sections */
    #about-skills-container {
        flex-direction: column; /* Stack sections vertically */
        gap: 1rem; /* Maintain spacing between sections */
    }
    #about, #skills {
        max-width: 100%; /* Allow sections to take full width */
        margin: 1rem 0; /* Adjust margins for vertical stacking */
        padding: 1.5rem; /* Reduce padding for smaller screens */
    }

    /* Projects Section */
    .project-grid {
        grid-template-columns: 1fr; /* Display one project per row */
        gap: 1rem; /* Maintain spacing between project cards */
    }

    /* CV and Contact Sections */
    #cv-contact-container {
        flex-direction: column; /* Stack sections vertically */
        gap: 1rem; /* Maintain spacing between sections */
    }
    .cv-card, .contact-card {
        max-width: 100%; /* Allow sections to take full width */
        margin: 1rem 0; /* Adjust margins for vertical stacking */
        padding: 1.5rem; /* Reduce padding for smaller screens */
    }

    /* Contact Form */
    #contact-form {
        width: 100%; /* Make the form take full width */
        padding: 1rem; /* Adjust padding for smaller screens */
        margin-right: 500px;
        margin-left: 0px;
    }
    #contact-form input,
    #contact-form textarea {
        width: 100%; /* Ensure inputs and textarea take full width */
        font-size: 14px; /* Reduce font size for smaller screens */
    }
    #contact-form button {
        width: 100%; /* Make the button take full width */
        font-size: 14px; /* Reduce font size for smaller screens */
    }
    .contact-card {
        width: 100%; /* Make the contact card take full width */
        margin: 1rem 0; /* Adjust margins for vertical stacking */
        padding: 1.5rem; /* Reduce padding for smaller screens */
    }

    /* Footer */
    #footer {
        font-size: 14px; /* Reduce font size for smaller screens */
        padding: 1rem; /* Adjust padding for smaller screens */
    }
}

@media (max-width: 480px) {
    /* Further adjustments for very small screens */
    .profile-image {
        max-width: 150px; /* Further reduce the size of the profile image on very small screens */
    }
    .project-image {
        max-width: 200px; /* Further reduce the size of project images on very small screens */
    }
    nav ul li a {
        font-size: 16px; /* Further reduce font size */
    }
    #hero {
        font-size: 20px; /* Further reduce font size */
    }
    .hero-text h2 {
        font-size: 28px; /* Reduce heading size */
    }
    .hero-text p {
        font-size: 16px; /* Reduce paragraph size */
    }
    #about h2, #skills h2 {
        font-size: 20px; /* Reduce heading size */
    }
    #about p, #skills p {
        font-size: 16px; /* Reduce paragraph size */
    }
    .project-card {
        padding: 1rem; /* Reduce padding */
    }
    .project-card h3 {
        font-size: 18px; /* Reduce font size */
    }
    .project-card p {
        font-size: 14px; /* Reduce font size */
    }
    #contact-form input,
    #contact-form textarea {
        font-size: 12px; /* Further reduce font size */
        padding: 0.5rem; /* Adjust padding for smaller screens */
    }
    #contact-form button {
        font-size: 12px; /* Further reduce font size */
        padding: 0.5rem; /* Adjust padding for smaller screens */
    }
    .contact-card {
        padding: 1rem; /* Further reduce padding */
    }
    #footer {
        font-size: 12px; /* Further reduce font size */
    }
}

/* Header */
header {
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth transition for hover effects */
}

header:hover {
    transform: scale(1.05); /* Slightly enlarge the header to appear as if coming forward */
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15); /* Add a shadow effect */
    cursor: pointer; /* Change the cursor to a pointer */
}
