/* Basic Reset & Base Styles */
:root {
    --primary-color: #0056b3; /* Darker blue for primary actions */
    --secondary-color: #007bff; /* Standard blue */
    --accent-color: #28a745; /* Green for success/highlights */
    --text-color: #333;
    --light-text-color: #f8f9fa;
    --bg-color: #fff;
    --light-bg-color: #f4f7f6;
    --border-color: #eee;
    --shadow-color: rgba(0, 0, 0, 0.1);

    --font-family-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-size-base: 1.125rem; /* 18px */
    --line-height-base: 1.6;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-sans);
    line-height: var(--line-height-base);
    color: var(--text-color);
    background-color: var(--bg-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

h1 {
    font-size: 2.8rem;
    margin-top: 1rem;
    color: #2c3e50; /* A strong dark color for main name */
}

h2 {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

h3 {
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
    color: #4a698a; /* Slightly lighter heading */
}

h4 { /* Added for project item subheadings */
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #666;
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
    font-size: var(--font-size-base);
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1rem;
}

ul li {
    position: relative;
    padding-left: 1.8rem;
    margin-bottom: 0.5rem;
    font-size: var(--font-size-base);
}

ul li::before {
    content: '✔️'; /* Checkmark for lists */
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-size: 1.1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-decoration: none;
    font-size: 1.1rem;
    margin: 0.5rem 0; /* Adjust margin for spacing */
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: #004085; /* Darker on hover */
    border-color: #004085;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    margin-left: 1rem;
}

.btn-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--light-text-color);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.25rem;
    margin-top: 1.5rem;
}

.btn-small { /* For potential 'View Details' links on projects */
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    margin-top: 1rem;
}


/* Sections */
.section {
    padding: 4rem 0;
    border-bottom: 1px solid var(--border-color);
}

.section:last-of-type {
    border-bottom: none;
}

.bg-light {
    background-color: var(--light-bg-color);
}

.section-intro { /* Added for project section introduction */
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.hero {
    background: linear-gradient(to right, var(--primary-color), #007bff);
    color: var(--light-text-color);
    text-align: center;
    padding: 6rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.hero::before { /* Subtle background pattern/effect */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="%23ffffff" fill-opacity="0.05" fill-rule="evenodd"><path d="M0 0h30v30H0V0zm30 30h30v30H30V30z" /></g></svg>');
    opacity: 0.3;
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.profile-pic {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px var(--shadow-color);
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--light-text-color);
    margin-bottom: 0.5rem;
}

.hero h2 {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
    text-align: center; /* Override default section h2 */
}

.hero .tagline {
    font-size: 1.4rem;
    font-weight: 300;
    margin-bottom: 0.5rem; /* Reduced margin for new sub-tagline */
    color: rgba(255, 255, 255, 0.9);
}

.hero .sub-tagline { /* New style for the sub-tagline */
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.8);
}


/* Value Prop Grid (formerly expertise-grid, now more explicit) */
.value-prop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.value-prop-item {
    background-color: var(--bg-color);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px var(--shadow-color);
    transition: transform 0.3s ease;
}

.value-prop-item:hover {
    transform: translateY(-5px);
}

.value-prop-item h3 {
    margin-top: 0;
}

/* Projects Grid (New Section Styling) */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); /* Slightly larger min-width */
    gap: 2.5rem; /* More space between projects */
    margin-top: 2rem;
}

.project-item {
    background-color: var(--bg-color);
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 6px 20px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 5px solid var(--secondary-color); /* A subtle accent line */
}

.project-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.project-item h3 {
    margin-top: 0;
    font-size: 1.8rem;
    color: var(--primary-color);
}

