* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    padding-top: 0; /* Remove top padding */
}

/* Sticky navigation bar */
header {
    position: -webkit-sticky; /* Safari support */
    position: sticky;
    top: 0;
    background-color: white;
    z-index: 1000;
    padding: 15px 20px; /* Add horizontal padding */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-left: -20px; /* Compensate for body padding */
    margin-right: -20px; /* Compensate for body padding */
    margin-bottom: 20px;
    width: calc(100% + 40px); /* Adjust for the negative margins */
}

/* Style the navigation inside the header */
nav {
    display: flex;
    align-items: center;
    margin-bottom: 0;
    max-width: 800px;
    margin: 0 auto;
}

nav a {
    margin-right: 15px;
    text-decoration: none;
    font-weight: bold !important;
}

nav a:hover {
    text-decoration: none;
    color: #007bff;
    border-bottom: 2px solid #007bff;
}

/* Ensure the content doesn't bump against the fixed navbar */
main {
    padding-top: 10px;
}

/* Make sure the navbar looks good */
nav {
    display: flex;
    align-items: center;
    margin-bottom: 0; /* Override previous margin */
}

/* Optional: Add a transition for smooth effect when scrolling */
header {
    transition: box-shadow 0.3s ease;
}

/* Optional: Change appearance when scrolled */
header.scrolled {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Navigation Bar */
.navbar {
    background-color: #2c3e50;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo h1 {
    font-size: 24px;
    font-weight: bold;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: #3498db;
}

/* Summary Section */
.summary-section {
    padding: 80px 0;
    background-color: #fff;
}

.summary-section h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #2c3e50;
    font-size: 36px;
}

.profile-container {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
}

.profile-image {
    flex: 0 0 200px;
    max-width: 200px;
    border-radius: 50%;
    margin-bottom: 20px;
}

.placeholder-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-image i {
    font-size: 80px;
    color: #999;
}

.profile-summary {
    flex: 1;
}

.profile-summary p {
    margin-bottom: 20px;
    font-size: 18px;
    line-height: 1.8;
}

.cta-buttons {
    margin-top: 30px;
    display: flex;
    gap: 15px;
}

.btn {
    display: inline-block;
    padding: 8px 15px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #0056b3;
}

.primary-btn {
    background-color: #3498db;
    color: white;
}

.primary-btn:hover {
    background-color: #2980b9;
}

.secondary-btn {
    background-color: #ecf0f1;
    color: #2c3e50;
}

.secondary-btn:hover {
    background-color: #bdc3c7;
}

/* Section styling */
.resume-section, 
.portfolio-section,
.about-section,
.intro,
.featured-links {
    margin-bottom: 25px;
}

h2 {
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
}

/* Card styling for home page */
.link-cards {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.card {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    flex: 1;
    background-color: #f9f9f9;
}

/* Resume specific styling */
.date {
    font-style: italic;
    color: #666;
}

.resume-container h3 {
    margin-bottom: 5px;
}

/* Portfolio specific styling */
.project {
    margin-bottom: 30px;
    padding: 15px;
    border-left: 3px solid #007bff;
    background-color: #f5f5f5;
}

.project h3 {
    margin-top: 0;
}

/* Profile specific styling */
.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    background-color: #e9ecef;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.9em;
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
    text-align: center;
    color: #666;
}

/* Ensure lists only show bullets in the Experience section */

/* First, remove bullets from all lists in the resume */
.resume-container ul {
    list-style-type: none;
    padding-left: 0;
    margin-left: 0;
}

/* Then, specifically add bullets back for the experience section */
.resume-container .experience-list {
    list-style-type: disc;
    padding-left: 20px;
    margin-left: 0;
}

/* Style the experience list items */
.resume-container .experience-list li {
    margin-bottom: 8px;
}

/* Style the skills section with dot separators instead of bullets */
.skills-container {
    line-height: 1.8;
}

/* Education section styling */
.education-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    position: relative;
}

.education-details {
    flex: 1;
}

.education-details h3 {
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 1.05em;
}

.education-details p {
    margin-top: 0;
    color: #444;
}

.education-date {
    text-align: right;
    min-width: 80px;
    font-weight: normal;
    color: #444;
}

/* Make sure there's proper spacing between education items */
.education-item:not(:last-child) {
    padding-bottom: 10px;
    border-bottom: 1px dotted #eee;
}

/* Ensure section headers stand out */
.resume-section h2 {
    margin-top: 25px;
    margin-bottom: 15px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        padding: 10px;
    }
    
    .nav-links {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-links li {
        margin: 5px 10px;
    }
    
    .profile-container {
        flex-direction: column;
        text-align: center;
    }
    
    .cta-buttons {
        justify-content: center;
    }
}
