/* Global Reset */
:root {
    --primary-color: #2563eb;
    /* Strong Corporate Blue */
    --accent-color: #3b82f6;
    /* Lighter Accent Blue */
    --text-color: #334155;
    --heading-color: #0f172a;
    /* Darker Slate */
    --bg-color: #ffffff;
    --card-bg: #f8fafc;
    --font-family: 'Inter', system-ui, -apple-system, sans-serif;
    --transition-speed: 0.3s;
    --border-radius: 6px;
}

.main-nav a.active {
    color: var(--heading-color);
    font-weight: 700;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed);
}

ul {
    list-style: none;
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--heading-color);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2.5rem;
    color: #64748b;
    /* Grey for "People break projects" */
}

h3 {
    font-size: 1.5rem;
    color: #000000;
    /* Distinct Black for subtitle */
}

.overline {
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    display: block;
}

.hero-tagline {
    font-size: 1.25rem;
    color: var(--text-color);
    margin-bottom: 2rem;
}

/* Header */
.site-header {
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    padding: 1.5rem 2rem;
    border-bottom: none;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    color: var(--heading-color);
}

.logo .highlight {
    color: var(--primary-color);
}

.main-nav ul {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.main-nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-color);
}

.main-nav a:hover {
    color: var(--heading-color);
}

.cta-button {
    background-color: var(--primary-color);
    color: white !important;
    padding: 0.5rem 1.5rem;
    border-radius: var(--border-radius);
    transition: background-color var(--transition-speed);
}

.cta-button:hover {
    background-color: #004494;
}

/* Layout Wrapper */
.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 2rem 2rem;
}

/* Hero Section */
.hero-section {
    display: grid;
    /* Increase visual column size to make image fill more screen */
    grid-template-columns: 0.8fr 1.2fr;
    gap: 2rem;
    align-items: center;
    min-height: 80vh;
    padding: 0 0 2rem;
    /* Reduce top padding to let image fill vertical space if needed */
}

.hero-title {
    font-size: 3rem;
    color: #64748b;
    /* Muted Grey */
    margin-bottom: 0.5rem;
    background: none;
    -webkit-text-fill-color: initial;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #000000;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.hero-tagline {
    font-size: 1.25rem;
    color: var(--text-color);
    margin-bottom: 2rem;
    cursor: help;
    /* Indicate interactivity */
    display: inline-block;
    border-bottom: 1px dashed var(--accent-color);
    position: relative;
    z-index: 10;
}

.hero-tagline:hover {
    color: var(--accent-color);
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    margin-top: 2rem;
}

.primary-btn {
    background-color: var(--primary-color);
    color: white;
    padding: 0.8rem 2.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: transform 0.2s;
    font-size: 1.1rem;
}

.primary-btn:hover {
    transform: translateY(-2px);
}

.secondary-link {
    color: var(--accent-color);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.secondary-link:hover {
    text-decoration: underline;
}

.hero-visual {
    position: relative;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
    /* Ensure image isn't clipped */
}

/* Geese Analogy Section as Modal Overlay */
.analogy-section {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 650px;
    max-height: 90vh;
    /* Ensure it fits on screen */
    overflow-y: auto;
    /* Scroll if content is too tall */
    background-color: white;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border-radius: var(--border-radius);
    padding: 3rem;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 2px solid var(--accent-color);
    /* Light Blue Border */
    pointer-events: none;
}

.analogy-section.active-analogy {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto;
}

.analogy-content {
    font-size: 1.1rem;
    color: var(--text-color);
    position: relative;
    text-align: left;
}

.analogy-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--heading-color);
    line-height: 1.3;
}

.analogy-list {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
    list-style-type: disc;
}

.analogy-list li {
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.close-btn {
    position: absolute;
    top: -1rem;
    right: -1rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #94a3b8;
    line-height: 1;
}

.close-btn:hover {
    color: var(--heading-color);
}

.highlight-text {
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 1.5rem;
    display: block;
}


.analogy-highlight {
    font-weight: 500;
    color: #1e293b;
    border-left: 4px solid var(--accent-color);
    padding-left: 1.5rem;
    font-style: italic;
    background: #f1f5f9;
    padding: 1.5rem;
    border-radius: 0 4px 4px 0;
}

.footnote {
    font-size: 0.95rem;
    color: #64748b;
    margin-top: 2rem;
}

/* Image Styles */
.hero-image {
    width: 100%;
    height: auto;
    display: block;
    /* make image larger / fill */
    transform: scale(1.1);
    transform-origin: center right;
}

/* Value Prop Section */
.value-prop-section {
    padding: 6rem 0;
    background-color: var(--card-bg);
    /* Slight offset for section */
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.value-card {
    background-color: white;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform var(--transition-speed);
}

.value-card:hover {
    transform: translateY(-5px);
    border-color: rgba(56, 189, 248, 0.3);
}

.highlight-card {
    border-left: 4px solid var(--accent-color);
}

.value-card p strong {
    color: var(--primary-color);
}

/* Experience Section */
.experience-section {
    padding: 6rem 0;
    max-width: 800px;
    /* Keep strict readability focus */
}

.section-header {
    margin-bottom: 4rem;
}

.timeline {
    position: relative;
    padding-left: 2rem;
    border-left: 2px solid #cbd5e1;
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-marker {
    position: absolute;
    left: -2.6rem;
    top: 0.25rem;
    width: 1rem;
    height: 1rem;
    background-color: var(--bg-color);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
}

.timeline-content h3 {
    font-size: 1.25rem;
    color: var(--heading-color);
    margin-bottom: 0.25rem;
}

.portfolio-company {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
    display: block;
    margin-bottom: 0.75rem;
}

/* Certifications Section */
.certifications-section {
    padding: 4rem 0;
    border-top: 1px solid #e2e8f0;
}

.cert-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.cert-item {
    font-size: 0.9rem;
    color: var(--text-color);
    background: var(--card-bg);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    border: 1px solid #e2e8f0;
}

/* Footer */
.site-footer {
    background-color: var(--bg-color);
    padding: 6rem 2rem 2rem;
    border-top: 1px solid #e2e8f0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-primary h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--heading-color);
}

.email-link {
    font-size: 1.5rem;
    color: var(--primary-color);
    text-decoration: underline;
    text-decoration-color: rgba(71, 85, 105, 0.3);
    transition: text-decoration-color 0.3s;
}

.email-link:hover {
    text-decoration-color: var(--primary-color);
}

.footer-secondary {
    margin-top: 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-color);
    font-size: 0.9rem;
    border-top: 1px solid #e2e8f0;
    padding-top: 2rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a:hover {
    color: var(--heading-color);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-section {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-actions {
        justify-content: center;
    }

    .timeline {
        padding-left: 1.5rem;
    }

    .timeline-marker {
        left: -2.1rem;
    }

    .footer-secondary {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Scroll Animation Utility */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Contact Form Styles */
.form-section {
    padding: 0 0 6rem;
    max-width: 600px;
    margin: 0 auto;
}

.form-container {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: left;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--heading-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: var(--border-radius);
    font-family: var(--font-family);
    font-size: 1rem;
    transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
    outline: none;
    width: 100%;
    color: var(--text-color);
    background-color: #f8fafc;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
    background-color: #fff;
}

.submit-btn {
    border: none;
    cursor: pointer;
    margin-top: 1rem;
    align-self: flex-start;
    width: 100%;
    justify-content: center;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}