/* Task 4.2: CSS Grid Gallery */
.projects-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr; /* Mobile: 1 Column */
}

/* Task 4.3: Responsive Breakpoints */
@media (min-width: 768px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr); /* Tablet: 2 Columns */
    }
}

@media (min-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(3, 1fr); /* Desktop: 3 Columns */
    }
}

/* Task 3.2: Card Component Styling */
.project-card {
    background: white;
    padding: 20px;
    border: 1px solid var(--color-muted);
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s ease; /* Task 4.4: Polish */
}

.project-card:hover {
    transform: translateY(-5px); /* Task 4.4: Hover State */
}/* Task 3.1, 3.3 & 3.4: Base Setup & Systems */
:root {
    /* Color Palette */
    --color-primary: #ffc0cb;       /* Your signature pink */
    --color-secondary: #5a7052;     /* Matcha green */
    --color-background: #fff5f7;    /* Soft light pink */
    --color-text: #333333;
    --color-muted: #888888;

    /* Typography Scale */
    --font-base: 1rem;              /* 16px */
    --font-lg: 1.125rem;            /* 18px */
    --font-xl: 1.25rem;             /* 20px */
    --font-2xl: 1.5rem;             /* 24px */
    --font-3xl: 1.875rem;           /* 30px */
    --font-4xl: 2.25rem;            /* 36px */

    /* Font Families */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

/* Task 3.1: Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* This fixes the "Broken Box" issue globally */
}

body {
    font-family: var(--font-body);
    font-size: var(--font-base);
    line-height: 1.6;
    background-color: var(--color-background);
    color: var(--color-text);
}

h1 { font-family: var(--font-heading); font-size: var(--font-4xl); margin-bottom: 20px; }
h2 { font-family: var(--font-heading); font-size: var(--font-3xl); margin-bottom: 15px; }/* Reset some default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body styling */
body {
    font-family: 'Roboto', sans-serif; 
    background-color: linear-gradient(to bottom right, #fff0f5, #ffe6f0);
    color: #333;
    line-height: 1.6;
}

/* Header */
header {
    background-color: #ffe0f0;
    padding: 20px;
    text-align: center;
}

/* Navigation */
nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 20px;
    margin-top: 10px;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
}

nav ul li a:hover {
    color: #ff4d6d;
}

/* Main sections */
main {
    padding: 20px;
}

section {
    margin-bottom: 40px;
}

/* Footer */
footer {
    text-align: center;
    padding: 15px;
    background-color: #ffe0f0;
    font-size: 0.9rem;
}
/* Flexbox navigation */
nav ul {
    display: flex;           /* arrange items in a row */
    justify-content: center; /* center them horizontally */
    gap: 30px;               /* space between links */
    list-style: none;        /* remove bullets */
    margin-top: 10px;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    padding: 5px 10px;
    transition: color 0.3s, background 0.3s;
}

nav ul li a:hover {
    color: #fff;
    background-color: #ff4d6d;
    border-radius: 5px;
}
/* Sections */
section {
    padding: 30px 20px;
    background-color: #fff0f5;
    border-radius: 10px;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

section h2 {
    margin-bottom: 15px;
    color: #ff4d6d;
}
/* Projects Grid */
#projects ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding-left: 0; /* remove default list padding */
}

#projects ul li {
    list-style: none; /* remove bullets */
    background-color: #ffe6f0;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

#projects ul li:hover {
    transform: translateY(-5px);
}
/* Responsive Design */
@media (max-width: 600px) {
    nav ul {
        flex-direction: column;
        gap: 10px;
    }

    section {
        padding: 20px 10px;
    }
}
/* Links hover effect */
a {
    color: #ff4d6d;
    text-decoration: none;
    transition: color 0.3s, transform 0.3s;
}

a:hover {
    color: #ff1a45;
    transform: scale(1.05);
}

/* Section hover subtle effect */
section:hover {
    box-shadow: 0 8px 12px rgba(0,0,0,0.15);
    transform: translateY(-3px);
    transition: all 0.3s;
}

/* Footer links (if any) */
footer a:hover {
    color: #ff1a45;
}
/* Projects Grid */
#projects ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding-left: 0; /* remove default list padding */
}

#projects ul li {
    list-style: none; /* remove bullets */
    background-color: #ffe6f0;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

#projects ul li:hover {
    transform: translateY(-5px);
}
/* Task 4.4 & Day 4: Form Styling */
#contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 15px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: var(--color-secondary); /* Matcha Green */
}

input, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: var(--font-body);
}

/* Task 4.4: Focus States (Accessibility) */
input:focus, textarea:focus {
    outline: 2px solid var(--color-primary); /* Pink outline */
    border-color: transparent;
}

/* Task 4.4: Button Polish */
.button {
    background-color: var(--color-secondary);
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    background-color: var(--color-primary); /* Changes to pink on hover! */
}