/* --- Global Styles --- */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
}

h1, h2, h3 {
    line-height: 1.2;
}

a {
    color: #007BFF;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Utilities --- */
.content-section {
    padding: 60px 20px;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.gray-bg {
    background-color: #f4f4f4;
}

.cta-button {
    display: inline-block;
    background-color: #007BFF;
    color: #fff;
    padding: 12px 24px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #0056b3;
    text-decoration: none;
}

/* --- Header & Navigation --- */
header {
    background-color: #fff;
    border-bottom: 1px solid #ddd;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    height: 60px;
}

nav .logo a {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
}

nav .logo a:hover {
    text-decoration: none;
}

nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: #555;
    font-weight: 500;
}

nav ul li a:hover {
    color: #007BFF;
    text-decoration: none;
}

/* --- Hero Section --- */
.hero-section {
    background-color: #f9f9f9; /* A very light gray */
    padding: 140px 20px 80px; /* Extra top padding to account for fixed header */
    text-align: center;
}

.hero-section h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.hero-section p {
    font-size: 1.25rem;
    color: #555;
    margin-bottom: 30px;
}

/* --- About Section --- */
.profile-pic {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    margin: 50px auto;
    object-fit: cover ;
    border: 5px solid #1708e9;
}

.skills-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.skills-list li {
    background: #e7f3ff;
    color: #0056b3;
    padding: 8px 15px;
    margin: 5px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}
/* --- Education --- */
.education-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
.education-list li {
    background: #e7f3ff;
    color: #0056b3;
    padding: 8px 15px;
    margin: 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}
/* --- Experince --- */
.experience-list {
    list-style: none;
    padding: 20;
    margin: 20px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
.experience-list li {
    background: #e7f3ff;
    color: #0056b3;
    padding: 15px 15px;
    margin: 5px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* --- Projects Section --- */
.project-gallery {
    display: grid;
    grid-template-columns: 1fr; /* 1 column on mobile */
    gap: 30px;
    margin-top: 30px;
}

.project-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    text-align: left;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.project-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.project-card h3 {
    padding: 20px 20px 0;
    margin: 0;
}

.project-card p {
    padding: 10px 20px 20px;
}

.project-link {
    display: inline-block;
    padding: 0 20px 20px;
    font-weight: bold;
}

/* --- Contact Section --- */
.social-links {
    margin-top: 30px;
}

.social-links a {
    margin: 0 15px;
    font-size: 1.1rem;
    font-weight: 500;
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 20px;
    background: #333;
    color: #aaa;
    margin-top: 40px;
}

/* --- Responsive Design --- */
@media (min-width: 600px) {
    .project-gallery {
        /* 2 columns on tablets */
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .project-gallery {
        /* 3 columns on desktop */
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile navigation improvements (basic) */
@media (max-width: 500px) {
    nav ul {
        display: none; /* Hide nav links on very small screens (can be replaced with a hamburger menu later) */
    }
    .hero-section h1 {
        font-size: 2.5rem;
    }
}