/* Basic Styles & Color Palette (from Vesper theme) */
html {
    height: 100%;
}

body {
    background-color: #363636;
    color: #FFFFFF;
    font-family: 'Roboto Mono', monospace;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex-grow: 1;
}

a {
    color: #99FFE4;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #35DFB1;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 20px;
}

/* Header & Navigation */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background-color: #101010;
    border-bottom: 1px solid #99FFE4;
}

.logo {
    font-size: 1.5em;
    font-weight: bold;
}

.logo a {
    color: #FFFFFF;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

nav li {
    margin-left: 20px;
}

nav a {
    font-size: 1.1em;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #FFC799;
}

.desktop-nav .nav-search svg {
    fill: #FFFFFF;
    transition: fill 0.3s ease;
}

.desktop-nav .nav-search a:hover svg {
    fill: #FFC799;
}

.desktop-nav {
    position: relative;
    display: flex;
    align-items: center;
}

.desktop-search-container {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    opacity: 0;
    transition: width 0.35s ease-in-out, opacity 0.2s ease-in-out;
    pointer-events: none;
}

.desktop-search-field {
    background-color: #363636;
    color: #FFFFFF;
    border: 1px solid #99FFE4;
    padding: 8px 15px;
    border-radius: 5px;
    font-family: inherit;
    caret-color: #FFC799;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
}

.desktop-nav.search-active .desktop-search-container {
    width: 250px; /* Or any width you prefer */
    opacity: 1;
    pointer-events: auto;
}

.desktop-nav.search-active ul {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease-in-out;
}

/* Full-screen canvas for animation */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    margin: 10px 0 30px;
}

/* Hero Section */
.hero {
    height: calc(100vh - 80px); /* Full height minus header */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

.hero h1 {
    font-size: 4em;
    margin: 0;
    color: #FFFFFF;
}

.hero p {
    font-size: 1.5em;
    color: #A0A0A0;
    margin: 10px 0 30px;
}

.cta-button {
    background-color: #FFC799;
    color: #101010;
    padding: 15px 30px;
    font-size: 1.2em;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.cta-button:hover {
    background-color: #E6B99D;
    color: #101010;
    transform: translateY(-2px);
}

/* Content Sections */
.content-section {
    padding: 60px 20px;
    background-color: #101010;
    border-bottom: 1px solid #101010;
}

.content-section h2 {
    font-size: 2.5em;
    color: #ACA1CE;
    text-align: center;
    margin-bottom: 40px;
}

/* About Section */
.about-content {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.about-text {
    flex: 2;
}

.skills-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skills-list li {
    background-color: #8FB99F;
    color: #101010;
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: bold;
}

/* Updated Skills Section */
.skills {
    flex: 1;
    min-width: 300px;
}

.skill {
    margin-bottom: 15px;
}

.skill p {
    margin: 0 0 5px;
    display: flex;
    justify-content: space-between;
}

.skill-bar {
    background-color: #101010;
    border-radius: 5px;
    padding: 3px;
    border: 1px solid #8FB99F;
}

.skill-level {
    background-color: #8FB99F;
    height: 10px;
    border-radius: 3px;
}

/* Contact Form */
#contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 800px;
    margin: 0 auto;
}

#contact-form input,
#contact-form textarea {
    background-color: #101010;
    color: #FFFFFF;
    border: 1px solid #99FFE4;
    padding: 15px;
    border-radius: 5px;
    font-family: inherit;
}

#contact-form input:focus,
#contact-form textarea:focus {
    outline: none;
    border-color: #35DFB1;
}

#contact-form .honeypot {
    display: none;
}

#contact-form button {
    background-color: #FFC799;
    color: #101010;
    padding: 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2em;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

#contact-form button:hover {
    background-color: #E6B99D;
    transform: translateY(-2px);
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background-color: #101010;
    color: #A0A0A0;
    flex-shrink: 0;
}

