/* Partially Generated by Copilot */
:root {
    --primary-color: #2c5f2d;     /* Dark green */
    --secondary-color: #e25c04;   /* Hunter orange */
    --accent-color: #8a56ac;      /* Purple highlight */
    --text-color: #333;
    --light-bg: #f5f8f5;          /* Very light green tint */
    --dark-bg: #1a2e1a;           /* Very dark green */
    --transition-speed: 0.5s;
    
    /* Font weights for consistency */
    --font-weight-normal: 400;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Courier Prime', 'Source Code Pro', 'Courier New', monospace;
    font-weight: var(--font-weight-normal);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
    overflow-x: hidden;
    letter-spacing: 0;
    font-kerning: normal;
    font-feature-settings: "kern", "liga", "clig", "calt";
}

h1, h2, h3, h4 {
    font-family: 'Courier Prime', 'Source Code Pro', 'Courier New', monospace;
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
}

a {
    color: #2E8B57;
    text-decoration: underline;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

/* Font weight utility classes */
.fw-normal {
    font-weight: var(--font-weight-normal) !important;
}

.fw-semibold {
    font-weight: var(--font-weight-semibold) !important;
}

.fw-bold {
    font-weight: var(--font-weight-bold) !important;
}

/* Text rendering fix */
p, span, div, li {
    text-rendering: geometricPrecision;
}

/* Header & Logo */
header {
    padding: 2rem 5%;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

/* When inside the demo UI, make header static so it doesn't overlap demo content */
.demo-root header {
    position: relative;
    background: transparent;
    box-shadow: none;
    padding: 1rem 0;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main-logo {
    height: 125px;
    max-width: 100%;
    margin-bottom: 0.5rem;
}

.hero-logo {
    height: 325px;
    max-width: 90%;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease forwards;
}

.tagline {
    font-size: 1rem;
    color: var(--secondary-color);
    font-weight: 300;
    letter-spacing: 1px;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, rgba(44, 95, 45, 0.85), rgba(44, 95, 45, 0.6)), url('https://source.unsplash.com/random/1920x1080/?engineering,technology') center/cover no-repeat;
    color: white;
    padding: 0 5%;
    position: relative;
}

.hero-content {
    max-width: 800px;
}

.hero-content h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards 0.5s;
}

.subtitle {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards 0.7s;
}

.tech-hint {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2rem;
    padding: 0.5rem 1rem;
    background-color: rgba(138, 86, 172, 0.3);
    border-radius: 4px;
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards 0.9s;
}

/* Scroll Down Arrow */
.scroll-down-container {
    position: absolute;
    bottom: 40px;
    left: 0;
    right: 0;
    text-align: center;
}

.scroll-down-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: rgba(226, 92, 4, 0.8);
    border-radius: 50%;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: bounce 2s infinite, pulse 1.5s infinite alternate, attention 8s 3s infinite;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
    transform-origin: center;
}

.scroll-down-arrow:hover {
    background-color: var(--secondary-color);
    transform: scale(1.1);
    animation-play-state: paused;
}

.scroll-down-arrow svg {
    width: 60px;
    height: 60px;
    display: block;
}

.scroll-text {
    font-size: 14px;
    margin-top: 5px;
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
    }
    100% {
        box-shadow: 0 0 30px rgba(255, 255, 255, 0.7), 0 0 40px rgba(226, 92, 4, 0.5);
    }
}

@keyframes attention {
    0% {
        transform: scale(1);
    }
    5% {
        transform: scale(1.2);
    }
    10% {
        transform: scale(1);
    }
    15% {
        transform: scale(1.1);
    }
    20% {
        transform: scale(1);
    }
    100% {
        transform: scale(1);
    }
}

/* Story Sections */
.story-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 2rem;
}

.story-section {
    margin-bottom: 7rem;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease, transform 1s ease;
}

.story-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.story-section h2 {
    font-size: 2.8rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
    text-align: center;
}

.story-section h3 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.story-section p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.character {
    display: flex;
    flex-direction: column;
    background-color: white;
    border-radius: 5px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 5px solid var(--primary-color);
}

