/* Basic Reset and Font */
body {
    font-family: Calibre, Inter, "San Francisco", "SF Pro Text", -apple-system, system-ui, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: var(--slate);
    background-color: var(--navy);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Dark Theme */
body.dark-theme {
    background-color: #121212;
    color: #f8f9fa;
}

body.dark-theme header {
    background: #1e1e1e;
    box-shadow: 0 2px 5px rgba(255,255,255,0.05);
}

body.dark-theme header h1, body.dark-theme header p {
    color: #f8f9fa;
}

body.dark-theme header nav a {
    color: #f8f9fa;
}

body.dark-theme header nav a:hover {
    background-color: #2c2c2c;
}

body.dark-theme .section h2 {
    color: #f8f9fa;
}

body.dark-theme .job-entry, body.dark-theme .project-entry {
    background: #1e1e1e;
    box-shadow: 0 2px 5px rgba(255,255,255,0.1);
}

body.dark-theme .job-entry:hover, body.dark-theme .project-entry:hover {
    box-shadow: 0 4px 15px rgba(255,255,255,0.15);
}

body.dark-theme .job-entry h3, body.dark-theme .project-entry h3 {
    color: #f8f9fa;
}

body.dark-theme .company {
    color: #bbb;
}

body.dark-theme .job-entry li {
    background: #2c2c2c;
    color: #f8f9fa;
}

body.dark-theme .job-entry li:hover {
    background: #3a3a3a;
}

body.dark-theme .contact-info p i, body.dark-theme .social-icon {
    color: #f8f9fa;
}

body.dark-theme .social-icon:hover {
    color: #1abc9c;
}

body.dark-theme .btn {
    background: #1abc9c;
}

body.dark-theme .btn:hover {
    background: #16a085;
}

body.dark-theme footer {
    background: #1e1e1e;
}


/* Existing Styles */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Container for Centering Content */
.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header and Navigation */
header {
    background: transparent;
    color: var(--lightestSlate);
    padding: 0;
    height: 100px;
    display: flex;
    align-items: center;
    box-shadow: none;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease, color 0.3s ease;
}

header h1 {
    margin: 0;
    font-size: 2.5rem;
    text-align: center;
}

header p {
    margin: 0.5rem 0 0;
    font-size: 1.2rem;
    text-align: center;
    color: #555;
}

header nav ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    display: flex;
    justify-content: center;
}

header nav ul li {
    margin: 0 15px;
}

header nav a {
    color: #34495e;
    text-decoration: none;
    font-weight: bold;
    padding: 8px 12px;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

header nav a:hover {
    background-color: #e9ecef;
    color: #2c3e50;
}

/* Main Content Sections */
.section {
    padding: 3rem 0;
    border-bottom: 1px solid #e0e0e0;
}

#about {
    padding: 2rem 0;
}

.section:last-of-type {
    border-bottom: none;
}

.section h2 {
    text-align: left;
    color: var(--lightestSlate);
    font-size: 32px;
    margin: 10px 0px 40px;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 300px;
    height: 1px;
    background: var(--lightNavy);
}

/* Home Page Specifics */
.home-main {
    text-align: left;
}

.hero-content {
    padding: 100px 0;
    max-width: 1000px;
}

.hero-content h2 {
    font-size: 2.5rem;
    color: var(--lightestSlate);
}

/* About Page Specifics */
.about-flex {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 30px;
    margin-top: 20px;
}

.profile-photo-container {
    flex: 0 0 200px;
    text-align: center;
}

.profile-photo {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #2c2c2c;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-content {
    flex: 1;
    max-width: 700px;
}

.about-content p {
    text-align: justify;
    line-height: 1.5;
    margin-bottom: 12px;
    font-size: 16px;
}

/* Section numbering */
.section-number {
    color: var(--green);
    font-family: ui-monospace, SFMono-Regular, "SF Mono", "Fira Code", "Fira Mono", "Roboto Mono", monospace;
    font-size: 16px;
    margin-right: 8px;
    font-weight: normal;
}

/* Work experience layout */
.work-container {
    display: flex;
    gap: 40px;
    margin-top: 30px;
    min-height: 350px;
}

.company-tabs {
    display: flex;
    flex-direction: column;
    min-width: 180px;
    border-left: 2px solid var(--lightNavy);
}

.tab-item {
    padding: 10px 16px;
    color: var(--slate);
    cursor: pointer;
    border-left: 2px solid transparent;
    margin-left: -2px;
    transition: all 0.3s ease;
    font-size: 13px;
}

.tab-item:hover,
.tab-item.active {
    color: var(--green);
    background: rgba(100, 255, 218, 0.1);
    border-left-color: var(--green);
}

.job-content {
    flex: 1;
    position: relative;
}

