/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body */
body {
    font-family: 'Roboto', sans-serif;
    color: #333;
    background-color: #f8f9fa;
    line-height: 1.7;
    padding-top: 120px; /* Increased to accommodate fixed header + nav */
    padding-left: 20px;  /* Added left padding */
    padding-right: 20px; /* Added right padding */
    text-align: center; /* Ensures text is centered */
}

/* ✨ Fixed Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 0; /* Remove padding from header */
    border-bottom: 3px solid #6a5acd; /* Added purple accent border */
}

/* Navigation Bar */
nav {
    width: 100%;
    display: flex;
    justify-content: center;
    background: rgba(250, 250, 250, 0.95);
    z-index: 999;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style-type: none;
    padding: 1rem 0;
}

nav ul li {
    margin: 0 1.5rem;
}

nav ul li a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

nav ul li a:hover,
nav ul li a.active {
    color: #fff;
    background-color: #6a5acd; /* Purple background on hover */
    border-bottom: none;
}

/* Main Content */
main {
    max-width: 900px; /* Keeps content centered */
    margin: 0 auto;
    padding: 2rem;
    text-align: left; /* Makes text inside sections left-aligned */
}

/* Sections */
section {
    margin-bottom: 3rem;
    padding: 1.5rem;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-left: 5px solid #6a5acd; /* Added purple accent border */
}

section#home {
    background: linear-gradient(135deg, #f0f8ff 0%, #e6e6fa 100%); /* Light blue to lavender gradient */
    text-align: center;
}

section#home h1 {
    color: #6a5acd; /* Purple heading */
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

section h2 {
    margin-bottom: 1rem;
    color: #6a5acd; /* Purple headings */
    border-bottom: 2px solid #e6e6fa;
    padding-bottom: 0.5rem;
}

section h3 {
    color: #5f4bb6; /* Slightly darker purple for subheadings */
    margin: 1.5rem 0 0.8rem 0;
}

/* Project Section */
.project {
    text-align: center;
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: #f0f8ff; /* Light blue background */
    border-radius: 10px;
    transition: transform 0.3s;
}

.project:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(106, 90, 205, 0.2);
}

.project img {
    max-width: 70%; /* Reduced from 100% to 70% */
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 0 auto 1.5rem auto; /* Add spacing below image */
    display: block; /* Helps with centering */
    border: 3px solid #e6e6fa; /* Light purple border */
}

.project h3 {
    margin-bottom: 0.5rem;
    color: #5f4bb6;
}

.project a {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background-color: #6a5acd; /* Purple button */
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s;
    border: none;
}

.project a:hover {
    background-color: #5f4bb6; /* Darker purple on hover */
    transform: scale(1.05);
}

/* Lists */
ul {
    padding-left: 2rem;
    margin-bottom: 1.5rem;
}

ul li strong {
    color: #5f4bb6; /* Purple for strong text */
}

/* ✨ Footer */
footer {
    text-align: center;
    padding: 1.5rem;
    font-size: 0.9rem;
    color: #666;
    border-top: 1px solid #e0e0e0;
    background: #f8f9fa;
}

footer a {
    color: #6a5acd; /* Purple links */
    text-decoration: none;
    font-weight: 600;
}

footer a:hover {
    color: #5f4bb6;
    text-decoration: underline;
}

/* Add some responsive styling */
@media (max-width: 768px) {
    body {
        padding-top: 100px;
    }
    
    .project img {
        max-width: 90%;
    }
}

/* Links styling */
a {
    color: #6a5acd; /* Purple links everywhere */
    transition: color 0.3s;
}

a:hover {
    color: #5f4bb6;
}