/* --- Global Reset & Typography --- */
:root {
    --primary-color: #333; /* Dark Gray for text */
    --accent-color: #007bff; /* Blue for links/buttons */
    --light-color: #f4f4f4; /* Light background */
    --white-color: #ffffff;
    --font-family: 'Arial', sans-serif;
}

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

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--primary-color);
    background: var(--white-color);
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: auto;
    overflow: hidden;
}

/* Headings */
h1, h2, h3 {
    margin-bottom: 0.5rem;
    font-weight: 300;
    line-height: 1.2;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; margin-bottom: 2rem; text-align: center; }
h3 { font-size: 1.5rem; }

/* Sections */
.section {
    padding: 4rem 0;
}

.bg-light {
    background: var(--light-color);
}

/* --- Navigation & Header --- */
.header {
    background: var(--white-color);
    border-bottom: 1px solid var(--light-color);
    padding: 1rem 0;
    position: sticky; /* Keeps it visible when scrolling */
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header h1 {
    color: var(--primary-color);
    margin: 0;
}

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

.main-nav ul li a {
    color: var(--primary-color);
    text-decoration: none;
    padding: 0 1rem;
    transition: color 0.3s;
}

.main-nav ul li a:hover {
    color: var(--accent-color);
}

/* --- Buttons & Links --- */
.btn {
    display: inline-block;
    background: var(--accent-color);
    color: var(--white-color);
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 1rem;
    transition: background 0.3s;
}

.btn:hover {
    background: #0056b3; /* Darker blue on hover */
}

.btn-secondary {
    background: var(--primary-color);
}

.btn-secondary:hover {
    background: #555;
}

/* --- Hero Section --- */
.hero {
    text-align: center;
    padding: 6rem 0;
}

.profile-pic {
    width: 150px;
    height: 150px;
    border-radius: 50%; /* Makes it a circle */
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 4px solid var(--light-color);
}

.hero-content .tagline {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 1.5rem;
}

/* --- Skills Section --- */
.skills-grid {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    margin-top: 2rem;
    text-align: center;
}

.skill-item {
    flex: 1;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: transform 0.3s;
}

.skill-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* --- Portfolio Section --- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 2rem;
}

.project-item {
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    padding-bottom: 1rem;
}

.project-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    margin-bottom: 1rem;
}

.project-item h3, .project-item p, .project-link {
    padding: 0 1rem;
}

.project-link {
    display: inline-block;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: bold;
    margin-top: 0.5rem;
}

/* --- Contact Section --- */
.contact {
    text-align: center;
}

.contact-links {
    margin-top: 2rem;
}

.contact-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.1rem;
    margin: 0 1rem;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: border-bottom 0.3s;
}

.contact-link:hover {
    border-bottom: 2px solid var(--accent-color);
}

/* --- Footer --- */
.footer {
    background: var(--primary-color);
    color: var(--white-color);
    text-align: center;
    padding: 1.5rem 0;
    font-size: 0.9rem;
}

/* --- Media Queries (Responsiveness) --- */
@media (max-width: 700px) {
    .header .container {
        flex-direction: column;
        text-align: center;
    }

    .main-nav ul {
        padding-top: 0.5rem;
        justify-content: center;
    }

    .skills-grid {
        flex-direction: column;
    }
}