.job-panel {
    display: none;
    animation: fadeIn 0.3s ease;
}

.job-panel.active {
    display: block;
}

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

.job-panel h3 {
    color: var(--lightestSlate);
    font-size: 22px;
    margin: 0 0 8px 0;
}

.company-highlight {
    color: var(--green);
}

.job-duration {
    color: var(--slate);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 14px;
    margin: 0 0 25px 0;
}

.job-details {
    list-style: none;
    padding: 0;
    margin: 0;
}

.job-details li {
    color: var(--slate);
    margin-bottom: 8px;
    padding-left: 18px;
    position: relative;
    line-height: 1.4;
    font-size: 15px;
    text-align: justify;
}

#work-experience {
    padding: 2rem 0;
}

.job-details li::before {
    content: "▸";
    color: var(--green);
    position: absolute;
    left: 0;
    top: 0;
}

/* Legacy styles for project entries */
.project-entry {
    background: var(--lightNavy);
    padding: 2rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    box-shadow: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-entry:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.project-entry h3 {
    color: var(--lightestSlate);
    margin-top: 0;
}

.project-entry ul {
    list-style-type: none;
    padding-left: 0;
}

.project-entry li {
    background: rgba(2,12,27,0.5);
    color: var(--lightestSlate);
    margin-bottom: 10px;
    padding: 15px;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.project-entry li:hover {
    background: rgba(2,12,27,0.7);
}

/* Contact Page Specifics */
.contact-section {
    padding: 100px 0;
    text-align: center;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

.contact-title {
    font-size: 60px;
    color: var(--lightestSlate);
    margin: 40px 0;
    font-weight: 600;
    line-height: 1.1;
}

.contact-description {
    font-size: 20px;
    color: var(--slate);
    line-height: 1.6;
    margin: 0 0 50px 0;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
}

.contact-button {
    display: inline-block;
    color: var(--green);
    border: 1px solid var(--green);
    padding: 20px 28px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 16px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
    background: transparent;
}

.contact-button:hover {
    background: rgba(100, 255, 218, 0.1);
    transform: translate(-4px, -4px);
    box-shadow: 4px 4px 0 0 var(--green);
}

/* Universal Button Styling */
.btn {
    display: inline-block;
    background: #2c3e50;
    color: #fff;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: background 0.3s ease, transform 0.3s ease;
}

.btn:hover {
    background: #34495e;
    transform: translateY(-2px);
}

/* Footer */
footer {
    background: transparent;
    color: var(--slate);
    text-align: center;
    padding: 15px 0;
    font-family: ui-monospace, SFMono-Regular, "SF Mono", "Fira Code", "Fira Mono", "Roboto Mono", monospace;
    font-size: 14px;
}

/* Theme Switcher */
#theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 50%;
    padding: 10px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}
#theme-toggle:hover {
    transform: rotate(30deg);
}

body.dark-theme #theme-toggle {
    background: #2c2c2c;
    color: #fff;
    border-color: #3a3a3a;
}

/* --- CSS Variables --- */
:root {
    --navy: #0a192f;
    --lightNavy: #112240;
    --lightestSlate: #ccd6f6;
    --slate: #8892b0;
    --green: #64ffda;
    --white: #e6f1ff;
}

html {
    background-color: var(--navy);
}

body {
    background-color: var(--navy) !important;
    color: var(--slate);
}

header {
    background: transparent;
    box-shadow: none;
    padding: 16px 0;
}

/* Light theme base */
body:not(.dark-theme) {
    background: #f8f9fa;
    color: #333;
}

