* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #282634;
    /* A light grey background for now */
}

.navbar {
    display: flex;
    /* This activates Flexbox! */
    justify-content: space-between;
    /* Pushes logo and links to opposite ends */
    align-items: center;
    /* Vertically centers the items */
    padding: 1rem 2rem;
    /* 1rem top/bottom padding, 2rem left/right */
    background-color: #ffffff;
    /* White background for the navbar */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    /* A subtle shadow for depth */
}

/* Logo Styling */
.nav-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    text-decoration: none;
    /* Removes the default underline */
}

/* Menu (the <ul> list) Styling */
.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    /* Removes the default list bullets */
    gap: 2rem;
    /* Creates space between the menu items */
}

/* Individual Link Styling */
.nav-link {
    color: #555;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease-in-out;
    /* A smooth transition for the hover effect */
}

.nav-link:hover {
    color: #FF4057;
    /* The color changes when you hover over it */
}

/* ========= HERO SECTION STYLING ========= */

.hero-section {
    /* We use flexbox to center content vertically and horizontally */
    display: flex;
    flex-direction: column;
    /* Stacks items on top of each other */
    justify-content: center;
    align-items: center;

    /* This makes the section take up most of the screen's height */
    min-height: 80vh;

    text-align: center;
    /* Ensures text inside is centered */
    padding: 0 2rem;
    /* Adds some space on the sides */
}

.hero-title {
    font-size: 3rem;
    /* A large, impactful font size */
    color: #FFF;
    margin-bottom: 1rem;
    /* Space below the title */
}

.hero-subheading {
    font-size: 1.2rem;
    color: #f0f0f0;
    /* A slightly lighter color than the title */
    max-width: 600px;
    /* Prevents the line from becoming too wide on large screens */
    margin-bottom: 2rem;
    /* Space below the subheading */
}

.cta-button {
    /* Button appearance */
    background-color: #FF4057;
    /* Our "brand" color from last lesson */
    color: #FFF;
    padding: 1rem 2rem;
    /* Generous padding to make it look like a button */
    border-radius: 5px;
    /* Slightly rounded corners */
    text-decoration: none;
    /* Removes the link underline */
    font-weight: bold;

    /* Hover effect */
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #c72f41;
    /* A darker shade of our brand color on hover */
}

/* ========= PROJECTS SECTION STYLING ========= */

.projects-section {
    padding: 4rem 2rem; /* Lots of space around the section */
    background-color: #f9f9f9; /* A slightly different grey to stand out */
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

.project-grid {
    display: grid;
    /* This is the magic line for a responsive grid! */
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem; /* Space between the cards */
}

.project-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    overflow: hidden; /* Keeps the image inside the rounded corners */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px); /* Lifts the card up slightly on hover */
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.project-image {
    width: 100%;
    height: 250px; /* Give a fixed height to make cards uniform */
    object-fit: cover; /* Ensures image covers the area without distortion */
    display: block;
}

.project-content {
    padding: 1.5rem;
}

.project-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.project-description {
    font-size: 1rem;
    color: #666;
    margin-bottom: 1rem;
}

.project-tags {
    margin-bottom: 1rem;
}

.project-tags span {
    display: inline-block;
    background-color: #e9ecef;
    color: #495057;
    padding: 0.25rem 0.75rem;
    border-radius: 15px; /* Makes them look like pills */
    font-size: 0.8rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.project-links a.btn {
    text-decoration: none;
    font-weight: bold;
    padding: 0.6rem 1.2rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn { /* Primary Button Style */
    background-color: #007bff;
    color: #ffffff;
}
.btn:hover {
    background-color: #0056b3;
}

.btn-secondary { /* Secondary Button Style */
    background-color: transparent;
    color: #007bff;
    border: 2px solid #007bff;
}
.btn-secondary:hover {
    background-color: #007bff;
    color: #ffffff;
}