:root {
    --primary-color: #4a6fa5;
    --text-color: #333;
    --bg-color: #f9fbfd;
    --card-bg: #ffffff;
    --accent-color: #166088;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    line-height: 1.6;
}

/* Navigation */
header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: padding 0.3s ease;
}

header.scrolled {
    padding: 0.5rem 0; /* Shrinks the height smoothly */
}

.header-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.header-profile-pic {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    opacity: 0;
    transform: scale(0.5);
    /* The cubic-bezier creates a bouncy spring effect as it grows to size */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none; /* Prevents invisible clicks */
    border: 2px solid var(--primary-color);
}

header.show-pic .header-profile-pic {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

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

nav ul li {
    margin: 0 20px;
}

nav a {
    text-decoration: none;
    color: #666;
    font-weight: 400;
    transition: color 0.3s;
}

nav a:hover, nav a.active {
    color: var(--primary-color);
    font-weight: 600;
}

/* Layout */
.container {
    max-width: 900px;
    margin: 60px auto;
    padding: 0 20px;
}

section {
    margin-bottom: 100px;
    scroll-margin-top: 80px;
}

.centered {
    text-align: center;
}

/* Home Page Banner */
.home-banner {
    width: 100%;
    height: 350px;
}

.home-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: flex-start;
    gap: 40px;
}

@media screen and (max-width: 767px) {
    .hero {
        flex-direction: column;
        align-items: center;
    }
    .profile-pic {
        margin-top: 0;
    }
    
}

.profile-pic {
    margin-top: 105px; /* Pushes the image down to specifically align with the 'About Me' header */
}

.profile-pic img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid white;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.tagline {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem;
}

/* Project Cards */

#projects {
    padding-top: 20px
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.project-card {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    position: relative;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-link,
.project-text {
    display: inline-block;
    margin-top: 15px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

/* Stretches the link to cover the entire project card */
.project-link::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

/* Buttons */
.links-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
}

.link-btn {
    width: 200px;
    padding: 12px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.3s;
}

.link-btn:hover {
    background: var(--accent-color);
}

footer {
    text-align: center;
    padding: 40px 0;
    font-size: 0.9rem;
    color: #999;
}

/* Container for the tags */
.project-tags {
    display: flex;
    flex-wrap: wrap; /* Allows tags to drop to the next line if needed */
    gap: 8px;       /* Adds space between the pills */
    margin: 15px 0; /* Adds breathing room above and below the tags */
}

/* Individual Pill/Badge styling */
.project-tags span {
    background-color: #e9ecef; /* Light gray background */
    color: #495057;           /* Darker text for readability */
    font-size: 12px;           /* Smaller than the main description */
    font-weight: 600;          /* Makes them slightly bold to pop */
    padding: 4px 12px;         /* Creates the "box" around the text */
    border-radius: 20px;       /* Rounds the corners for a "pill" look */
    border: 1px solid #dee2e6; /* Optional: adds a subtle outline */
    text-transform: uppercase; /* Makes them look more like technical labels */
    letter-spacing: 0.5px;
}