/* Mobile Menu Fix - Version 4.0 - Landscape Hamburger Fix */
:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --accent-color: #3b82f6;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-alt: #f3f4f6;
    --border-color: #e5e7eb;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

[data-theme="dark"] {
    --primary-color: #3b82f6;
    --secondary-color: #60a5fa;
    --accent-color: #2563eb;
    --text-primary: #f9fafb;
    --text-secondary: #d1d5db;
    --bg-primary: #111827;
    --bg-secondary: #1f2937;
    --bg-alt: #374151;
    --border-color: #374151;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: var(--transition);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* View Toggle */
.view-toggle {
    position: fixed;
    top: 1rem;
    right: 1rem;
    left: auto;
    z-index: 1000;
    display: flex;
    gap: 0.15rem;
    background: var(--bg-primary);
    padding: 0.25rem;
    border-radius: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    max-width: calc(100vw - 2rem);
}

@media screen {
    .view-toggle {
        display: flex;
    }
}

@media print {
    .view-toggle {
        display: none !important;
    }
}

.toggle-btn {
    padding: 0.35rem 0.6rem;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.7rem;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.toggle-btn.active {
    background: var(--primary-color);
    color: white;
}

.toggle-btn:hover:not(.active) {
    background: var(--bg-alt);
}

.theme-btn {
    background: none;
    border: none;
    width: 28px;
    height: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border-radius: 50%;
    font-size: 0.9rem;
}

.theme-btn:hover {
    background: var(--bg-alt);
    transform: scale(1.1);
}

[data-theme="dark"] .sun-icon {
    display: none;
}

[data-theme="light"] .moon-icon,
body:not([data-theme]) .moon-icon {
    display: none;
}

/* View Container */
.view-container {
    display: none;
}

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

/* Navigation */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.nav-container {
    max-width: 100%;
    margin: 0;
    padding: 1rem 2rem;
    padding-right: 14rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    position: relative;
    left: 0;
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
    justify-self: start;
}

.nav-brand:hover {
    opacity: 0.8;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    position: absolute;
    right: 2rem;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    transition: var(--transition);
}

.nav-links {
    display: flex;
    gap: 2rem;
    margin: 0;
    flex: 1;
    justify-content: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Navigation Dropdown */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.nav-dropdown-toggle {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
    white-space: nowrap;
    display: inline-block;
    padding-bottom: 0.25rem;
}

.nav-dropdown-toggle:hover {
    color: var(--primary-color);
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 0.25rem);
    left: 0;
    background: var(--bg-primary) !important;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    box-shadow: var(--shadow-lg);
    min-width: 180px;
    z-index: 1000;
}

/* Bridge the gap between toggle and menu */
.nav-dropdown::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 0.5rem;
    background: transparent;
}

.nav-dropdown:hover .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    white-space: nowrap;
}

.nav-dropdown-menu a:hover {
    background: var(--bg-alt);
    color: var(--primary-color);
}

.nav-dropdown-menu a:first-child {
    border-radius: 0.5rem 0.5rem 0 0;
}

.nav-dropdown-menu a:last-child {
    border-radius: 0 0 0.5rem 0.5rem;
}

/* Case Study Button in Project Card */
.case-study-btn {
    display: inline-block;
    font-size: 1.25rem;
    margin-left: 0.5rem;
    text-decoration: none;
    transition: var(--transition);
    vertical-align: middle;
    opacity: 0.7;
}

.case-study-btn:hover {
    opacity: 1;
    transform: scale(1.2);
}

/* Case Study Button Inline with Title */
.case-study-btn-inline {
    font-size: 1.1rem;
    text-decoration: none;
    transition: var(--transition);
    opacity: 0.7;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.case-study-btn-inline:hover {
    opacity: 1;
    transform: scale(1.2);
}

/* Case Study Button in Top Right Corner */
.case-study-btn-corner {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    text-decoration: none;
    transition: var(--transition);
    opacity: 0.7;
    z-index: 10;
}

.case-study-btn-corner:hover {
    opacity: 1;
    transform: scale(1.2);
}

/* Hero Section */
#hero {
    margin-top: 80px;
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-alt) 100%);
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.btn {
    padding: 0.875rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Sections */
.section {
    padding: 5rem 0;
}

.section-alt {
    background-color: var(--bg-secondary);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

/* About Section */
.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.lead {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.about-content p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    font-size: 1.125rem;
}

/* Timeline */
.timeline {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--primary-color);
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 3rem;
}

.timeline-marker {
    position: absolute;
    left: 11px;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--primary-color);
    border: 4px solid var(--bg-secondary);
}

