:root{--primary-color: #007bff;--secondary-color: #343a40;--light-gray: #f8f9fa;--text-color: #212529;--text-muted: #6c757d;--background-color: #ffffff;--card-background: #ffffff;--card-shadow: 0 4px 8px rgba(0,0,0,0.1);--border-color: #dee2e6;--code-bg: #f6f8fa;--code-border: #e1e4e8;--inline-code-bg: rgba(0, 123, 255, 0.08);--link-color: var(--primary-color);--link-hover-color: #0062cc;--nav-link-hover-border-color: #99caff;--header-bg: #ffffff;--footer-bg: var(--secondary-color);--footer-text: #e9ecef;--footer-link-color: #80bdff;--footer-link-hover-color: #ffffff;--button-primary-bg: var(--primary-color);--button-primary-text: #ffffff;--button-primary-hover-bg: #0062cc;--skill-tag-bg: #cce5ff;--skill-tag-text: #0062cc;--plot-image-filter: none}body.dark-mode{--primary-color: #0d6efd;--secondary-color: #ced4da;--light-gray: #2c3034;--text-color: #f8f9fa;--text-muted: #adb5bd;--background-color: #1a1d20;--card-background: #212529;--card-shadow: 0 5px 15px rgba(0,0,0,0.25);--border-color: #495057;--code-bg: #282c34;--code-border: #3e444a;--inline-code-bg: rgba(13, 110, 253, 0.2);--link-color: #6ea8fe;--link-hover-color: #a1c6fe;--nav-link-hover-border-color: #d3e5ff;--header-bg: #212529;--footer-bg: #16191c;--footer-text: var(--text-muted);--footer-link-color: var(--link-color);--footer-link-hover-color: #bad6ff;--button-primary-bg: var(--link-color);--button-primary-text: #1a1d20;--button-primary-hover-bg: #a1c6fe;--skill-tag-bg: rgba(13, 110, 253, 0.25);--skill-tag-text: var(--link-color);--plot-image-filter: brightness(0.85) contrast(1.1)}*{box-sizing:border-box;margin:0;padding:0}html{scroll-behavior:smooth}body{font-family:"Roboto",sans-serif;line-height:1.7;color:var(--text-color);background-color:var(--background-color);display:flex;flex-direction:column;min-height:100vh;transition:background-color 0.2s ease-in-out, color 0.2s ease-in-out}.container{width:90%;max-width:1100px;margin:0 auto;padding:0 15px}main.container{flex-grow:1;padding-top:2rem;padding-bottom:2rem}h1,h2,h3,h4,h5,h6{font-family:"Montserrat",sans-serif;margin-bottom:0.75rem;font-weight:600;color:var(--secondary-color)}h1{font-size:2.5rem}h2{font-size:2rem}h3{font-size:1.75rem}h4{font-size:1.25rem}p{margin-bottom:1rem}a{color:var(--link-color);text-decoration:none;transition:color 0.3s ease}a:hover{color:var(--link-hover-color);text-decoration:underline}img{max-width:100%;height:auto;border-radius:5px;filter:var(--plot-image-filter);transition:filter 0.2s ease-in-out}ul,ol{margin-left:20px;margin-bottom:1rem}ul ul,ul ol,ol ul,ol ol{margin-bottom:0}.site-header{background-color:var(--header-bg);padding:1rem 0;border-bottom:1px solid var(--border-color);box-shadow:0 2px 4px rgba(0,0,0,0.05);position:sticky;top:0;z-index:1000;transition:background-color 0.2s ease-in-out, border-color 0.2s ease-in-out}body.dark-mode .site-header{box-shadow:0 2px 4px rgba(0,0,0,0.15)}.site-header .header-flex{display:flex;justify-content:space-between;align-items:center}.site-header .logo a{font-family:"Montserrat",sans-serif;font-size:1.8rem;font-weight:600;color:var(--secondary-color);text-decoration:none}.site-header .logo .tagline{font-size:0.85rem;color:var(--text-muted);display:block;margin-top:-5px}.site-header nav a{margin-left:20px;font-family:"Montserrat",sans-serif;font-weight:400;color:var(--text-color);padding-bottom:5px;border-bottom:2px solid transparent;transition:color 0.3s ease, border-bottom-color 0.3s ease}.site-header nav a:hover{color:var(--link-hover-color);text-decoration:none;border-bottom-color:var(--nav-link-hover-border-color);opacity:0.8}.site-header nav a.active{color:var(--link-color);font-weight:600;border-bottom-color:var(--link-color)}.theme-toggle-button{background:none;border:1px solid var(--border-color);color:var(--text-muted);padding:0.35rem 0.65rem;margin-left:15px;border-radius:5px;cursor:pointer;font-size:0.9rem;line-height:1;display:inline-flex;align-items:center;justify-content:center;transition:color 0.3s ease, border-color 0.3s ease}.theme-toggle-button i{transition:transform 0.3s ease-out}.theme-toggle-button:hover{color:var(--text-color);border-color:var(--text-color)}.theme-toggle-button:hover i{transform:rotate(15deg) scale(1.1)}.site-footer{background-color:var(--footer-bg);color:var(--footer-text);padding:2rem 0;text-align:center;font-size:0.9rem;transition:background-color 0.2s ease-in-out}.site-footer a{color:var(--footer-link-color)}.site-footer a:hover{color:var(--footer-link-hover-color)}.site-footer p{margin-bottom:0.5rem}.hero-section{text-align:center;padding:4rem 0;background-color:var(--light-gray);border-bottom:1px solid var(--border-color);transition:background-color 0.2s ease-in-out, border-color 0.2s ease-in-out}.hero-section h1{font-size:3rem;color:var(--secondary-color)}.hero-section .hero-subtitle{font-size:1.2rem;color:var(--text-muted);max-width:700px;margin:1rem auto 2rem}.hero-section .btn-primary{display:inline-block;background-color:var(--button-primary-bg);color:var(--button-primary-text) !important;padding:12px 25px;border-radius:5px;font-family:"Montserrat",sans-serif;font-weight:600;text-decoration:none;transition:background-color 0.3s ease;border:none}.hero-section .btn-primary:hover{background-color:var(--button-primary-hover-bg);color:var(--button-primary-text) !important;text-decoration:none}.featured-projects-section{padding:3rem 0}.featured-projects-section h2{text-align:center;margin-bottom:2rem}.project-card{background-color:var(--card-background);box-shadow:var(--card-shadow);border-radius:5px;overflow:hidden;display:flex;flex-direction:column;transition:transform 0.3s ease, box-shadow 0.3s ease, background-color 0.2s ease-in-out}.project-card:hover{transform:translateY(-5px);box-shadow:0 8px 16px rgba(0,0,0,0.15)}body.dark-mode .project-card:hover{box-shadow:0 8px 16px rgba(0,0,0,0.3)}.project-card .project-thumbnail{width:100%;height:200px;object-fit:cover;border-bottom:1px solid var(--border-color);border-radius:5px 5px 0 0}.project-card .project-card-content{padding:20px;flex-grow:1;display:flex;flex-direction:column}.project-card .project-card-content h3{margin-top:0;font-size:1.4rem}.project-card .project-card-content h3 a{color:var(--secondary-color)}.project-card .project-card-content h3 a:hover{color:var(--link-hover-color)}.project-card .project-card-content .project-excerpt{font-size:0.95rem;color:var(--text-muted);flex-grow:1;margin-bottom:1rem}.project-card .project-card-content .btn-read-more{display:inline-block;margin-top:auto;color:var(--link-color);font-weight:600;text-decoration:none;align-self:flex-start}.project-card .project-card-content .btn-read-more:hover{text-decoration:underline}.skills-tags,.skills-tags-card{margin-top:0.5rem;margin-bottom:1rem}.skills-tags span,.skills-tags-card span{display:inline-block;background-color:var(--skill-tag-bg);color:var(--skill-tag-text);padding:3px 8px;border-radius:5px;font-size:0.8rem;margin-right:5px;margin-bottom:5px}.skills-tags-card{margin-bottom:0.5rem;flex-wrap:wrap}.project-page article{background-color:var(--card-background);border-radius:5px;margin-bottom:2rem;transition:background-color 0.2s ease-in-out}.project-page article section{padding:1.5rem 0}.project-page article section:first-child{padding-top:0}.project-page article section:last-child{padding-bottom:0}.project-header{border-bottom:1px solid var(--border-color);margin-bottom:2rem;padding-bottom:1.5rem;transition:border-color 0.2s ease-in-out}.project-header h1{margin-bottom:0.5rem;color:var(--secondary-color)}.project-header .subtitle{font-size:1.2rem;color:var(--text-muted);margin-top:-0.5rem;margin-bottom:1rem}img.project-main-image{margin-bottom:2rem;box-shadow:var(--card-shadow)}.project-image-gallery,.training-plots,.cam-examples{display:flex;flex-wrap:wrap;gap:20px;margin-top:1rem;margin-bottom:1.5rem;justify-content:space-around}.project-image-gallery .gallery-column,.project-image-gallery .plot-container,.project-image-gallery .cam-container,.training-plots .gallery-column,.training-plots .plot-container,.training-plots .cam-container,.cam-examples .gallery-column,.cam-examples .plot-container,.cam-examples .cam-container{flex:1;text-align:center;background-color:var(--card-background);padding:15px;border-radius:5px;transition:background-color 0.2s ease-in-out}.project-image-gallery .gallery-column img,.project-image-gallery .plot-container img,.project-image-gallery .cam-container img,.training-plots .gallery-column img,.training-plots .plot-container img,.training-plots .cam-container img,.cam-examples .gallery-column img,.cam-examples .plot-container img,.cam-examples .cam-container img{width:100%;border:1px solid var(--border-color);border-radius:5px;margin-bottom:10px;transition:border-color 0.2s ease-in-out}.project-image-gallery .gallery-column .column-title,.project-image-gallery .gallery-column h4,.project-image-gallery .plot-container .column-title,.project-image-gallery .plot-container h4,.project-image-gallery .cam-container .column-title,.project-image-gallery .cam-container h4,.training-plots .gallery-column .column-title,.training-plots .gallery-column h4,.training-plots .plot-container .column-title,.training-plots .plot-container h4,.training-plots .cam-container .column-title,.training-plots .cam-container h4,.cam-examples .gallery-column .column-title,.cam-examples .gallery-column h4,.cam-examples .plot-container .column-title,.cam-examples .plot-container h4,.cam-examples .cam-container .column-title,.cam-examples .cam-container h4{font-weight:600;font-family:"Montserrat",sans-serif;color:var(--secondary-color);margin-bottom:10px;font-size:1.1rem}.project-image-gallery .gallery-column p,.project-image-gallery .plot-container p,.project-image-gallery .cam-container p,.training-plots .gallery-column p,.training-plots .plot-container p,.training-plots .cam-container p,.cam-examples .gallery-column p,.cam-examples .plot-container p,.cam-examples .cam-container p{font-size:0.9em;color:var(--text-muted);margin-top:5px;margin-bottom:0}.project-image-gallery .gallery-column,.training-plots .gallery-column,.cam-examples .gallery-column{min-width:200px;max-width:280px}.project-image-gallery .plot-container,.training-plots .plot-container,.cam-examples .plot-container{min-width:300px;max-width:450px}.project-image-gallery .cam-container,.training-plots .cam-container,.cam-examples .cam-container{min-width:250px;max-width:350px}pre,code{font-family:'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;font-size:0.9em;background-color:var(--code-bg);border-radius:5px;transition:background-color 0.2s ease-in-out}pre{padding:16px;overflow:auto;line-height:1.45;border:1px solid var(--code-border);margin-bottom:1rem;transition:border-color 0.2s ease-in-out}pre code{padding:0;margin:0;background-color:transparent;border:none;border-radius:0}p>code,li>code,dd>code{padding:.2em .4em;margin:0 .2em;font-size:85%;background-color:var(--inline-code-bg);border-radius:3px;color:var(--text-color);transition:background-color 0.2s ease-in-out, color 0.2s ease-in-out}body.dark-mode p>code,body.dark-mode li>code,body.dark-mode dd>code{color:var(--link-color)}.contact-form{max-width:600px;margin:2rem auto;background-color:var(--card-background);padding:2rem;border-radius:5px;box-shadow:var(--card-shadow);transition:background-color 0.2s ease-in-out}.contact-form label{display:block;margin-bottom:0.5rem;font-weight:600;color:var(--secondary-color)}.contact-form input[type="text"],.contact-form input[type="email"],.contact-form textarea{width:100%;padding:10px;margin-bottom:1rem;border:1px solid var(--border-color);border-radius:5px;font-family:"Roboto",sans-serif;font-size:1rem;background-color:var(--background-color);color:var(--text-color);transition:background-color 0.2s ease-in-out, color 0.2s ease-in-out, border-color 0.2s ease-in-out}.contact-form textarea{min-height:150px;resize:vertical}.contact-form button[type="submit"]{display:inline-block;background-color:var(--button-primary-bg);color:var(--button-primary-text) !important;padding:12px 25px;border:none;border-radius:5px;font-family:"Montserrat",sans-serif;font-weight:600;cursor:pointer;text-decoration:none;transition:background-color 0.3s ease}.contact-form button[type="submit"]:hover{background-color:var(--button-primary-hover-bg);color:var(--button-primary-text) !important;text-decoration:none}.contact-info{text-align:center;margin-bottom:2rem}.contact-info p{margin-bottom:0.5rem}.scroll-reveal{opacity:0;transform:translateY(30px);transition:opacity 0.6s ease-out, transform 0.6s ease-out;will-change:opacity, transform}.scroll-reveal.is-visible{opacity:1;transform:translateY(0)}.fade-in{animation:fadeInAnimation 0.7s ease-in-out}@keyframes fadeInAnimation{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}@media (max-width: 768px){h1{font-size:2.2rem}h2{font-size:1.8rem}h3{font-size:1.5rem}.site-header{position:static}.site-header .header-flex{flex-direction:column;align-items:center}.site-header .logo{margin-bottom:1rem;text-align:center}.site-header nav{display:flex;flex-wrap:wrap;justify-content:center;width:100%}.site-header nav a{margin:5px 10px;font-size:0.9rem}.site-header nav .theme-toggle-button{margin-top:10px;margin-left:0}.hero-section{padding:3rem 0}.hero-section h1{font-size:2.5rem}.hero-section .hero-subtitle{font-size:1.1rem}.project-grid{grid-template-columns:1fr}.project-image-gallery .gallery-column,.project-image-gallery .plot-container,.project-image-gallery .cam-container,.training-plots .gallery-column,.training-plots .plot-container,.training-plots .cam-container,.cam-examples .gallery-column,.cam-examples .plot-container,.cam-examples .cam-container{min-width:100%;max-width:100%}}