footer p {
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

footer a {
    color: #A0A0A0;
    font-size: 0.9em;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #99FFE4;
}

footer a svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* === CORRECTED RESPONSIVE AND MOBILE NAVIGATION STYLES === */

.mobile-nav-header {
    position: relative; /* Crucial for positioning the search container */
    padding: 15px 20px;
    border-bottom: 1px solid #363636;
    overflow: hidden;
}

.mobile-nav-header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.mobile-nav-title-text {
    flex-grow: 1;
    text-align: center;
    margin: 0;
    font-size: 18px;
    font-weight: bold;
    color: #ACA1CE;
    white-space: nowrap;
    transition: opacity 0.2s ease-in-out;
}

.mobile-nav-search-toggle,
.mobile-nav-close {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    flex-shrink: 0;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease-in-out;
}

.mobile-nav-search-container {
    position: absolute;
    left: 20px;
    top: 15px; /* Align with header padding */
    height: calc(100% - 30px); /* Align with header padding */
    width: 0;
    opacity: 0;
    transition: width 0.35s ease-in-out, opacity 0.2s ease-in-out;
    pointer-events: none;
}

.mobile-nav-search-field {
    background-color: #101010;
    color: #FFFFFF;
    border: 1px solid #99FFE4;
    padding: 0 15px; /* Vertical padding handled by container height */
    border-radius: 5px;
    font-family: inherit;
    caret-color: #FFC799;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
}

/* --- Search Active State --- */
.mobile-nav-header.search-active .mobile-nav-title-text,
.mobile-nav-header.search-active .mobile-nav-search-toggle,
.mobile-nav-header.search-active .mobile-nav-close {
    opacity: 0;
    pointer-events: none;
}

.mobile-nav-header.search-active .mobile-nav-search-container {
    width: calc(100% - 40px); /* Full width minus side padding */
    opacity: 1;
    pointer-events: auto;
}

/* --- Page Blur Effect --- */
.mobile-menu-is-open > header,
.mobile-menu-is-open > main,
.mobile-menu-is-open > footer,
.mobile-menu-is-open > #particle-canvas {
    transition: filter 0.35s ease-in-out;
    filter: blur(4px) brightness(0.7);
}

/* Mobile Nav from Bottom (Structure & Panel Styles) */
.mobile-nav-trigger {
    display: none; /* Hidden on desktop by default */
    align-items: center;
    gap: 10px;
	background-color: #101010;
    border: 1px solid #99FFE4;
	padding: 10px 20px;
	border-radius: 28px;
	box-shadow: 0 2px 20px -5px #101010;
	color: #FFFFFF;
	font-size: 16px;
	white-space: nowrap;
	position: fixed;
	bottom: 30px;
	left: 50%;
	transform: translateX(-50%);
	cursor: pointer;
	z-index: 105;
	transition: .3s ease-in-out;
}

.mobile-nav-trigger.hidden {
    transform: translate(-50%, 200%);
}

.mobile-nav-trigger:hover {
    background-color: #202020;
}

.mobile-nav-overlay {
    width: 100%;
    height: 100%;
    background: rgba(16, 16, 16, .7);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    transition: opacity .3s ease-in-out;
}

.mobile-nav-overlay[hidden] {
    opacity: 0;
    pointer-events: none;
}

.mobile-nav-container {
	display: block;
	width: 100%;
	background: #202020;
	padding-bottom: 15px;
	border-top-left-radius: 20px;
	border-top-right-radius: 20px;
	box-shadow: 0px -9px 50px -30px black;
	position: fixed;
	bottom: 0;
    left: 0;
	z-index: 105;
	transform: translateY(0);
	transition: .2s cubic-bezier(.33,1,.53,1);
}

.mobile-nav-container[hidden] {
    transform: translateY(110%);
}

.mobile-nav-links {
	display: flex;
    overflow-x: auto;
    /* Hide scrollbar for a cleaner look */
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
	padding: 15px 20px;
	font-weight: bold;
    gap: 20px; /* Spacing between links */
}
/* Hide scrollbar for Chrome, Safari and Opera */
.mobile-nav-links::-webkit-scrollbar {
    display: none;
}

.mobile-nav-links a {
    flex: 0 0 auto; /* Prevent links from shrinking */
    padding: 10px 15px;
    color: #FFC799; /* Updated Color */
    text-decoration: none;
    text-align: center;
    font-size: 1.2em; /* Adjusted size for horizontal layout */
    border-bottom: none;
    border-radius: 8px;
    transition: background-color 0.3s, color 0.3s;
}

.mobile-nav-links a:last-child {
    border-bottom: none;
}

.mobile-nav-links a:hover {
    color: #101010;
    background-color: #99FFE4;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
    .desktop-nav {
        display: none;
    }

    .mobile-nav-trigger {
        display: flex;
    }

    .hero h1 {
        font-size: 3em;
    }

    .hero p {
        font-size: 1.2em;
    }

    .about-content {
        flex-direction: column;
    }

    .skills {
        width: 100%;
    }

    footer p {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.5em;
    }

    .hero p {
        font-size: 1em;
    }
}

