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

/* --- "American Psycho" Business Card Theme --- */

:root {
    /* Palette: "Bone" with black text and a subtle, desaturated blue accent. */
    --bg-color: #F9F9F9; /* Off-white, like premium paper stock */
    --text-color: #222222; /* A soft, deep black for text */
    --accent-color: #6D7B8D; /* A muted, sophisticated slate blue */
    --border-color: #EAEAEA; /* A very fine, light grey for borders */

    /* Typography */
    --font-family-sans: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --font-family-serif: 'Cormorant Garamond', 'Times New Roman', Times, serif;
}

body {
    font-family: var(--font-family-sans);
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding: 2rem;
    transition: background-color 3s ease-in-out; /* Smooth transition for body background */
}

.container {
    max-width: 800px; /* Narrower container for a more focused, card-like feel */
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.7;
}

/* Header & Navigation */
header {
    background-color: transparent;
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 4rem;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

header h1 {
    font-family: var(--font-family-serif);
    font-size: 2rem; /* Made larger */
    font-weight: 700; /* Made bolder */
    margin: 0;
    letter-spacing: 0.5px;
}

header h1 a {
    color: var(--text-color);
    transition: opacity 0.3s ease;
}
header h1 a:hover {
    opacity: 0.7;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

nav ul li {
    margin-left: 0;
}

nav ul li a {
    color: var(--text-color);
    font-weight: 400;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

nav ul li a.active {
    font-weight: 700; /* Bolder */
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 6px;
}

/* Change body background when business card is hovered */
body:has(.hero-section .business-card:hover),
body:has(.hero-section .business-card.active) {
    background-color: #E0E0E0; /* Slightly darker background to make the card pop */
}

/* Hero Section (Homepage) */
.hero-section {
    background: none;
    padding: 6rem 0;
    min-height: 60vh; /* Give it height to vertically center the card */
    display: flex;
    align-items: center;
    justify-content: center;
}

.business-card {
    background-color: #FDFDFD; /* Slightly brighter than the body for contrast */
    padding: 3rem 4rem;
    text-align: center;
    border: 1px solid #E0E0E0;
    box-shadow: 0 10px 30px -15px rgba(0, 0, 0, 0.15);
    /* Subtle noise texture for that premium paper feel */
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAiIGhlaWdodD0iMTAwIj48ZmlsdGVyIGlkPSJub2lzZSI+PGZlVHVyYnVsZW5jZSB0eXBlPSJmcmFjdGFsTm9pc2UiIGJhc2VGcmVxdWVuY3k9IjAuOCIgbnVtT2N0YXZlcz0iMyIgc3RpdGNoVGlsZXM9InN0aXRjaCIvPjwvZmlsdGVyPjxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbHRlcj0idXJsKCNub2lzZSkiIG9wYWNpdHk9IjAuMDI1Ii8+PC9zdmc+');
    transition: box-shadow 3s ease-in-out, transform 3s ease-in-out; /* Smooth transitions for hover effect */
    cursor: pointer;
}

.business-card:hover,
.business-card.active {
    box-shadow: 0 25px 70px -20px rgba(0, 0, 0, 0.3); /* Larger, more pronounced shadow on hover */
    transform: translateY(-20px); /* Lift the card */
}

.hero-section h1 {
    font-family: var(--font-family-serif);
    font-size: 3rem; /* Adjusted to fit the card context */
    font-weight: 600; /* A bit more presence */
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.hero-section .subtitle {
    font-family: var(--font-family-sans);
    font-size: 1rem; /* Adjusted for card context */
    font-weight: 400;
    color: var(--accent-color);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Business Card Interactive Links */
.card-links {
    margin-top: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: max-height 0.8s ease, margin-top 0.8s ease, opacity 0.8s ease;
}

.business-card.active .card-links {
    margin-top: 2.5rem;
    max-height: 200px;
    opacity: 1;
}

.card-link {
    font-family: var(--font-family-sans);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 0.8rem;
    border: 1px solid var(--accent-color);
    background-color: #FFFFFF;
    box-shadow: 0 4px 10px rgba(109, 123, 141, 0.15);
    transition: all 0.3s ease;
    transform: translateY(15px);
    opacity: 0;
    text-decoration: none;
}

.business-card.active .card-link {
    transform: translateY(0);
    opacity: 1;
}

.business-card.active .card-link:nth-child(1) { transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.2s, opacity 0.6s ease 0.2s, background-color 0.3s ease, color 0.3s ease; }
.business-card.active .card-link:nth-child(2) { transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.4s, opacity 0.6s ease 0.4s, background-color 0.3s ease, color 0.3s ease; }

.card-link:hover {
    background-color: var(--text-color);
    color: var(--bg-color);
    border-color: var(--text-color);
}

/* Sections */
main section:not(.panel) {
    padding: 4rem 0;
    border-bottom: none;
}

main section:last-of-type {
    padding-bottom: 0;
}

h3 {
    font-family: var(--font-family-serif);
    font-size: 2.25rem;
    font-weight: 600;
    text-align: left;
    margin-bottom: 2.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

h4 {
    font-family: var(--font-family-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1rem;
    border-left: none;
    padding-left: 0;
}

p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-color);
}

.about-section p {
    transition: transform 0.3s ease-in-out;
}

.about-section p:hover {
    transform: scale(1.03);
    cursor: default; /* Optional: Keeps the cursor as default instead of the text 'I-beam' */
}

/* Skills Section */
.skills-section .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); /* Two columns, responsive */
    gap: 3rem;
}

.skill-category ul ul { /* Styling for nested ul */
    margin-top: 0.5rem;
    margin-left: 1.5rem;
    list-style: disc; /* Use disc for sub-points */
    font-size: 0.95rem;
    color: var(--accent-color); /* Subtler color for sub-points */
}

.skill-category ul ul li {
    margin-bottom: 0.5rem;
    padding: 0;
}

.skill-category {
    background: none;
    padding: 0;
    box-shadow: none;
}

.skill-category h4 {
    font-family: var(--font-family-sans);
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-color);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
}

.skill-category ul {
    list-style: none;
    padding-left: 0;
}

.skill-category ul li {
    background: none;
    margin-bottom: 10px;
    padding: 0;
    font-size: 1rem;
}

.wide-category {
    grid-column: 1 / -1; /* Spans the full width of the container */
}

.wide-category > ul {
    column-count: 2; /* Splits the long list into two balanced columns */
    column-gap: 2rem;
}

.wide-category > ul > li {
    break-inside: avoid; /* Prevents a list item from breaking awkwardly in half across columns */
}

/* Projects Section */
.project-card {
    background: none;
    padding: 2rem; /* Added horizontal padding for card effect */
    border-radius: 4px; /* Slightly rounded corners for the card */
    margin-bottom: 0;
    box-shadow: none;
    border: 1px solid transparent; /* Prepare for border on hover */
    border-top-color: var(--border-color); /* Keep the top separator */
    transition: all 0.3s ease-in-out;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px -20px rgba(0, 0, 0, 0.15);
    border-color: var(--border-color);
    background-color: #FFFFFF;
}

.projects-section .project-card:first-of-type {
    border-top: none;
    padding-top: 0;
}

.project-card h4 {
    color: var(--text-color);
}

.project-card a {
    margin-right: 15px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

/* Contact Section */
.contact-section {
    text-align: left;
}

.contact-section a {
    font-weight: 400;
}

/* Project 1: Tech Stack Interactive Demo */
.tech-project-wrapper {
    margin-top: 2rem;
    border: 1px solid var(--accent-color);
    box-shadow: 0 0 15px rgba(109, 123, 141, 0.25);
    background-color: #FFFFFF;
    padding: 2rem;
}

.tech-project-wrapper h4 {
    margin-bottom: 1.5rem;
}

.tech-stack-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* Explicitly create exactly 5 columns */
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.tech-card {
    border: 1px solid var(--border-color);
    padding: 1rem 0.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: var(--bg-color);
}

.tech-card:hover, .tech-card.active {
    border-color: var(--text-color);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    background-color: #FFFFFF;
    transform: translateY(-3px);
}

.tech-abbr {
    font-family: var(--font-family-serif);
    font-size: 1.8rem;
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    letter-spacing: 1px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.tech-card:hover .tech-abbr, .tech-card.active .tech-abbr {
    color: var(--accent-color);
}
.tech-name { font-weight: 600; font-size: 0.75rem; }

.tech-description-box {
    padding: 1.5rem;
    background-color: var(--bg-color);
    border-left: 3px solid var(--accent-color);
    min-height: 80px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.tech-description-box p { margin-bottom: 0; font-size: 0.95rem; }

/* API Interactive Demo */
.api-project-wrapper {
    margin-top: 2rem;
    border: 1px solid var(--accent-color);
    box-shadow: 0 0 15px rgba(109, 123, 141, 0.25);
    background-color: #FFFFFF;
}

.api-explorer {
    display: flex;
    border: none;
    border-bottom: 1px solid var(--border-color);
    background-color: transparent;
    min-height: 400px;
}

.api-sidebar {
    width: 25%;
    border-right: 1px solid var(--border-color);
    background-color: var(--bg-color);
    display: flex;
    flex-direction: column;
}

.api-tab {
    padding: 1.25rem 1rem;
    text-align: left;
    border: none;
    background: none;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    font-family: var(--font-family-sans);
    font-size: 0.9rem;
    color: var(--accent-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.api-tab:hover {
    background-color: #EFEFEF;
}

.api-tab.active {
    background-color: #FFFFFF;
    font-weight: 600;
    color: var(--text-color);
    border-right: 2px solid var(--text-color);
    margin-right: -1px;
}

.api-content {
    width: 75%;
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.api-view {
    display: none;
    animation: fadeIn 0.4s ease;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
}

.api-view.active {
    display: block;
}

.api-visuals {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 10px;
}

.api-entity {
    text-align: center;
    padding: 1.5rem 1rem;
    border: 1px solid var(--border-color);
    width: 120px;
    transition: all 0.3s ease;
    background-color: #FFFFFF;
}

.api-entity.active {
    border-color: var(--text-color);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    transform: scale(1.05);
}

.entity-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.5rem;
}

.entity-label {
    font-weight: 600;
    font-size: 0.85rem;
}

.api-arrow {
    font-size: 0.9rem;
    color: var(--accent-color);
    font-weight: 600;
    opacity: 0.2;
    transition: opacity 0.3s ease;
}

.api-arrow.active {
    opacity: 1;
    color: var(--text-color);
}

.api-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-top: 1rem;
    justify-content: flex-start;
}

.api-controls select {
    padding: 0.6rem;
    border: 1px solid var(--border-color);
    font-family: var(--font-family-sans);
    background-color: #FFFFFF;
}

.action-button {
    padding: 0.6rem 1.5rem;
    background-color: var(--text-color);
    color: var(--bg-color);
    border: 1px solid var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-family-sans);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.action-button:hover:not(:disabled) {
    background-color: var(--bg-color);
    color: var(--text-color);
}

.action-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.api-console {
    background-color: #222222;
    color: #e0e0e0;
    padding: 1.5rem;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    min-height: 200px;
    max-height: 300px;
    overflow-y: auto;
}

.api-console h4 {
    color: var(--accent-color);
    margin-top: 0;
    margin-bottom: 1rem;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1rem;
    border: none;
}

.log-entry { margin-bottom: 0.5rem; }
.log-success { color: #81C784; }
.log-info { color: #e0e0e0; }
.log-json { color: #FFF59D; white-space: pre-wrap; margin-top: 0.5rem; }

/* SAP Explorer Interactive Demo */
.sap-project-wrapper {
    margin-top: 2rem;
    border: 1px solid var(--accent-color);
    box-shadow: 0 0 15px rgba(109, 123, 141, 0.25); /* Accent color soft glow */
    background-color: #FFFFFF;
}

.sap-explorer {
    display: flex;
    border: none;
    border-bottom: 1px solid var(--border-color);
    background-color: transparent;
    margin-top: 0;
    min-height: 300px;
}

.sap-sidebar {
    width: 25%;
    border-right: 1px solid var(--border-color);
    background-color: var(--bg-color);
    display: flex;
    flex-direction: column;
}

.sap-tab {
    padding: 1.25rem 1rem;
    text-align: left;
    border: none;
    background: none;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    font-family: var(--font-family-sans);
    font-size: 0.9rem;
    color: var(--accent-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.sap-tab:hover {
    background-color: #EFEFEF;
}

.sap-tab.active {
    background-color: #FFFFFF;
    font-weight: 600;
    color: var(--text-color);
    border-right: 2px solid var(--text-color);
    margin-right: -1px; /* Pull it over the border to create a seamless active state */
}

.sap-content {
    width: 40%;
    padding: 2rem;
}

.sap-view {
    display: none;
    animation: fadeIn 0.4s ease;
}

.sap-view.active {
    display: block;
}

.sap-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
    font-size: 0.85rem;
}

.sap-table th, .sap-table td {
    border: 1px solid var(--border-color);
    padding: 0.75rem;
    text-align: left;
}

.sap-table th {
    background-color: var(--bg-color);
    font-weight: 600;
}

/* SAP Tooltips */
.sap-field {
    position: relative;
    cursor: help;
    border-bottom: 1px dashed var(--accent-color);
}

.sap-field::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 150%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--text-color);
    color: var(--bg-color);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-family: var(--font-family-sans);
    font-weight: 400;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 10;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.sap-field:hover::after {
    opacity: 1;
    visibility: visible;
}

/* SAP Technical Diagram */
.sap-diagram {
    width: 35%;
    padding: 2rem;
    border-left: 1px solid var(--border-color);
    background-color: #FDFDFD;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.diagram-root {
    border: 1px solid var(--text-color);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 0.85rem;
    background-color: #FFFFFF;
    z-index: 2;
}

.diagram-connections {
    width: 75%;
    height: 20px;
    border: 1px solid var(--border-color);
    border-bottom: none;
    margin-top: 15px;
    position: relative;
}

.diagram-connections::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 50%;
    width: 1px;
    height: 15px;
    background-color: var(--border-color);
}

.diagram-branches {
    display: flex;
    width: 100%;
    justify-content: space-between;
    gap: 15px;
}

.diagram-branch {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 30%;
    opacity: 0.3;
    transition: all 0.3s ease;
}

.diagram-branch.active {
    opacity: 1;
    transform: translateY(-5px);
}

.branch-box {
    border: 1px solid var(--border-color);
    background-color: var(--bg-color);
    padding: 0.5rem;
    text-align: center;
    font-size: 0.7rem;
    width: 100%;
    transition: all 0.3s ease;
    /* Ensure long words break safely instead of overflowing */
    overflow-wrap: break-word;
    word-wrap: break-word;
    line-height: 1.3;
}

.diagram-branch.active .branch-box {
    border-color: var(--text-color);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    background-color: #FFFFFF;
}

.branch-title { display: block; font-weight: 600; color: var(--text-color); }
.branch-desc { color: var(--accent-color); display: block; margin-top: 2px; }

.branch-keys {
    margin-top: 0.5rem;
    font-size: 0.65rem;
    color: var(--accent-color);
    text-align: center;
    transition: color 0.3s ease;
}

.diagram-branch.active .branch-keys {
    color: var(--text-color);
    font-weight: 600;
}

/* Generic Quiz Styles */
.quiz-container {
    margin-top: 0;
    padding: 2rem;
    border: none;
    background-color: transparent;
}

.quiz-container h4 {
    margin-bottom: 1rem;
}

.quiz-question {
    margin-bottom: 1.5rem;
}

.quiz-question label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
}

.quiz-question select {
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    font-family: var(--font-family-sans);
    background-color: #FFFFFF;
    min-width: 200px;
}

.quiz-feedback {
    margin-left: 1rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.quiz-feedback.correct { color: #2E7D32; }
.quiz-feedback.incorrect { color: #C62828; }

/* Project 4: Training Matrix Generator */
.matrix-wrapper {
    display: flex;
    margin-top: 2rem;
    border: 1px solid var(--accent-color);
    box-shadow: 0 0 15px rgba(109, 123, 141, 0.25);
    background-color: #FFFFFF;
}

.matrix-sidebar {
    width: 35%;
    padding: 2rem;
    border-right: 1px solid var(--border-color);
    background-color: var(--bg-color);
    display: flex;
    flex-direction: column;
}

.sidebar-desc {
    font-size: 0.85rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.role-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.role-btn {
    padding: 1rem;
    text-align: left;
    background-color: #FFFFFF;
    border: 1px solid var(--border-color);
    cursor: pointer;
    font-family: var(--font-family-sans);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--accent-color);
    transition: all 0.3s ease;
}

.role-btn:hover { background-color: #F9F9F9; }

.role-btn.active {
    background-color: var(--text-color);
    color: var(--bg-color);
    border-color: var(--text-color);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.matrix-content {
    width: 65%;
    padding: 2rem;
}

.course-tree {
    position: relative;
    padding-left: 2.5rem;
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.course-tree::before {
    content: '';
    position: absolute;
    left: 0;
    top: 2rem;
    bottom: 2rem;
    width: 2px;
    background-color: var(--border-color);
    z-index: 1;
}

.course-node {
    position: relative;
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    padding: 1.25rem;
    opacity: 0.35;
    transition: all 0.4s ease;
    z-index: 2;
}

.course-node::after {
    content: '';
    position: absolute;
    left: -2.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 2.5rem;
    height: 2px;
    background-color: var(--border-color);
    transition: background-color 0.4s ease;
    z-index: 1;
}

.node-dot {
    position: absolute;
    left: -2.5rem;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--bg-color);
    border: 2px solid var(--border-color);
    z-index: 3;
    transition: all 0.4s ease;
}

.course-node.active {
    opacity: 1;
    border-color: var(--text-color);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.course-node.active::after { background-color: var(--text-color); }
.course-node.active .node-dot {
    border-color: var(--text-color);
    background-color: var(--text-color);
}

.course-node h5 { font-family: var(--font-family-serif); font-size: 1.2rem; margin-bottom: 0.25rem; color: var(--text-color); }
.course-node p { font-size: 0.9rem; margin-bottom: 0; color: var(--accent-color); transition: color 0.4s ease; }
.course-node.active p { color: var(--text-color); }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* AI Tools Page Panels */
.panel {
    padding: 5rem 0;
    min-height: 70vh;
    display: flex;
    align-items: center;
    transition: background-color 0.5s ease;
    border-bottom: 1px solid var(--border-color);
}

.panel .container {
    max-width: 1200px; /* Expands the project applications to give them more breathing room */
}

.panel:last-of-type {
    border-bottom: none;
    min-height: auto; /* The last panel doesn't need to be as tall */
}

.panel:nth-child(even) {
    background-color: #F4F4F4; /* A slightly cooler, but still very light, grey for contrast */
}

.content-subsection {
    margin-top: 3rem;
}

.content-subsection:first-of-type {
    margin-top: 0;
}

.content-subsection h4 {
    color: var(--accent-color);
}

/* Generated Content Media Cards */
.generated-media-card {
    display: flex;
    gap: 2rem;
    margin-top: 1.5rem;
    background-color: #FFFFFF;
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}

.media-container {
    flex: 1;
    background-color: #F4F4F4; /* Placeholder background */
}

.media-prompt {
    flex: 1;
    background-color: var(--bg-color);
    padding: 1.5rem;
    border-left: 3px solid var(--accent-color);
    font-size: 0.95rem;
}

/* Footer */
footer {
    background: none;
    color: var(--accent-color);
    text-align: center;
    padding: 4rem 0 2rem 0;
    font-size: 0.9rem;
    border-top: 1px solid var(--border-color);
    margin-top: 4rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    header .container {
        gap: 1rem;
    }

    .hero-section h1 {
        font-size: 3rem;
    }

    h3 {
        font-size: 2rem;
    }

    .api-explorer {
        flex-direction: column;
    }
    .api-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    .api-tab.active {
        border-right: none;
        border-bottom: 2px solid var(--text-color);
        margin-bottom: -1px;
    }
    .api-content { width: 100%; }

    .sap-explorer {
        flex-direction: column;
    }
    .sap-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    .sap-tab.active {
        border-right: none;
        border-bottom: 2px solid var(--text-color);
        margin-bottom: -1px;
    }
    .sap-content {
        width: 100%;
    }
    .sap-diagram {
        width: 100%;
        border-left: none;
        border-top: 1px solid var(--border-color);
        padding: 2rem 0;
    }

    .matrix-wrapper { flex-direction: column; }
    .matrix-sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--border-color); }
    .matrix-content { width: 100%; }

    .generated-media-card {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .tech-stack-grid { grid-template-columns: repeat(2, 1fr); } /* On mobile, stack into a 2-column grid */
}

/* Back to Top Button */
#backToTopBtn {
    display: none;
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 99;
    border: 1px solid var(--border-color);
    outline: none;
    background-color: var(--bg-color);
    color: var(--text-color);
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

#backToTopBtn:hover {
    background-color: var(--text-color);
    color: var(--bg-color);
    border-color: var(--text-color);
}