/* General page styling */
body {
    font-family: Arial, sans-serif;
    background: #fdfdfe;
    color: #1808f9;
    margin: 0;
    padding: 0;
}

/* Headings */
h1, h2 {
    text-align: center;
    color: #222;
}

/* Section containers */
.about, .skills, .resume, .contact {
    margin: 30px auto;
    max-width: 800px;
    padding: 20px;
    background: #f4f2f2;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(42, 31, 248, 0.1);
}

.about img {
    max-width: 150px;   /* controls width */
    height: auto;       /* keeps aspect ratio */
    border-radius: 8px; /* optional: rounded corners */
    display: block;     /* centers nicely with margin */
    margin: 0 auto;     /* centers horizontally */
}

/* Simple top navigation bar */
.navbar {
background: #111;
padding: 10px 0;
}


.navbar ul {
list-style: none;
display: flex;
justify-content: center;
padding: 0;
margin: 0;
}


.navbar li {
margin: 0 15px;
}


.navbar a {
color: white;
font-weight: bold;
}


.navbar a:hover {
color: #9ecbff;
}




/* Skills list */
.skills ul {
    list-style: none;
    padding: 0;
}

.skills li {
    background: #e6f2ff;
    margin: 5px 0;
    padding: 8px;
    border-radius: 6px;
}

/* Make Projects match your other sections */
.projects {
    margin: 30px auto;
    max-width: 1000px;
    padding: 20px;
    background: #f4f2f2;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(42, 31, 248, 0.1);

    /* Grid for the project cards */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

/* Center the section heading */
.projects > h2 {
    grid-column: 1 / -1;   /* spans full width */
    text-align: center;
    margin-bottom: 20px;
}

/* Project card styling (now consistent) */
.project {
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.2s ease;
}
.project {
    display: flex;
    flex-direction: column;
    align-items: center;   /* centers EVERYTHING horizontally */
    justify-content: center;
    text-align: center;    /* centers text inside */
    padding: 20px;
}

.project:hover {
    transform: translateY(-5px);
}


/* Links */
a {
    text-decoration: none;
    color: #007acc;
}

a:hover {
    color: #005f99;
}
