/* --- Global Variables for easy color changes --- */
:root {
    --bg-color: #fafafa;        /* Very light grey background */
    --card-bg: #ffffff;         /* White cards */
    --text-main: #333333;       /* Dark grey text */
    --text-muted: #666666;      /* Lighter grey for secondary text */
    --accent-color: #2c5e50;    /* A professional deep teal/green */
    --link-hover: #1abc9c;      /* Brighter teal for hovers */
    --font-stack: 'Inter', system-ui, -apple-system, sans-serif;
}

/* --- Reset & Base Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-stack);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* --- Layout Utility --- */
.container {
    max-width: 800px; /* Keeps the content narrow and readable */
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Header Section --- */
header {
    padding: 80px 0 40px;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}

.tagline {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 300;
}

/* --- Section Styling --- */
section {
    margin-bottom: 60px;
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: 600;
    border-left: 4px solid var(--accent-color);
    padding-left: 15px;
}

p {
    margin-bottom: 15px;
}

/* Divider line */
.divider {
    border: 0;
    height: 1px;
    background: #e0e0e0;
    margin: 40px 0;
}

/* --- Project Grid (Flex/Grid) --- */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.project-card {
    background: var(--card-bg);
    border: 1px solid #e5e5e5;
    padding: 25px;
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    border-color: var(--accent-color);
}

.project-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.project-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* Link Styling */
.project-link {
    display: inline-block;
    text-decoration: none;
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.project-link:hover {
    color: var(--link-hover);
}

/* --- Footer --- */
footer {
    padding: 40px 0;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    border-top: 1px solid #e0e0e0;
    margin-top: 60px;
}

/* --- Social Icons Row --- */
.social-row {
    display: flex;
    gap: 1.2rem;       /* Adjusts space between the icons */
    margin-top: 1rem;  /* Space between name and icons */
    align-items: center;
}

.social-row a {
    display: inline-flex; /* Removes extra gaps under images */
    text-decoration: none;
}

.social-row img {
    height: 24px;      /* Sets a fixed height so all icons match size */
    width: auto;       /* Maintains aspect ratio */
    opacity: 0.6;      /* Slightly greyed out by default for a clean look */
    filter: grayscale(100%); /* Optional: makes colorful logos black & white until hover */
    transition: all 0.2s ease;
}

/* Hover Effect */
.social-row img:hover {
    opacity: 1;
    filter: grayscale(0%); /* Brings back original color on hover */
    transform: translateY(-2px); /* Slight lift on hover */
}