body:not(.dark-theme) header nav a { color: #34495e; }
body:not(.dark-theme) footer { background: #34495e; color: #bdc3c7; }
body:not(.dark-theme) .job-entry, body:not(.dark-theme) .project-entry { background: #ffffff; }

/* Header layout */
.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: none;
    padding: 0;
}

.header-logo {
    flex-shrink: 0;
}

header .container {
    max-width: none;
    width: 100%;
    padding: 0 50px;
}

.hexagon-logo-small {
    width: 48px;
    height: 48px;
    position: relative;
}

.hexagon-small {
    width: 48px;
    height: 48px;
    background: var(--green);
    position: relative;
    transform: rotate(30deg);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hexagon-small::before,
.hexagon-small::after {
    content: '';
    position: absolute;
    width: 48px;
    height: 48px;
    background: var(--green);
    border-radius: 6px;
}

.hexagon-small::before {
    transform: rotate(60deg);
}

.hexagon-small::after {
    transform: rotate(-60deg);
}

.hexagon-text-small {
    position: absolute;
    color: var(--navy);
    font-size: 16px;
    font-weight: bold;
    z-index: 10;
    transform: rotate(-30deg);
    font-family: Calibre, Inter, "San Francisco", "SF Pro Text", -apple-system, system-ui, sans-serif;
}

/* Top navigation with numbered items and resume button */
.primary-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 32px;
    margin: 0;
    padding: 0;
}

.nav-list a {
    color: var(--lightestSlate);
    text-decoration: none;
    font-size: 13px;
    font-family: Calibre, Inter, "San Francisco", "SF Pro Text", -apple-system, system-ui, sans-serif;
    padding: 10px 0;
    transition: color 0.3s ease;
}

.nav-list a:hover {
    color: var(--green);
}

.nav-number {
    color: var(--green);
    font-family: ui-monospace, SFMono-Regular, "SF Mono", "Fira Code", "Fira Mono", "Roboto Mono", monospace;
    margin-right: 5px;
    font-size: 12px;
}

.btn-outline {
    color: var(--green);
    border: 1px solid var(--green);
    padding: 8px 14px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    line-height: 1;
}

.btn-outline:hover {
    color: var(--green);
}

/* Typography - standardize content colors */
.section h2,
header h1,
header p,
.about-content p,
.contact-description,
.hero-description {
    color: var(--slate);
}

.section h2 {
    color: var(--lightestSlate);
}

/* Hero styles */
.hero {
    padding: 180px 0 80px;
}

.hero-eyebrow {
    color: var(--green);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 16px;
    margin: 0 0 24px;
}

.hero-title-container {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 0 0 10px;
}

.hero-title {
    color: var(--white);
    font-size: 64px;
    line-height: 1.1;
    margin: 0;
}

.hero-social-links {
    display: flex;
    gap: 15px;
    align-items: center;
}

.hero-social-icon {
    color: var(--slate);
    font-size: 24px;
    transition: color 0.3s ease, transform 0.3s ease;
    text-decoration: none;
}

.hero-social-icon:hover {
    color: var(--green);
    transform: translateY(-2px);
}

.hero-subtitle {
    color: var(--lightestSlate);
    font-size: 56px;
    line-height: 1.1;
    margin: 0 0 20px;
}

.hero-description {
    max-width: 600px;
    color: var(--slate);
    font-size: 18px;
    text-align: justify;
}

.hero-nav-arrow {
    position: fixed;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero-nav-arrow a {
    color: var(--green);
    font-size: 36px;
    text-decoration: none;
}

body:hover .hero-nav-arrow {
    opacity: 1;
}

/* Cards and entries on dark */
.job-entry, .project-entry {
    background: var(--lightNavy);
    box-shadow: none;
}

.company { color: #a8b2d1; }

.job-entry li { background: rgba(2,12,27,0.5); color: var(--lightestSlate); }
.job-entry li:hover { background: rgba(2,12,27,0.7); }

/* Footer */
footer {
    background: transparent;
    color: var(--slate);
}

/* Sticky footer layout */
html, body {
    height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

footer {
    margin-top: auto;
    text-align: center;
}

/* Technologies grid */
.tech-section {
    margin-top: 24px;
}

 .tech-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin-top: 16px;
    align-items: stretch;
}

.tech-item {
    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--lightNavy);
    border-radius: 0;
    transition: transform 0.2s ease, background 0.2s ease;
}

.tech-item img {
    width: 28px;
    height: 28px;
}

.tech-item:hover {
    transform: translateY(-2px);
    background: #0f2240;
}

.category {
    margin-top: 24px;
}

.category h4 {
    margin: 0 0 10px;
    color: var(--lightestSlate);
    font-weight: 600;
}

/* Three-column tech boxes */
.tech-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 24px;
    row-gap: 24px;
    align-items: start;
}

.tech-box {
    background: var(--lightNavy);
    border-radius: 8px;
    padding: 8px;
}

.tech-grid6 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.tech-grid6 .tech-item {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: rgba(2,12,27,0.5);
    border-radius: 6px;
}

.tech-grid6 .tech-item img {
    width: 18px;
    height: 18px;
}

.tech-item.placeholder {
    background: transparent;
}

/* Projects Table */
.projects-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
    font-family: ui-monospace, SFMono-Regular, "SF Mono", "Fira Code", "Fira Mono", "Roboto Mono", monospace;
    font-size: 14px;
}

.projects-table th {
    color: var(--lightestSlate);
    text-align: left;
    padding: 12px 16px;
    border-bottom: 1px solid var(--lightNavy);
    font-weight: 600;
}

.projects-table td {
    color: var(--slate);
    padding: 12px 16px;
    border-bottom: 1px solid rgba(17, 34, 64, 0.5);
}

.projects-table tr:hover {
    background: rgba(17, 34, 64, 0.3);
}

.github-link {
    color: var(--slate);
    font-size: 18px;
    transition: color 0.3s ease;
    text-decoration: none;
}

.github-link:hover {
    color: var(--green);
}