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

body {
    font-family: 'Roboto', sans-serif; /* Body font */
    line-height: 1.7;
    color: #4a4a4a; /* Dark grey text */
    background-color: #fdfdfd; /* Very light off-white background */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 90%;
    max-width: 1000px; /* Slightly narrower for a sleeker feel */
    margin: 0 auto;
    padding: 0 15px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto', sans-serif; /* Heading font */
    font-weight: 600;
    color: #2c3e50; /* Darker, slightly desaturated blue/grey */
    margin-bottom: 0.8em;
}

h1 { font-size: 2.6em; font-weight: 700; }
h2 { font-size: 2em; }
h3 { font-size: 1.4em; }

p {
    margin-bottom: 1em;
}

a {
    color: #3498db; /* A modern, clean blue for primary links */
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #2980b9; /* Darker blue on hover */
}

/* --- Header & Hero --- */
header {
    background-color: #2c3e50; /* Dark, desaturated blue/grey */
    color: #ecf0f1; /* Light grey/off-white text */
    padding: 50px 0 70px;
    text-align: center;
}

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.hero-text h1 {
    color: #ffffff;
    margin-bottom: 15px;
}

.hero-text .subtitle {
    font-size: 1.4em;
    color: #bdc3c7; /* Lighter grey for subtitle */
    margin-bottom: 15px;
    font-weight: 400; /* From Open Sans */
}

.hero-text .tagline {
    font-size: 1.1em;
    color: #bdc3c7;
    margin-bottom: 25px;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400; /* From Open Sans */
}

.contact-info-header a {
    color: #bdc3c7;
    margin: 0 10px;
    font-size: 0.95em;
    transition: color 0.2s ease;
}
.contact-info-header a:hover {
    color: #ffffff;
}

.profile-pic {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #34495e; /* Slightly lighter than header bg */
    box-shadow: 0 5px 20px rgba(0,0,0,0.25);
}

@media (min-width: 768px) {
    .hero {
        flex-direction: row-reverse;
        text-align: left;
        gap: 50px;
    }
    .hero-text .tagline {
        margin-left: 0;
    }
     .profile-pic {
        width: 180px;
        height: 180px;
    }
}

/* --- Navigation --- */
nav {
    background-color: #ffffff; /* White nav */
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07); /* Softer shadow */
    border-bottom: 1px solid #e0e0e0; /* Subtle border */
}

nav ul {
    list-style-type: none;
    text-align: center;
}

nav ul li {
    display: inline-block;
    margin: 0 18px;
}

nav ul li a {
    color: #555; /* Dark grey nav links */
    font-weight: 600; /* Open Sans bold */
    font-size: 0.95em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

nav ul li a:hover,
nav ul li a.active { /* You might want to add 'active' class with JS later */
    color: #3498db; /* Accent color on hover/active */
}

/* --- Main Content & Sections --- */
main {
    padding: 50px 0;
}

section {
    padding: 50px 0;
    border-bottom: 1px solid #eaeaea; /* Lighter border */
}
section:last-of-type {
    border-bottom: none;
}

section h2 {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}
section h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: #3498db; /* Accent color for underline */
    margin: 10px auto 0;
}

/* --- Cards for Projects and Experience (Unified Style) --- */
.card {
    background-color: #ffffff;
    border-radius: 6px; /* Slightly less rounded */
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06); /* Softer, more diffused shadow */
    border: 1px solid #e9ecef; /* Very subtle border */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.card h3 {
    color: #3498db; /* Accent color for card titles */
    margin-bottom: 12px;
}

/* --- About Section - Strengths --- */
.strengths-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 25px;
    margin-top: 25px;
}
.strength-item {
    background-color: #f8f9fa; /* Very light grey */
    padding: 20px;
    border-radius: 5px;
    border-left: 3px solid #3498db; /* Accent border */
}
.strength-item h4 {
    color: #2c3e50;
    margin-bottom: 8px;
}

/* --- Skills --- */
.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.skill-tag {
    background-color: #e9ecef; /* Light grey */
    color: #495057; /* Medium-dark grey text */
    padding: 10px 18px;
    border-radius: 4px; /* Less rounded, more modern */
    font-size: 0.9em;
    font-weight: 600; /* Open Sans bold */
    transition: background-color 0.3s ease, color 0.3s ease;
}
.skill-tag:hover {
    background-color: #3498db; /* Accent color */
    color: white;
}

/* --- Experience Section --- */
.experience-item .experience-period {
    font-size: 0.9em;
    color: #7f8c8d; /* Muted grey */
    margin-bottom: 10px;
    font-style: italic;
}

/* --- Projects Section --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Slightly smaller minmax */
    gap: 30px;
}

.project-card .technologies {
    font-size: 0.8em;
    color: #7f8c8d;
    margin-top: 12px;
    margin-bottom: 18px;
    font-weight: 600; /* Open Sans bold */
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.project-card .technologies strong {
    /* The strong tag is already bold, so this is mostly for consistency if needed */
}

.project-link {
    display: inline-block;
    background-color: transparent;
    color: #3498db; /* Accent color */
    padding: 8px 18px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9em;
    font-weight: 600; /* Open Sans bold */
    border: 2px solid #3498db; /* Bordered button */
    transition: background-color 0.3s ease, color 0.3s ease;
}
.project-link:hover {
    background-color: #3498db; /* Fill on hover */
    color: white;
}

/* --- Contact Section --- */
#contact ul {
    list-style: none;
    padding: 0;
    max-width: 600px; /* Constrain width for readability */
    margin: 0 auto; /* Center the list */
}
#contact li {
    margin-bottom: 12px;
    font-size: 1.05em;
}
#contact li strong {
    color: #2c3e50; /* Darker text for labels */
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 30px 0;
    background-color: #2c3e50; /* Dark footer matching header */
    color: #bdc3c7; /* Light grey text */
    font-size: 0.9em;
}
footer p {
    margin-bottom: 0;
}