/* --- Blog Page Styles --- */
.blog-container {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.blog-main-content {
    flex: 3;
}

.sidebar {
    flex: 1;
    min-width: 220px;
    margin-top: 6rem;
}

.blog-title {
    font-size: 2.5em;
    color: #ACA1CE;
    margin-bottom: 40px;
    border-bottom: 1px solid #99FFE4;
    padding-bottom: 20px;
}

.blog-post-summary {
    background-color: #101010;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
    border-left: 4px solid #8FB99F;
    transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out;
}

.post-title {
    margin-top: 0;
    font-size: 1.8em;
}

.post-title a {
    color: #FFFFFF;
}

.post-meta {
    font-size: 0.9em;
    color: #A0A0A0;
    margin-bottom: 15px;
}

.post-excerpt {
    color: #FFFFFF;
    line-height: 1.6;
}

.read-more {
    display: inline-block;
    margin-top: 20px;
    color: #FFC799;
    font-weight: bold;
}

.read-more:hover {
    color: #E6B99D;
}

.sidebar-widget {
    background-color: #101010;
    padding: 20px;
    border-radius: 8px;
}

.widget-title {
    margin-top: 0;
    color: #ACA1CE;
    border-bottom: 1px solid #363636;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

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

.widget-list li a {
    display: block;
    padding: 8px 0;
    color: #A0A0A0;
    border-bottom: 1px solid #363636;
    transition: color 0.3s ease;
}

.widget-list li:last-child a {
    border-bottom: none;
}

.widget-list li a:hover {
    color: #FFFFFF;
}

.widget-list .active {
    color: #FFFFFF;
    font-weight: bold;
}

/* --- Back to Top Button --- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #FFC799;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateY(20px);
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: #E6B99D;
    transform: translateY(-2px);
}

.back-to-top svg {
    fill: #101010;
}

/* --- Single Blog Post Styles --- */
.blog-post-full {
    background-color: #101010;
    padding: 40px;
    border-radius: 8px;
}

.blog-post-header {
    text-align: center;
    border-bottom: 1px solid #363636;
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.post-title-full {
    font-size: 2.2em;
    color: #FFFFFF;
    margin: 0 0 10px;
}

.post-meta-full {
    color: #A0A0A0;
    font-size: 0.9em;
    margin-bottom: 20px;
    order: 1;
}

.breadcrumbs {
    font-size: 0.8em;
    color: #A0A0A0;
    margin-top: 10px;
}

.breadcrumbs a {
    color: #FFC799;
}

.blog-post-content {
    line-height: 1.8;
    color: #A0A0A0;
    overflow-wrap: break-word; /* Prevents long strings from overflowing */
    word-wrap: break-word;
}

.blog-post-content h3 {
    font-size: 1.6em;
    color: #ACA1CE;
    margin-top: 40px;
    margin-bottom: 20px;
}

.blog-post-content img.blog-post-image {
    max-width: 100%;
    width: 100% !important;
    height: auto;
    display: block;
    margin: 1.5em auto; /* Center the image and add vertical space */
    border-radius: 8px;
    cursor: pointer;
}

.blog-post-content p {
    margin: 0 0 1.5em;
}

.blog-post-content img,
.blog-post-content figure,
.blog-post-content a {
    max-width: 100%;
    height: auto;
    display: block;
}

.blog-post-content img {
    margin: 1.5em 0;
    border-radius: 8px;
    cursor: pointer;
}

.blog-post-content ul,
.blog-post-content ol {
    margin-left: 20px;
    margin-bottom: 20px;
}

.blog-post-content li {
    margin-bottom: 10px;
}

.blog-post-content a {
    color: #FFC799;
}

.blog-post-content a:hover {
    text-decoration: underline;
}

.blog-post-content strong {
    color: #99FFE4;
}

.blog-post-content em {
    font-style: italic;
    color: #A0A0A0;
}

/* --- Blog Filtering Animation Styles --- */
.blog-post-summary.hidden {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
    height: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
    border: none;
    overflow: hidden;
}

.particle-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    /* background-color is now set by JS */
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    transition: transform 2s cubic-bezier(0.17, 0.84, 0.44, 1), opacity 2s ease-out, background-color 2s ease-in-out;
}

@media (max-width: 768px) {
    .blog-container {
        flex-direction: column;
    }

    .sidebar {
        margin-top: 2rem;
        width: 100%;
    }
}

/* --- Media Queries --- */
@media (max-width: 1200px) {
    .desktop-nav {
        display: none;
    }

    .mobile-nav-trigger {
        display: flex;
    }

    .hero h1 {
        font-size: 3em;
    }

    .hero p {
        font-size: 1.2em;
    }

    .about-content {
        flex-direction: column;
    }

    .skills {
        width: 100%;
    }

    footer p {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.5em;
    }

    .hero p {
        font-size: 1em;
    }
} 