/* General Styles */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa; /* Light gray background */
    color: #333;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3 {
    font-weight: 400;
    color: #4a90e2; /* Softer blue for headings */
}

h1 {
    font-size: 2.5em;
    margin-bottom: 0.1em;
}

h2 {
    font-size: 1.5em;
    margin-top: 0;
    font-weight: 300;
    color: #555; /* Darker gray for subtitle */
}

a {
    color: #4a90e2; /* Softer blue for links */
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #357abd; /* Darker softer blue on hover */
}

/* Summary Section Styling */
.summary {
    text-align: center;
    margin-bottom: 30px; /* Adjusted margin for spacing */
    padding: 0 10px; /* Add slight horizontal padding */
    color: #333; /* Use default text color */
}

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

/* Header Styles */
.site-header {
    background-color: #ffffff; /* White header background */
    padding: 20px 40px;
    text-align: center;
    border-bottom: 1px solid #e0e0e0; /* Light gray border */
    margin-bottom: 30px;
}

.profile-pic {
    width: 150px;
    height: 150px;
    border-radius: 50%; /* Circular frame */
    object-fit: cover; /* Ensure image covers the area */
    border: 3px solid #e0e0e0; /* Light gray border */
    margin-bottom: 15px;
}

/* Main Content & Sections */
main {
    flex: 1; /* Allows footer to stick to bottom */
    padding: 0 20px 40px; /* Add padding */
    max-width: 900px; /* Limit content width */
    margin: 0 auto; /* Center content */
    width: 100%;
    box-sizing: border-box;
}

.content-section {
    display: none; /* Hide sections by default */
    padding: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    margin-top: 20px; /* Add space between header/nav and content */
}

/* Show active section using :target or the initial .active class */
.content-section:target,
.content-section.active {
    display: block;
}

/* Hide home section when another section is targeted */
#home:not(:target) {
    display: block; /* Keep home visible by default */
}
#home:target ~ #home {
     display: none; /* Hide home if any other section is targeted (general sibling combinator) */
}
/* More specific rule to hide home when CV is targeted */
#cv-section:target ~ #home {
    display: none;
}
/* More specific rule to hide home when Docker placeholder is targeted */
#docker-placeholder:target ~ #home {
    display: none;
}
/* More specific rule to hide home when Contact is targeted */
#contact-section:target ~ #home {
    display: none;
}
/* Ensure only the targeted section is shown */
#cv-section:not(:target) { display: none; }
#docker-placeholder:not(:target) { display: none; }
#contact-section:not(:target) { display: none; }


/* Navigation Styles */
.main-nav ul {
    display: flex;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    justify-content: center;
    gap: 15px; /* Space between buttons */
    padding: 20px 0;
}

.main-nav li {
    margin: 0;
}

.nav-button,
.back-button {
    display: inline-block;
    padding: 12px 25px;
    background-color: #4a90e2; /* Softer blue background */
    color: #ffffff; /* Keep text white */
    border: none;
    border-radius: 5px;
    text-align: center;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.nav-button:hover,
.back-button:hover {
    background-color: #357abd; /* Darker softer blue on hover */
    color: #ffffff; /* Ensure text stays white */
    transform: translateY(-2px); /* Slight lift effect */
}

.back-button {
    margin-bottom: 20px;
    background-color: #6c757d; /* Gray for back button */
}

.back-button:hover {
    background-color: #5a6268;
}


/* CV Section Styles */
#cv-section h2,
#docker-placeholder h2,
#contact-section h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

.cv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive grid */
    gap: 30px;
}

.cv-category h3 {
    border-bottom: 2px solid #4a90e2; /* Softer blue border */
    padding-bottom: 5px;
    margin-bottom: 15px;
}

.cv-category ul li {
    margin-bottom: 15px;
}

.cv-category ul li strong {
    color: #333;
}

.cv-category ul li em {
    color: #555;
    font-size: 0.9em;
}

/* Docker Placeholder Styles */
#docker-placeholder p,
#docker-placeholder ul {
    text-align: center;
}
#docker-placeholder ul li {
    margin-bottom: 10px;
}
#docker-placeholder em {
    color: #888;
    font-size: 0.9em;
}


/* Contact Section Styles */
.contact-details {
    text-align: center;
    font-size: 1.1em;
    line-height: 1.8;
}
.contact-details p {
    margin-bottom: 10px;
}

/* Footer Styles */
footer {
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    background-color: #e9ecef; /* Lighter gray footer */
    color: #6c757d; /* Gray text */
    font-size: 0.9em;
    border-top: 1px solid #dee2e6;
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2em;
    }

    .site-header {
        padding: 15px 20px;
    }

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

    .main-nav ul {
        flex-direction: column; /* Stack buttons vertically */
        align-items: center;
        gap: 10px;
    }

    .nav-button {
        width: 80%; /* Make buttons wider */
        padding: 10px 20px;
    }

    .cv-grid {
        grid-template-columns: 1fr; /* Single column layout */
        gap: 20px;
    }

    main {
        padding: 0 10px 20px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8em;
    }
    h2 {
        font-size: 1.2em;
    }

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

    .nav-button {
        width: 90%;
        font-size: 0.9em;
    }
}