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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f6f8;
    color: #1f1f1f;
    line-height: 1.6;
    padding: 0 1rem;
}

a {
    color: #0077cc;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #005fa3;
}

/* Header */
header {
    background: #ffffff;
    padding: 2rem 1rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

header h1 {
    font-size: 2.5rem;
    color: #333;
}

header p {
    font-size: 1.1rem;
    color: #666;
    margin-top: 0.5rem;
}

nav {
    margin-top: 1rem;
}

nav a {
    margin: 0 1rem;
    font-weight: bold;
    position: relative;
}

nav a::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: #0077cc;
    transition: width 0.3s;
    margin: auto;
}

nav a:hover::after {
    width: 100%;
}

/* Sections */
section {
    margin: 3rem auto;
    max-width: 900px;
    padding: 0 1rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #ddd;
    padding-bottom: 0.5rem;
}

/* Tech Stack */
.tech-stack span {
    display: inline-block;
    background: #e0e7ff;
    color: #1e40af;
    padding: 0.4rem 0.8rem;
    margin: 0.3rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* Project Cards */
.project {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.3s ease;
}

.project:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.project h3 {
    font-size: 1.5rem;
    color: #111827;
}

.project p {
    margin: 0.5rem 0;
    color: #4b5563;
}

/* Contact Section */
#contact a {
    display: inline-block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

/* Footer */
footer {
    text-align: center;
    font-size: 0.9rem;
    color: #777;
    padding: 2rem 0;
}

/* Header Layout w/ Image and Flex */
.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    text-align: left;
}

.profile-pic {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #007bff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    margin-bottom: 1rem;
}

.intro {
    max-width: 600px;
}

.intro h1 {
    font-size: 2.5rem;
    color: #111827;
    margin-bottom: 0.2rem;
}

.intro p {
    font-size: 1.1rem;
    color: #4b5563;
    margin-bottom: 1rem;
}

.intro nav {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* Project Links Hover Effect */
.project a {
    position: relative;
    font-weight: 600;
    color: #0077cc;
    transition: color 0.2s ease;
    margin-right: 1rem;
}

.project a::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: #0077cc;
    transition: width 0.3s ease;
}

.project a:hover {
    color: #005fa3;
}

.project a:hover::after {
    width: 100%;
}