.character:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border-left-color: var(--secondary-color);
}

.character h3 {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    font-weight: var(--font-weight-bold);
    color: var(--primary-color);
}

.character h3:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--secondary-color);
}

.character-details {
    margin-top: 1rem;
}

.character-details p {
    margin-bottom: 1rem;
    font-weight: var(--font-weight-normal);
    font-size: 1rem;
    letter-spacing: -0.01em;
}

.question {
    font-weight: 600;
    font-size: 1.4rem;
    color: var(--accent-color);
    text-align: center;
    font-style: italic;
}

#problem {
    background-color: #edf5ed; /* Light green tint */
    padding: 3rem;
    border-radius: 10px;
}

.coming-soon {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.coming-soon p {
    margin-bottom: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.coming-soon h2 {
    margin-top: 3rem;
    font-size: 3rem;
    color: var(--secondary-color);
    position: relative;
    display: inline-block;
}

.coming-soon h2:before, .coming-soon h2:after {
    content: '';
    position: absolute;
    top: 50%;
    width: 60px;
    height: 2px;
    background-color: var(--accent-color);
}

.coming-soon h2:before {
    left: -80px;
}

.coming-soon h2:after {
    right: -80px;
}

/* Footer */
footer {
    background-color: var(--dark-bg);
    color: white;
    padding: 3rem 5%;
    text-align: center;
}

footer a {
    color: var(--secondary-color);
}

footer a:hover {
    color: var(--accent-color);
}

/* Code styling */
code, .code-text {
    font-family: 'Source Code Pro', monospace;
    background-color: rgba(138, 86, 172, 0.1); /* Light purple background */
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-size: 0.9em;
    color: var(--accent-color);
}

/* Highlight text */
.highlight {
    color: var(--accent-color);
    font-weight: 600;
    position: relative;
    padding: 0 0.2em;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: rgba(138, 86, 172, 0.3);
}

/* Tech section */
.tech-section {
    background-color: white;
    border-left: 5px solid var(--accent-color);
    padding: 2rem;
    margin: 3rem 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.tech-section h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.tech-section ul {
    list-style-type: none;
    margin-top: 1.5rem;
}

.tech-section li {
    margin-bottom: 1rem;
    position: relative;
    padding-left: 1.5rem;
}

.tech-section li:before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

/* Terminal-like elements */
.terminal {
    background-color: var(--dark-bg);
    color: #ddd;
    padding: 1.5rem;
    border-radius: 5px;
    font-family: 'Source Code Pro', monospace;
    font-size: 0.9rem;
    margin: 1.5rem 0;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border-top: 1rem solid rgba(44, 95, 45, 0.9);
    overflow-x: auto;
    line-height: 1.8;
}

.terminal::before {
    content: 'cimbology-cli';
    position: absolute;
    left: 1rem;
    top: -0.7rem;
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
}

.terminal .prompt {
    color: var(--secondary-color);
    font-weight: bold;
    padding-right: 0.5rem;
}

.terminal .response {
    color: #8aef8c;
    font-size: 0.85rem;
    padding-left: 1.5rem;
    opacity: 0.9;
}

.terminal code {
    background-color: transparent;
    color: #ff9966;
    padding: 0;
}

.terminal .command-line {
    margin-bottom: 0.2rem;
}

.terminal .response {
    margin-bottom: 1rem;
}

.contact {
    margin-top: 1rem;
}

/* Animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

#blinking-cursor {
    animation: blink 1s step-end infinite;
    font-weight: bold;
}

/* Contact Form Styles */
.contact-section {
    background-color: var(--light-bg);
    padding: 4rem 5%;
    text-align: center;
}

.contact-section h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.contact-section p {
    max-width: 600px;
    margin: 0 auto 2rem;
    color: var(--text-color);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: white;
    padding: 2rem;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: left;
    border-left: 5px solid var(--primary-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Source Code Pro', monospace;
    font-size: 1rem;
    background-color: rgba(44, 95, 45, 0.02);
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(44, 95, 45, 0.1);
}

.submit-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Courier Prime', monospace;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.2s;
}

.submit-btn:hover {
    background-color: #1d4d1e;
    transform: translateY(-2px);
}

.status-message {
    margin-top: 1rem;
    padding: 0.8rem;
    border-radius: 4px;
    font-weight: bold;
    display: none;
}

.status-message.success {
    background-color: rgba(76, 175, 80, 0.1);
    color: #2e7d32;
    border: 1px solid #2e7d32;
    display: block;
}

.status-message.error {
    background-color: rgba(244, 67, 54, 0.1);
    color: #c62828;
    border: 1px solid #c62828;
    display: block;
}

/* Media Queries */
@media (max-width: 768px) {
    .main-logo {
        height: 60px;
    }
    
    .hero-logo {
        height: 150px;
    }

    .hero-content h2 {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1.2rem;
    }

    .story-section h2 {
        font-size: 2.2rem;
    }

    .story-section h3 {
        font-size: 1.8rem;
    }

    .story-section p {
        font-size: 1rem;
    }

    .question {
        font-size: 1.2rem;
    }

    .coming-soon h2 {
        font-size: 2.5rem;
    }

    .coming-soon h2:before, .coming-soon h2:after {
        display: none;
    }
    
    .terminal {
        font-size: 0.85rem;
    }
    
    .tech-section {
        padding: 1.8rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .main-logo {
        height: 50px;
    }
    
    .hero-logo {
        height: 120px;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .story-section {
        margin-bottom: 4rem;
    }

    .character {
        padding: 1.5rem;
    }
    
    .terminal {
        font-size: 0.8rem;
        padding: 1rem;
    }
    
    .tech-section {
        padding: 1.5rem;
    }
    
    .coming-soon h2 {
        font-size: 1.8rem;
    }
    
    .scroll-text {
        display: none;
    }
    
    .contact-section h2 {
        font-size: 2rem;
    }
    
    .contact-form {
        padding: 1.2rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.6rem;
    }
    
    .submit-btn {
        width: 100%;
    }
}

@media (max-width: 375px) {
    .main-logo {
        height: 40px;
    }
    
    .hero-logo {
        height: 100px;
    }
    
    .hero-content h2 {
        font-size: 1.7rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .terminal {
        font-size: 0.75rem;
    }
    
    .tech-section li {
        margin-bottom: 0.8rem;
    }
    
    header {
        padding: 0.8rem 1rem;
    }
}

/* ==================================================
   Demo / Chat UI styles
   These rules reuse the root variables above so the
   demo and index pages share the same visual system.
   Only place demo-specific selectors under a .demo-root
   container to avoid interfering with other pages.
   ================================================== */

.demo-root {
    min-height: 100vh;
    padding: 2.5rem 5%; /* reduced top padding so content is visible below fixed header */
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background-color: var(--light-bg);
    color: var(--text-color);
    font-family: 'Courier Prime', 'Source Code Pro', monospace;
}

.demo-root .card {
    background-color: white;
    border: 1px solid rgba(44,95,45,0.06);
    border-radius: 0.75rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

.demo-root .card-header {
    font-family: 'Source Code Pro', monospace;
    font-weight: 700;
    color: var(--secondary-color);
    text-align: center;
    background: transparent;
}

.demo-root .message-area {
    padding: 1rem;
    color: var(--text-color);
    min-height: 6rem;
    max-height: 60vh;
    overflow-y: auto;
    background: transparent;
}

.demo-root .chat-history {
    background-color: white;
    border: 1px solid rgba(44,95,45,0.04);
    color: var(--text-color);
}

.demo-root .form-control {
    color: var(--text-color);
    border-color: rgba(44,95,45,0.08);
    background: white;
}

.demo-root .form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(138,86,172,0.12);
}

.demo-root .btn-primary {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.demo-root .btn-primary:hover,
.demo-root .btn-primary:focus {
    filter: brightness(0.95);
}

.demo-root .citation,
.demo-root .citation.badge {
    cursor: pointer;
    color: var(--accent-color);
}

.demo-root .pdf-iframe {
    width: 100%;
    height: 70vh;
    border: none;
}

.demo-root .demo-small-debug {
    white-space: pre-wrap;
    color: var(--secondary-color);
    background: rgba(0,0,0,0.04);
    padding: 8px;
    border-radius: 6px;
}

/* Center Bootstrap modal vertically and constrain its width for readability */
.modal.dialog-centered .modal-dialog {
    display: flex;
    align-items: center;
    min-height: calc(100% - 1rem);
}
.modal.dialog-centered .modal-content {
    max-width: 1100px;
    margin: 0 auto;
}

/* Apply centering and pointer handling only when the modal is actually shown by Bootstrap (.show) */
.modal.dialog-centered.show {
    display: flex !important;
    align-items: center;
    justify-content: center;
    pointer-events: auto; /* allow interaction when shown */
}

/* When modal content is taller than viewport, allow scrolling inside the modal body instead of pushing it to top */
.modal.dialog-centered.show .modal-body {
    max-height: calc(100vh - 160px);
    overflow: auto;
}

/* When the modal is shown, make the dialog take more of the viewport so PDFs are readable */
.modal.dialog-centered.show .modal-dialog {
    max-width: 90vw;
    width: 90vw;
    height: calc(100vh - 160px);
}

/* If the modal is using fullscreen mode, override the centering rules so the dialog truly fills the viewport */
.modal.modal-fullscreen .modal-dialog,
.modal.dialog-centered.modal-fullscreen .modal-dialog {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    align-items: stretch !important;
}

.modal.dialog-centered.show .modal-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.modal.dialog-centered.show .pdf-iframe {
    height: 100%;
}

/* support object or iframe used for PDF embedding */
.pdf-iframe,
object.pdf-iframe,
iframe.pdf-iframe {
    display: block;
    width: 100%;
}

/* When using modal-fullscreen ensure content and iframe occupy full area */
.modal.modal-fullscreen .modal-content {
    height: 100vh;
    padding: 0;
}
.modal.modal-fullscreen .modal-body {
    padding: 0;
    height: 100%;
}
.modal.modal-fullscreen .pdf-iframe {
    height: 100%;
    width: 100%;
}

/* Ensure hidden modal does not intercept pointer events */
.modal.dialog-centered {
    pointer-events: none;
}

/* Layout: make the main content area stretch so cards fill the page */
.demo-root .main-content {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap; /* allow columns to wrap on small screens */
}
.demo-root .main-content > .col-md-6 {
    display: flex;
    flex-direction: column;
}
.demo-root .card {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}
.demo-root .message-area {
    flex: 1 1 auto;
}

/* Pin controls (chat history + form) to the bottom of the demo-root */
/* Footer: we'll pin the demo footer to the viewport so input is always available */
.demo-root footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1050; /* above most content but below Bootstrap modals */
    margin: 0 auto;
    width: calc(100% - 10%); /* keep same horizontal padding as demo-root */
    margin-left: 5%;
    margin-right: 5%;
}

/* Give the footer a subtle background so it's visible over cards */
.demo-root footer {
    background: rgba(26,46,26,0.95);
    padding: 1rem;
    border-radius: 6px;
}

/* Make demo-root take full height and allow main content to grow so footer stays pinned */
.demo-root {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.demo-root .content-wrapper {
    /* the wrapper around header/main/footer to allow main to flex */
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    gap: 1rem;
}

/* reserve space equal to the footer so the main area doesn't get covered */
.demo-root .content-wrapper {
    padding-bottom: 140px; /* reserve more space for the fixed footer (input + margins) */
}

.demo-root .main-content {
    flex: 1 1 auto;
    min-height: 0; /* important for children to be able to scroll */
}

/* Ensure message-area scrolls internally without growing the card */
.demo-root .message-area {
    overflow-y: auto;
    min-height: 0;
}

/* Ensure columns behave like grid columns on medium+ screens and are full-width on small screens */
.demo-root .col-md-6 {
    flex: 0 0 100%;
    max-width: 100%;
}

@media (min-width: 768px) {
    /* Force two-column layout on wider screens. Use higher specificity to override competing rules. */
    .demo-root .main-content > .col-md-6,
    .demo-root > .content-wrapper .main-content > .col-md-6 {
        flex: 0 0 50% !important;
    }
}

/* At larger desktop widths, ensure a two-column grid and give cards a consistent min-height */
@media (min-width: 992px) {
    /* Center the main content grid and make its total width match the footer width */
    .demo-root .main-content {
        display: grid !important;
        grid-template-columns: 1fr 1fr; /* two equal flexible columns */
        width: calc(100% - 10%);      /* match footer width (same as .demo-root footer) */
        max-width: calc(100% - 10%);
        margin: 0 auto;               /* center grid in the page */
        position: relative;           /* for the centered divider */
        align-items: start;
    }

    .demo-root .main-content > .col-md-6 {
        width: 100%;
    }

    .demo-root .card {
        min-height: 50em;
        width: 100%;
        margin: 0;
    }

/*      Add a subtle divider centered between the two cards 
    .demo-root .main-content::before {
        content: '';
        position: absolute;
        width: 1px;
        height: 60%;
        background: rgba(0,0,0,0.04);
        left: 50%;
        transform: translateX(-0.5px);
        top: 12vh;
        pointer-events: none;
    } */
}

/* Ensure footer is clickable and input can receive focus */
.demo-root footer {
    pointer-events: auto;
}

/* Ensure form controls inside the fixed footer are interactive */
.demo-root footer .form-control,
.demo-root footer .btn {
    pointer-events: auto;
}

/* If footer overlaps content on small screens, add top inset and box-shadow */
@media (max-width: 767px) {
    .demo-root footer {
        position: sticky;
        bottom: 0;
        box-shadow: 0 -6px 20px rgba(0,0,0,0.12);
    }
}

/* Partially Generated by Copilot */
/* Main Navigation Menu */
.main-nav {
    background-color: var(--primary-color);
    padding: 15px 0;
}

.main-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.main-nav a {
    color: #ffffff;
    text-decoration: none;
    font-weight: var(--font-weight-semibold);
    transition: color 0.3s;
    padding: 5px 10px;
}

.main-nav a:hover {
    color: var(--secondary-color);
}

@media (max-width: 768px) {
    .main-nav ul {
        gap: 15px;
        font-size: 14px;
    }
}

/* Partially Generated by Copilot */
/* Hero Section - Personal Portfolio */
.hero-personal {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-bg) 100%);
    color: #ffffff;
    padding: 80px 20px;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 60px;
    align-items: center;
}

.hero-image {
    flex: 0 0 300px;
}

.professional-photo {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 5px solid var(--secondary-color);
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 48px;
    margin: 0 0 10px 0;
    font-weight: var(--font-weight-bold);
}

.hero-text .subtitle {
    font-size: 28px;
    color: var(--secondary-color);
    margin: 0 0 20px 0;
    font-weight: var(--font-weight-semibold);
}

.intro-paragraph {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.hero-cta-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: var(--font-weight-semibold);
    transition: all 0.3s;
    display: inline-block;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #c74d03;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.btn-secondary:hover {
    background-color: #ffffff;
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-image {
        flex: 0 0 auto;
    }
    
    .professional-photo {
        width: 200px;
        height: 200px;
    }
    
    .hero-text h1 {
        font-size: 36px;
    }
    
    .hero-text .subtitle {
        font-size: 22px;
    }
}

/* Partially Generated by Copilot */
/* About Me Section */
.about-me {
    background-color: var(--light-bg);
    padding: 60px 20px;
}

.about-me .container {
    max-width: 1200px;
    margin: 0 auto;
}

.about-me h2 {
    text-align: center;
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 40px;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.about-text p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 20px;
}

.about-text a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: var(--font-weight-semibold);
}

.about-text a:hover {
    text-decoration: underline;
}

.about-highlights {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.about-highlights h3 {
    color: var(--primary-color);
    font-size: 24px;
    margin-bottom: 20px;
}

.about-highlights ul {
    list-style: none;
    padding: 0;
}

.about-highlights li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.about-highlights li:last-child {
    border-bottom: none;
}

.about-highlights strong {
    color: var(--secondary-color);
}

@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
    }
}

/* Partially Generated by Copilot */
/* Case Study Teaser Section */
.case-study-teaser {
    background-color: #ffffff;
    padding: 60px 20px;
}

.case-study-teaser .container {
    max-width: 1200px;
    margin: 0 auto;
}

.case-study-teaser h2 {
    color: var(--primary-color);
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 15px;
}

.case-study-subtitle {
    text-align: center;
    font-size: 1.2em;
    color: #555;
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.case-study-teaser .story-section {
    margin-bottom: 40px;
}

.case-study-teaser .story-section h3 {
    color: var(--primary-color);
    font-size: 1.8em;
    margin-bottom: 20px;
}

.case-study-teaser .story-section h4 {
    color: var(--secondary-color);
    font-size: 1.4em;
    margin-bottom: 15px;
}

.case-study-teaser .character {
    background-color: var(--light-bg);
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid var(--secondary-color);
}

.case-study-teaser .character-details p {
    margin-bottom: 10px;
    line-height: 1.6;
    color: #333;
}

.case-study-teaser .question {
    font-style: italic;
    color: var(--accent-color);
    margin-left: 20px;
    font-size: 1.1em;
}

.case-study-findings {
    background-color: var(--light-bg);
    padding: 40px;
    border-radius: 8px;
    margin-top: 40px;
}

.case-study-findings h3 {
    color: var(--primary-color);
    font-size: 2em;
    margin-bottom: 20px;
    text-align: center;
}

.findings-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 40px 0;
}

.finding-card {
    background-color: #ffffff;
    padding: 30px 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.finding-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.finding-card.highlight {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #ffffff;
}

.finding-stat {
    font-size: 3em;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.finding-card.highlight .finding-stat {
    color: #ffffff;
}

.finding-label {
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.finding-card.highlight .finding-label {
    color: #ffffff;
}

.finding-desc {
    font-size: 0.9em;
    color: #666;
}

.finding-card.highlight .finding-desc {
    color: rgba(255, 255, 255, 0.9);
}

.findings-summary-text {
    text-align: center;
    font-size: 1.1em;
    line-height: 1.8;
    max-width: 900px;
    margin: 30px auto;
    color: #333;
}

.case-study-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap;
}

.case-study-cta .btn-primary,
.case-study-cta .btn-secondary {
    padding: 15px 30px;
    font-size: 1.1em;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.case-study-cta .btn-primary {
    background-color: var(--secondary-color);
    color: #ffffff;
}

.case-study-cta .btn-primary:hover {
    background-color: #c74f03;
}

.case-study-cta .btn-secondary {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.case-study-cta .btn-secondary:hover {
    background-color: var(--primary-color);
    color: #ffffff;
}

@media (max-width: 768px) {
    .case-study-teaser h2 {
        font-size: 2em;
    }
    
    .case-study-subtitle {
        font-size: 1em;
    }
    
    .findings-summary {
        grid-template-columns: 1fr 1fr;
    }
    
    .finding-stat {
        font-size: 2.5em;
    }
    
    .case-study-cta {
        flex-direction: column;
        align-items: stretch;
    }
    
    .case-study-cta .btn-primary,
    .case-study-cta .btn-secondary {
        width: 100%;
        text-align: center;
    }
}

/* Partially Generated by Copilot */
/* AI Philosophy Teaser Section */
.ai-philosophy-teaser {
    background-color: #ffffff;
    padding: 60px 20px;
}

.ai-philosophy-teaser .container {
    max-width: 1200px;
    margin: 0 auto;
}

.ai-philosophy-teaser h2 {
    text-align: center;
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 40px;
}

.philosophy-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.philosophy-text .lead {
    font-size: 1.25em;
    line-height: 1.6;
    color: #333;
    margin-bottom: 20px;
}

.philosophy-text blockquote {
    border-left: 4px solid var(--secondary-color);
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    font-size: 1.375em;
    color: var(--primary-color);
    line-height: 1.5;
}

.philosophy-text p {
    line-height: 1.7;
    color: #333;
    margin-bottom: 15px;
}

.philosophy-text strong {
    color: var(--secondary-color);
}

.philosophy-principles {
    background-color: var(--light-bg);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.philosophy-principles h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.5em;
}

.philosophy-principles ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.philosophy-principles li {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.philosophy-principles li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.philosophy-principles strong {
    color: var(--secondary-color);
    display: block;
    margin-bottom: 5px;
    font-size: 1.1em;
}

.philosophy-principles br {
    margin-bottom: 5px;
}

.philosophy-cta {
    text-align: center;
    margin-top: 40px;
}

.philosophy-cta .btn-primary {
    padding: 15px 30px;
    font-size: 1.1em;
    text-decoration: none;
    border-radius: 5px;
    background-color: var(--secondary-color);
    color: #ffffff;
    transition: all 0.3s ease;
    display: inline-block;
}

.philosophy-cta .btn-primary:hover {
    background-color: #c74f03;
}

@media (max-width: 768px) {
    .ai-philosophy-teaser h2 {
        font-size: 2em;
    }
    
    .philosophy-content {
        grid-template-columns: 1fr;
    }
    
    .philosophy-text .lead {
        font-size: 1.1em;
    }
    
    .philosophy-text blockquote {
        font-size: 1.2em;
    }
}

/* Partially Generated by Copilot */
/* Contact Section - Availability Callout */
.availability-callout {
    background-color: var(--light-bg);
    border: 3px solid var(--primary-color);
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 40px;
}

.availability-callout h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 1.8em;
}

.availability-callout p {
    line-height: 1.7;
    margin-bottom: 15px;
    color: #333;
}

.availability-callout ul {
    margin: 20px 0;
    padding-left: 20px;
    color: #333;
}

.availability-callout li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.availability-callout strong {
    color: var(--secondary-color);
}

/* Mobile menu toggle button - hidden by default */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {

    /* Show the hamburger menu button */
    .mobile-menu-toggle {
        display: block;
    }

    /* Make header relative so dropdown menu positions correctly */
    header {
        position: relative;
    }

    /* Position the logo container */
    .logo-container {
        position: relative;
        padding: 15px 60px 15px 20px;
        /* Add right padding for hamburger button */
    }

    /* Dropdown navigation menu */
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--primary-color);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    /* Show menu when active */
    .main-nav.active {
        max-height: 400px;
    }

    /* Stack navigation items vertically */
    .main-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 0;
        margin: 0;
    }

    /* Full width nav items with borders */
    .main-nav ul li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .main-nav ul li:last-child {
        border-bottom: none;
    }

    /* Make links full width and add padding */
    .main-nav ul li a {
        display: block;
        padding: 15px 20px;
        width: 100%;
    }

    /* Hamburger animation when menu is active */
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
}

/* Skills & Experience Section */
.skills-experience {
    background-color: var(--dark-bg);
    padding: 80px 20px;
    color: white;
}

.skills-experience h2 {
    text-align: center;
    font-size: 2.5em;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.skills-experience .section-intro {
    text-align: center;
    font-size: 1.2em;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 50px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.skill-category {
    background: linear-gradient(135deg, rgba(44, 95, 45, 0.3) 0%, rgba(26, 46, 26, 0.5) 100%);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(226, 92, 4, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(226, 92, 4, 0.2);
    border-color: rgba(226, 92, 4, 0.5);
}

.skill-category h3 {
    color: var(--secondary-color);
    font-size: 1.5em;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(226, 92, 4, 0.3);
}

.skill-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.skill-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    border-left: 3px solid var(--primary-color);
    transition: all 0.3s ease;
}

.skill-item:hover {
    background: rgba(226, 92, 4, 0.1);
    border-left-color: var(--secondary-color);
    transform: translateX(5px);
}

.skill-name {
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.95em;
    flex: 1;
}

.skill-years {
    color: var(--secondary-color);
    font-weight: var(--font-weight-bold);
    font-size: 0.9em;
    white-space: nowrap;
    margin-left: 15px;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .skills-experience {
        padding: 60px 20px;
    }

    .skills-experience h2 {
        font-size: 2em;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .skill-category {
        padding: 25px;
    }

    .skill-category h3 {
        font-size: 1.3em;
    }

    .skill-item {
        padding: 8px 12px;
    }

    .skill-name {
        font-size: 0.9em;
    }

    .skill-years {
        font-size: 0.85em;
    }

}