.project-item h4 {
    color: #555;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.project-item ul {
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

.project-item ul li::before {
    content: '✅'; /* Green checkmark for project contributions */
    color: var(--accent-color);
}

.value-highlight {
    font-size: 1.3rem;
    color: var(--accent-color); /* Green for value highlight */
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.value-explanation {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 0;
    text-align: center;
}


/* Certifications */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    text-align: center;
}

.cert-item {
    background-color: var(--bg-color);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    border-left: 5px solid var(--accent-color); /* Visual emphasis */
}

.cert-item p {
    font-size: 0.95rem;
    color: #666;
    margin-top: 0.5rem;
    margin-bottom: 0;
}

/* Value List */
.value-list {
    list-style: none;
    padding: 0;
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.value-list li {
    background-color: var(--bg-color);
    padding: 1.2rem 1.5rem;
    border-left: 4px solid var(--secondary-color);
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    font-weight: 400; /* Override default list item font-weight if needed */
}

.value-list li::before {
    display: none; /* Remove default checkmark for this specific list */
}

.value-list li strong {
    color: var(--primary-color);
}

/* Preferred Roles */
.preferred-roles {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.preferred-roles li {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-size: 0.95rem;
    white-space: nowrap; /* Keep role titles on one line */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: background-color 0.3s ease;
}
.preferred-roles li::before {
    content: none; /* Remove checkmark */
}
.preferred-roles li:hover {
    background-color: #004085;
}


/* Contact Section */
.contact-intro {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.contact-details {
    text-align: center;
    margin-top: 2rem;
}

.contact-details p {
    font-size: 1.15rem;
    margin-bottom: 0.8rem;
}

.contact-details a {
    font-weight: 600;
}

.contact-form {
    max-width: 600px;
    margin: 2rem auto 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    font-family: var(--font-family-sans);
}

.contact-form textarea {
    resize: vertical;
}

.contact-form button {
    align-self: flex-start; /* For single button alignment */
}

/* Footer */
footer {
    background-color: #2c3e50; /* Darker footer */
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    padding: 2.5rem 0;
    font-size: 0.9rem;
}

footer p {
    margin-bottom: 0.5rem;
}

/* Media Queries for Responsiveness */
@media (max-width: 992px) {
    h1 {
        font-size: 2.5rem;
    }
    h2 {
        font-size: 2rem;
    }
    .hero h1 {
        font-size: 3rem;
    }
    .hero h2 {
        font-size: 1.7rem;
    }
    .hero .tagline {
        font-size: 1.2rem;
    }
    .hero .sub-tagline {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 3rem 0;
    }
    .hero {
        padding: 4rem 0 3rem;
    }
    .profile-pic {
        width: 150px;
        height: 150px;
    }
    h1 {
        font-size: 2.2rem;
    }
    h2 {
        font-size: 1.8rem;
    }
    h3 {
        font-size: 1.4rem;
    }
    p, ul li, .btn {
        font-size: 1rem;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .hero h2 {
        font-size: 1.5rem;
    }
    .hero .tagline {
        font-size: 1.1rem;
    }
    .hero .sub-tagline {
        font-size: 0.9rem;
    }
    .value-prop-grid, .cert-grid, .projects-grid { /* Added projects-grid here */
        grid-template-columns: 1fr; /* Stack columns on smaller screens */
    }
    .btn-large {
        padding: 0.8rem 2rem;
        font-size: 1.1rem;
    }
    .contact-details p, .contact-details a {
        font-size: 1rem;
    }
    .project-item {
        padding: 1.8rem;
    }
    .project-item h3 {
        font-size: 1.6rem;
    }
    .value-highlight {
        font-size: 1.15rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    h1 {
        font-size: 2rem;
    }
    h2 {
        font-size: 1.6rem;
    }
    h3 {
        font-size: 1.2rem;
    }
    .profile-pic {
        width: 120px;
        height: 120px;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .hero h2 {
        font-size: 1.3rem;
    }
    .hero .tagline {
        font-size: 1rem;
    }
    .hero .sub-tagline {
        font-size: 0.85rem;
    }
    .btn {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
    .btn-secondary {
        margin-top: 1rem;
    }
    .preferred-roles li {
        font-size: 0.85rem;
        padding: 0.4rem 1rem;
    }
    .project-item h3 {
        font-size: 1.4rem;
    }
    .value-highlight {
        font-size: 1.05rem;
    }
}