.timeline-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.company-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    margin-right: 0.75rem;
}

.role-title {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.timeline-content > p {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.experience-list {
    list-style-position: outside;
    margin-left: 1.5rem;
    color: var(--text-secondary);
}

.experience-list li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.achievement {
    background-color: var(--bg-alt);
    padding: 0.1rem 1rem;
    border-radius: 0.5rem;
    border-left: 4px solid var(--primary-color);
    font-weight: 500;
    color: var(--text-primary);
    margin-top: 1rem;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background-color: var(--bg-primary);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.project-icon {
    font-size: 1.5rem;
    margin-right: 0.5rem;
    display: inline-block;
    vertical-align: middle;
}

.project-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.project-card h3 a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
}

.project-card h3 a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.project-type {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.project-card > p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background-color: var(--bg-alt);
    color: var(--text-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
}

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

.impact-card {
    background-color: var(--bg-primary);
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.impact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.impact-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.impact-label {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.impact-card p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Leadership Section */
.leadership-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    align-items: start;
}

.leadership-category {
    background-color: var(--bg-primary);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    height: 100%;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.leadership-category h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    word-wrap: break-word;
}

.leadership-category ul {
    list-style-position: inside;
    color: var(--text-secondary);
    word-wrap: break-word;
}

.leadership-category li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
    word-wrap: break-word;
}

.leadership-category ul ul {
    margin-left: 1.5rem;
    margin-top: 0.5rem;
}

.leadership-category a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
    word-wrap: break-word;
    white-space: normal;
}

.leadership-category a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Published Works Grid Layout */
.published-works-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 1rem;
    width: 100%;
    min-width: 0;
}

.published-section h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.published-section ul {
    list-style: none;
    margin-left: 0;
}

.published-section li {
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
}

.published-section li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.compact-list li {
    margin-bottom: 0.4rem;
}

.published-section:first-child {
    grid-column: 1 / -1;
}

@media screen and (max-width: 1024px) {
    .published-works-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .published-section:first-child {
        grid-column: 1;
    }
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.skill-category {
    background-color: var(--bg-primary);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.skill-category h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    background-color: var(--bg-alt);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
}

.skill-tag:hover {
    background-color: var(--primary-color);
    color: white;
    transform: scale(1.05);
}

/* Contact Section */
.contact-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* Education Section */
.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.education-card {
    background-color: var(--bg-primary);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.education-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.education-item {
    margin-bottom: 1.5rem;
}

.education-item h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.education-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.cert-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.cert-badge {
    background-color: var(--bg-alt);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
}

.cert-badge:hover {
    background-color: var(--primary-color);
    color: white;
    transform: scale(1.05);
}

/* Contact Section */
.contact-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-intro {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

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

.contact-card {
    background-color: var(--bg-secondary);
    padding: 2rem;
    border-radius: 1rem;
    text-decoration: none;
    transition: var(--transition);
    border: 2px solid var(--border-color);
}

.contact-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.contact-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.contact-value {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* Footer */
footer {
    background-color: var(--bg-secondary);
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

footer p {
    color: var(--text-secondary);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Resume View Styles */
.resume-page {
    background-color: var(--bg-alt);
    min-height: 100vh;
    padding: 6rem 2rem 2rem;
}

.resume-container {
    max-width: 8.5in;
    margin: 0 auto;
    background: var(--bg-primary) !important;
    padding: 0.75in;
    box-shadow: var(--shadow-lg);
    border-radius: 0.5rem;
}

.resume-header {
    position: relative;
    text-align: center;
    padding-bottom: 0.3rem;
    border-bottom: 2px solid var(--primary-color);
    margin-bottom: 0.3rem;
}

.resume-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0;
}

.title {
    font-size: 0.95rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-top: -0.2rem;
    margin-bottom: 0.25rem;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 0.3rem;
    flex-wrap: nowrap;
    font-size: 0.52rem;
    color: var(--text-secondary);
    margin-bottom: 0;
    white-space: nowrap;
}

.action-buttons {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 0;
}

.btn-print {
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-weight: 600;
    font-size: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
    background-color: var(--primary-color);
    color: white;
    border: none;
}

.btn-print:hover {
    background-color: var(--secondary-color);
}

.resume-section {
    margin-bottom: 0.3rem;
}

.resume-section h2 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.15rem;
    padding-bottom: 0.05rem;
    border-bottom: 1.5px solid var(--border-color);
}

.resume-section p {
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-align: justify;
    line-height: 1.2;
}

.resume-section ul {
    margin-left: 1.25rem;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.resume-section li {
    margin-bottom: 0.08rem;
    line-height: 1.18;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.3rem;
    margin-top: 0.3rem;
}

.achievement-item {
    background-color: var(--bg-secondary);
    padding: 0.35rem;
    border-radius: 0.375rem;
    border-left: 3px solid var(--primary-color);
}

.achievement-content strong {
    display: block;
    color: var(--text-primary);
    font-size: 0.75rem;
    margin-bottom: 0.08rem;
}

.achievement-content p {
    font-size: 0.68rem;
    color: var(--text-secondary);
    margin: 0;
    text-align: left;
    line-height: 1.25;
}

.experience-item {
    margin-top: 0.12rem;
}

.experience-item h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.1rem;
}

.resume-role {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.resume-education {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 0.4rem;
}

.resume-education h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}

.resume-education p {
    font-size: 0.75rem;
    margin-bottom: 0.3rem;
    line-height: 1.4;
}

.projects-compact {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.35rem;
    margin-top: 0.25rem;
}

.project-compact {
    background-color: var(--bg-secondary);
    padding: 0.35rem;
    border-radius: 0.375rem;
    border-left: 2px solid var(--primary-color);
}

.project-compact h4 {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.15rem;
}

.project-compact p {
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin: 0;
    text-align: left;
    line-height: 1.3;
}

.two-column {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
    margin-top: 0.3rem;
}

.two-column h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.18rem;
}

.two-column ul {
    margin-left: 1rem;
}

.two-column li {
    font-size: 0.75rem;
    margin-bottom: 0.14rem;
    line-height: 1.25;
}

.skills-compact {
    display: grid;
    gap: 0.32rem;
    margin-top: 0.28rem;
}

.skill-group {
    background-color: var(--bg-secondary);
    padding: 0.38rem;
    border-radius: 0.375rem;
}

.skill-group h4 {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.16rem;
}

.skill-group p {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin: 0;
    text-align: left;
    line-height: 1.28;
}

.awards-list {
    margin-top: 0.26rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.12rem 1rem;
}

.award-badge {
    color: var(--text-secondary);
    font-size: 0.72rem;
    font-weight: 400;
    display: list-item;
    list-style-position: inside;
    margin-bottom: 0;
    margin-left: 1rem;
    line-height: 1.35;
}

/* Print Styles */
@media print {
    * {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    html, body {
        background: white;
        height: auto;
        overflow: visible;
        font-size: 9.8pt;
    }
    
    .view-toggle {
        display: none !important;
    }
    
    #portfolio-view {
        display: none !important;
    }
    
    .resume-page {
        background: white;
        padding: 0;
        min-height: 0;
        height: auto;
    }
    
    .resume-container {
        box-shadow: none;
        padding: 0;
        max-width: 100%;
        height: auto;
        margin: 0;
    }
    
    .action-buttons {
        display: none;
    }
    
    .contact-info {
        font-size: 0.5rem !important;
        gap: 0.28rem !important;
        margin-bottom: 0 !important;
        justify-content: space-between !important;
    }
    
    .resume-header {
        margin-bottom: 0.12rem;
        padding-bottom: 0.12rem;
        page-break-after: avoid;
    }
    
    .resume-header h1 {
        font-size: 1.4rem;
        margin-bottom: 0.1rem;
    }
    
    .resume-header .title {
        font-size: 0.68rem;
        margin-bottom: 0.18rem;
    }
    
    .resume-section {
        margin-bottom: 0.12rem;
        page-break-inside: auto;
    }
    
    .resume-section:last-child {
        margin-bottom: 0;
    }
    
    .resume-section h2 {
        margin-bottom: 0.12rem;
        padding-bottom: 0.04rem;
        font-size: 0.85rem;
        page-break-after: avoid;
        orphans: 3;
        widows: 3;
    }
    
    .resume-section p {
        font-size: 0.62rem;
        line-height: 1.25;
        margin-bottom: 0.1rem;
    }
    
    .achievements-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 0.15rem;
    }
    
    .projects-compact {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 0.18rem;
    }
    
    .two-column {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.2rem;
    }

    .resume-education {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.2rem;
    }
    
    .experience-item {
        page-break-inside: auto;
        margin-top: 0.08rem;
        margin-bottom: 0.08rem;
    }
    
    .experience-item:last-child {
        margin-bottom: 0;
    }
    
    .experience-item h3 {
        page-break-after: avoid;
        font-size: 0.72rem;
    }
    
    .experience-item ul {
        margin-bottom: 0.12rem;
    }
    
    .experience-item li {
        margin-bottom: 0.05rem;
        font-size: 0.58rem;
        line-height: 1.22;
    }
    
    .resume-role {
        font-size: 0.58rem !important;
        margin-bottom: 0.06rem !important;
    }
    
    .achievement-item {
        page-break-inside: avoid;
        padding: 0.15rem;
    }

    .achievement-item strong {
        font-size: 0.58rem;
    }

    .achievement-item p {
        font-size: 0.52rem;
        line-height: 1.18;
        margin-bottom: 0.04rem;
    }
    
    .project-compact {
        page-break-inside: avoid;
        padding: 0.15rem;
    }
    
    .project-compact h4 {
        font-size: 0.56rem;
    }
    
    .project-compact p {
        font-size: 0.48rem;
    }
    
    .skills-compact {
        gap: 0.1rem !important;
        margin-top: 0.1rem !important;
    }

    .skill-group {
        padding: 0.08rem 0.12rem;
        margin-bottom: 0.06rem;
        page-break-inside: avoid;
    }
    
    .skill-group:last-child {
        margin-bottom: 0;
    }
    
    .skill-group h4 {
        font-size: 0.56rem;
    }
    
    .skill-group p {
        font-size: 0.5rem;
    }
    
    .two-column h4 {
        font-size: 0.56rem;
    }
    
    .two-column li {
        font-size: 0.58rem;
        line-height: 1.22;
        margin-bottom: 0.02rem;
    }
    
    .resume-education h4 {
        font-size: 0.56rem;
    }
    
    .resume-education p {
        font-size: 0.6rem;
    }
    
    .awards-list {
        margin-top: 0.06rem;
        margin-bottom: 0;
        display: flex !important;
        flex-wrap: wrap;
        gap: 0.08rem 0.4rem;
    }

    .award-badge {
        font-size: 0.56rem;
        margin-bottom: 0;
        padding: 0.04rem 0.25rem !important;
        display: inline !important;
    }
    
    @page {
        margin: 0.25in;
        size: letter;
    }
    
    @page {
        @top-left { content: none; }
        @top-center { content: none; }
        @top-right { content: none; }
        @bottom-left { content: none; }
        @bottom-center { content: none; }
        @bottom-right { 
            content: counter(page) " of " counter(pages);
            font-size: 9pt;
            color: #6b7280;
        }
    }
    
    /* Mobile-specific print styles - tighter to fit on 1 page */
    body.mobile-print {
        font-size: 7.5pt !important;
    }
    
    body.mobile-print .resume-header {
        margin-bottom: 0.2rem;
        padding-bottom: 0.2rem;
    }
    
    body.mobile-print .resume-header h1 {
        font-size: 1.1rem;
    }
    
    body.mobile-print .resume-header .title {
        font-size: 0.55rem;
    }
    
    body.mobile-print .contact-info {
        font-size: 0.4rem !important;
        gap: 0.2rem !important;
    }
    
    body.mobile-print .resume-section {
        margin-bottom: 0.2rem;
    }
    
    body.mobile-print .resume-section h2 {
        font-size: 0.68rem;
        margin-bottom: 0.12rem;
    }
    
    body.mobile-print .resume-section p {
        font-size: 0.48rem;
        line-height: 1.15;
    }
    
    body.mobile-print .experience-item {
        margin-top: 0.12rem;
        margin-bottom: 0.12rem;
    }
    
    body.mobile-print .experience-item h3 {
        font-size: 0.55rem;
    }
    
    body.mobile-print .experience-item li {
        font-size: 0.45rem;
        line-height: 1.12;
        margin-bottom: 0.03rem;
    }
    
    body.mobile-print .resume-role {
        font-size: 0.45rem !important;
    }
    
    body.mobile-print .achievement-item {
        padding: 0.12rem;
    }
    
    body.mobile-print .achievement-item strong {
        font-size: 0.45rem;
    }
    
    body.mobile-print .achievement-item p {
        font-size: 0.4rem;
    }
    
    body.mobile-print .project-compact {
        padding: 0.15rem;
    }
    
    body.mobile-print .project-compact h4 {
        font-size: 0.45rem;
    }
    
    body.mobile-print .project-compact p {
        font-size: 0.38rem;
    }
    
    body.mobile-print .skill-group {
        padding: 0.12rem;
    }
    
    body.mobile-print .skill-group h4 {
        font-size: 0.45rem;
    }
    
    body.mobile-print .skill-group p {
        font-size: 0.4rem;
    }
    
    body.mobile-print .achievements-grid {
        gap: 0.1rem;
    }
    
    body.mobile-print .projects-compact {
        gap: 0.12rem;
    }
    
    body.mobile-print .two-column {
        gap: 0.25rem;
    }
    
    /* 2-page print styles - expanded spacing to fill 2 pages */
    body.print-two-page,
    body.print-two-page html {
        font-size: 16px !important;
    }
    
    body.print-two-page .page-break-two-page {
        display: block !important;
        page-break-before: always !important;
        break-before: page !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .page-break-two-page {
        display: none;
    }
    
    body.print-two-page .projects-section {
        page-break-before: always !important;
        break-before: page !important;
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    
    body.print-two-page .resume-section.projects-section {
        page-break-before: always !important;
        break-before: page !important;
    }
    
    body.print-two-page .resume-container {
        padding: 0.1in 0.25in !important;
    }

    body.print-two-page {
        font-size: 8.85pt !important;
    }
    
    body.print-two-page .contact-info {
        font-size: 0.6rem !important;
        gap: 0.4rem !important;
        margin-bottom: 0.2rem !important;
    }
    
    body.print-two-page .resume-header {
        margin-bottom: 0.7rem !important;
        padding-bottom: 0.6rem !important;
    }
    
    body.print-two-page .resume-header h1 {
        font-size: 1.9rem !important;
        margin-bottom: 0.15rem !important;
    }
    
    body.print-two-page .resume-header .title {
        font-size: 1rem !important;
        margin-bottom: 0.35rem !important;
    }
    
    body.print-two-page .resume-section {
        margin-bottom: 0.6rem !important;
    }
    
    body.print-two-page .resume-section h2 {
        font-size: 1.2rem !important;
        margin-bottom: 0.35rem !important;
        padding-bottom: 0.15rem !important;
    }
    
    body.print-two-page .resume-section p {
        font-size: 0.88rem !important;
        line-height: 1.4 !important;
        margin-bottom: 0.25rem !important;
    }
    
    body.print-two-page .resume-section ul {
        font-size: 0.88rem !important;
    }
    
    body.print-two-page .resume-section li {
        margin-bottom: 0.18rem !important;
        line-height: 1.35 !important;
    }
    
    body.print-two-page .achievements-grid {
        gap: 0.5rem !important;
    }
    
    body.print-two-page .projects-compact {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.5rem !important;
    }
    
    body.print-two-page .two-column {
        gap: 1rem !important;
    }
    
    body.print-two-page .resume-education {
        gap: 1.2rem !important;
    }
    
    body.print-two-page .experience-item {
        margin-top: 0.15rem !important;
        margin-bottom: 0.2rem !important;
    }
    
    body.print-two-page .experience-item:last-child {
        margin-bottom: 0.2rem !important;
    }
    
    body.print-two-page .experience-item h3 {
        font-size: 1.05rem !important;
        margin-bottom: 0.15rem !important;
    }
    
    body.print-two-page .experience-item ul {
        margin-bottom: 0.25rem !important;
    }
    
    body.print-two-page .experience-item li {
        font-size: 0.82rem !important;
        line-height: 1.3 !important;
        margin-bottom: 0.12rem !important;
    }
    
    body.print-two-page .resume-role {
        font-size: 0.85rem !important;
        margin-bottom: 0.3rem !important;
    }
    
    body.print-two-page .achievement-item {
        padding: 0.5rem !important;
    }
    
    body.print-two-page .achievement-item strong,
    body.print-two-page .achievement-content strong {
        font-size: 0.85rem !important;
        margin-bottom: 0.15rem !important;
    }
    
    body.print-two-page .achievement-item p,
    body.print-two-page .achievement-content p {
        font-size: 0.78rem !important;
        line-height: 1.35 !important;
    }
    
    body.print-two-page .project-compact {
        padding: 0.5rem !important;
    }
    
    body.print-two-page .project-compact h4 {
        font-size: 0.9rem !important;
        margin-bottom: 0.2rem !important;
    }
    
    body.print-two-page .project-compact p {
        font-size: 0.8rem !important;
        line-height: 1.4 !important;
    }
    
    body.print-two-page .skill-group {
        padding: 0.3rem !important;
        margin-bottom: 0.2rem !important;
    }

    body.print-two-page .skill-group h4 {
        font-size: 0.82rem !important;
        margin-bottom: 0.12rem !important;
    }

    body.print-two-page .skill-group p {
        font-size: 0.78rem !important;
        line-height: 1.3 !important;
    }
    
    body.print-two-page .awards-list {
        margin-top: 0.2rem !important;
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 0.1rem 0.5rem !important;
    }

    body.print-two-page .award-badge {
        font-size: 0.72rem !important;
        line-height: 1.3 !important;
        margin-bottom: 0 !important;
        padding: 0.06rem 0.3rem !important;
        display: inline !important;
    }
    
    body.print-two-page .resume-education h4 {
        font-size: 0.85rem !important;
        margin-bottom: 0.2rem !important;
    }

    body.print-two-page .resume-education p {
        font-size: 0.78rem !important;
        margin-bottom: 0.2rem !important;
        line-height: 1.35 !important;
    }
    
    body.print-two-page .two-column h4 {
        font-size: 0.95rem !important;
        margin-bottom: 0.25rem !important;
    }
    
    body.print-two-page .two-column li {
        font-size: 0.85rem !important;
        margin-bottom: 0.2rem !important;
        line-height: 1.4 !important;
    }
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .view-toggle {
        top: 70px;
        right: 0.5rem;
        left: auto;
        padding: 0.25rem;
        gap: 0.15rem;
        z-index: 50;
        transition: top 0.3s ease, bottom 0.3s ease;
    }
    
    .view-toggle.resume-active {
        top: auto;
        bottom: 1rem;
    }
    
    .toggle-btn {
        padding: 0.3rem 0.5rem;
        font-size: 0.65rem;
    }
    
    .theme-btn {
        width: 26px;
        height: 26px;
        font-size: 0.85rem;
    }
    
    #navbar {
        z-index: 1000;
    }

    .nav-container {
        padding: 1rem 2rem !important;
        padding-right: 2rem !important;
    }

    .mobile-menu-toggle {
        display: flex !important;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 24px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        margin: 0;
        z-index: 1001;
        position: relative;
        flex-shrink: 0;
    }

    .mobile-menu-toggle span {
        width: 100%;
        height: 3px;
        background: var(--primary-color);
        border-radius: 2px;
        transition: all 0.3s linear;
        position: relative;
        transform-origin: center;
        display: block;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--bg-primary) !important;
        flex-direction: column;
        padding: 0;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
        max-height: calc(100vh - 140px);
        overflow-y: auto;
        z-index: 999;
        border-bottom: 1px solid var(--border-color);
        gap: 0;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 1rem 2rem;
        border-bottom: 1px solid var(--border-color);
        background: var(--bg-primary) !important;
    }

    .nav-links a:hover {
        background: var(--bg-alt);
    }
    
    
    
    .nav-dropdown-toggle {
        font-size: 1rem !important;
        padding: 0.1rem 1rem !important;
        border-bottom: 1px solid var(--border-color) !important;
        background: var(--bg-primary) !important;
        display: block !important;
        width: 100% !important;
        text-align: left !important;
    }
    .nav-dropdown.active .nav-dropdown-menu {
        display: block;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 2rem;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .projects-grid,
    .impact-grid,
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .leadership-content {
        grid-template-columns: 1fr;
    }
    
    .timeline::before {
        left: 10px;
    }
    
    .timeline-marker {
        left: 1px;
    }
    
    .timeline-item {
        padding-left: 40px;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .resume-page {
        padding: 5rem 1rem 1rem;
    }
    
    .resume-container {
        padding: 0.1rem 1rem;
    }
    
    .resume-header h1 {
        font-size: 2rem;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .achievements-grid,
    .projects-compact,
    .two-column,
    .resume-education {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 480px) {
    .view-toggle.resume-active {
        bottom: 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .nav-container {
        padding: 1rem !important;
        padding-right: 1rem !important;
        display: flex !important;
        justify-content: space-between;
        align-items: center;
    }
    
    .nav-brand {
        font-size: 1.2rem;
    }
}


/* Projects Pagination */
.projects-pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 3rem;
}

.pagination-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
}

.pagination-btn:hover:not(:disabled) {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

.pagination-btn:disabled {
    background-color: var(--bg-alt);
    color: var(--text-secondary);
    cursor: not-allowed;
    opacity: 0.5;
}

.pagination-info {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
}

/* Workshops Section */
.workshops-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.workshop-card {
    background-color: var(--bg-primary);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.workshop-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.workshop-icon {
    font-size: 1.5rem;
    margin-right: 0.5rem;
    display: inline-block;
    vertical-align: middle;
}

.workshop-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.workshop-card h3 a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.workshop-card h3 a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.workshop-card > p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.workshop-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.workshop-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.workshop-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border: 2px solid var(--primary-color);
    border-radius: 0.5rem;
    display: inline-block;
}

.workshop-link:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

@media screen and (max-width: 768px) {
    .workshops-grid {
        grid-template-columns: 1fr;
    }
    
    .pagination-btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    .projects-pagination-controls {
        gap: 1rem;
    }
}


/* Mobile Landscape Mode - Force Mobile Menu */
@media screen and (orientation: landscape) and (max-width: 1024px), screen and (orientation: landscape) and (max-height: 600px) {
    .nav-links {
        display: none !important;
        position: fixed !important;
        top: 60px !important;
        left: 0 !important;
        right: 0 !important;
        background: var(--bg-primary) !important;
        flex-direction: column !important;
        padding: 0 !important;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2) !important;
        max-height: calc(100vh - 140px) !important;
        overflow-y: auto !important;
        z-index: 999 !important;
        border-bottom: 1px solid var(--border-color) !important;
        gap: 0 !important;
    }

    .nav-links.active {
        display: flex !important;
    }

    .nav-links a {
        padding: 1rem 2rem !important;
        border-bottom: 1px solid var(--border-color) !important;
        background: var(--bg-primary) !important;
        font-size: 1rem !important;
    }

    .nav-links a:hover {
        background: var(--bg-alt) !important;
    }

    .mobile-menu-toggle {
        display: flex !important;
        visibility: visible !important;
        width: 30px !important;
        height: 24px !important;
        z-index: 1001 !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        background: transparent !important;
        border: none !important;
        padding: 0 !important;
    }

    .mobile-menu-toggle span {
        display: block !important;
        width: 100% !important;
        height: 3px !important;
        background: var(--primary-color) !important;
        border-radius: 2px !important;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px) !important;
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0 !important;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px) !important;
    }

    .view-toggle {
        top: auto !important;
        bottom: 0.5rem !important;
        right: 0.5rem !important;
        z-index: 50 !important;
    }

    .nav-container {
        padding: 1rem 2rem !important;
        padding-right: 2rem !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
    }

    .nav-brand {
        display: block !important;
    }
    
    .nav-dropdown {
        display: block !important;
        width: 100% !important;
    }
    
    .nav-dropdown-menu {
        position: static !important;
        display: none !important;
        box-shadow: none !important;
        padding-left: 0 !important;
        background: var(--bg-primary) !important;
    }
    
    .nav-dropdown-menu a {
        padding: 1rem 2rem 1rem 3rem !important;
        background: var(--bg-primary) !important;
    }
    
    .nav-dropdown.active .nav-dropdown-menu {
        display: block !important;
    }
}


/* Fix Case Studies font size in landscape mode */
@media screen and (orientation: landscape) and (max-width: 1024px), screen and (orientation: landscape) and (max-height: 600px) {
    .nav-dropdown-toggle {
        font-size: 1rem !important;
        font-weight: 500 !important;
        white-space: normal !important;
        line-height: 1.5 !important;
    }
    
    .nav-links a {
        font-size: 1rem !important;
    }
}

/* GitHub button styling */
.github-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
}

.github-btn svg {
    width: 16px;
    height: 16px;
    fill: #0969da;
    transition: var(--transition);
}

.github-btn:hover svg {
    fill: var(--primary-color);
    transform: scale(1.2);
}


/* Print Options Modal */
.print-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.print-modal.active {
    display: flex;
}

.print-modal-content {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 12px;
    max-width: 320px;
    width: 90%;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.print-modal-content h3 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.print-modal-content p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.print-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.print-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.print-option:hover {
    border-color: var(--primary-color);
}

.print-option input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

.print-option input[type="radio"]:checked + span {
    color: var(--primary-color);
    font-weight: 600;
}

.print-modal-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-print-ok, .btn-print-cancel {
    padding: 0.6rem 1.5rem;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-print-ok {
    background: var(--primary-color);
    color: white;
    border: none;
}

.btn-print-ok:hover {
    background: var(--primary-dark);
}

.btn-print-cancel {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn-print-cancel:hover {
    background: var(--bg-secondary);
}

@media print {
    .print-modal {
        display: none !important;
    }
}

/* Project Modal */
.project-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.project-modal.active {
    display: flex;
}

.project-modal-content {
    background: var(--bg-primary);
    border-radius: 1rem;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.project-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-secondary);
    line-height: 1;
    padding: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.project-modal-close:hover {
    background: var(--bg-alt);
    color: var(--text-primary);
}

.project-modal-content h2 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    padding-right: 2rem;
}

.project-modal-content p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.project-modal-content p:last-child {
    margin-bottom: 0;
}

/* Info button styling */
.info-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-size: 1rem;
}

.info-btn:hover {
    transform: scale(1.2);
}

@media screen and (max-width: 768px) {
    .project-modal-content {
        padding: 1.5rem;
        margin: 0.5rem;
    }
    
    .project-modal-content h2 {
        font-size: 1.25rem;
    }
}


/* Modal Content Formatting */
.project-modal-content h3 {
    color: var(--primary-color);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.project-modal-content h3:first-of-type {
    margin-top: 0;
}

.project-modal-content ul {
    margin: 0.5rem 0 1rem 1.5rem;
    padding: 0;
}

.project-modal-content li {
    margin-bottom: 0.4rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.project-modal-content li strong {
    color: var(--text-primary);
}

.template-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.template-tag {
    background: var(--bg-alt);
    color: var(--text-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.85rem;
    border: 1px solid var(--border-color);
}

.project-modal-content p strong {
    color: var(--primary-color);
}
