/* Base Reset & Font */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #0d0d0d; /* deep black */
    color: #e0e0e0;            /* light silver text */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    font-size: 16px;
    padding: 20px;
    overflow-x: hidden;
    max-width: 100vw;
}

.page-body {
    color: #e0e0e0;
    font-size: 1rem;
    line-height: 1.6;
    overflow-x: hidden;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    width: 100%;
    box-sizing: border-box;
}

.page-body h1, .page-body h2, .page-body h3, .page-body h4 {
    margin-top: 1.2em;
    margin-bottom: 0.6em;
    color: #fff;
}

.page-body p {
    margin: 0 0 1em;
}

.page-body ul, .page-body ol {
    padding-left: 1.5em;
    margin: 1em 0;
}

.page-body li {
    margin-bottom: 0.5em;
}

.page-body blockquote {
    border-left: 4px solid #4a0070;
    padding-left: 1em;
    color: #ccc;
    margin: 1em 0;
    font-style: italic;
}

.page-body pre {
    background: #111;
    color: #8cf;
    padding: 1em;
    overflow: auto;
    border-radius: 4px;
}

.page-body code {
    background: #222;
    color: #f8f8f2;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: monospace;
}

/* Responsive content handling */
.page-body img,
.page-body video,
.page-body iframe,
.page-body embed,
.page-body object {
    max-width: 100%;
    height: auto;
}

/* Responsive tables - wrap in scrollable container */
.page-body table {
    border-collapse: collapse;
    min-width: 100%;
}

.page-body table td,
.page-body table th {
    white-space: nowrap;
    padding: 8px;
    border: 1px solid #333;
}

/* Table wrapper for horizontal scroll */
.page-body .table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 1em 0;
    border: 1px solid #2a2a2a;
    border-radius: 4px;
}

/* Auto-wrap tables that aren't already wrapped */
.page-body > table {
    display: block;
    width: 100% !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Handle figure elements with tables */
.page-body figure.table {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    margin: 1em 0;
    border: 1px solid #2a2a2a;
    border-radius: 4px;
    position: relative;
    box-sizing: border-box !important;
}

.page-body figure.table table {
    min-width: max-content;
    width: auto !important;
    margin: 0;
    display: table !important;
}

/* Force all figure elements to respect boundaries */
.page-body figure {
    max-width: 100% !important;
    overflow-x: auto !important;
}

/* Visual scroll indicator for wide tables */
.page-body figure.table:after,
.page-body .table-wrapper:after {
    content: '← Scroll →';
    position: absolute;
    bottom: 0;
    right: 0;
    background: rgba(21, 0, 57, 0.9);
    color: #aa88ff;
    padding: 2px 8px;
    font-size: 0.75em;
    border-radius: 4px 0 4px 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.page-body figure.table:hover:after,
.page-body .table-wrapper:hover:after {
    opacity: 1;
}

/* Responsive iframes (videos, embeds) */
.page-body iframe:not(.video-wrapper iframe) {
    max-width: 100% !important;
    width: 100% !important;
    height: auto;
    aspect-ratio: 16/9;
}

/* Override inline styles on iframes not in video wrapper */
.page-body iframe[width]:not(.video-wrapper iframe) {
    width: 100% !important;
}

.page-body iframe[height]:not(.video-wrapper iframe) {
    height: auto !important;
    aspect-ratio: 16/9;
}

/* Handle wide code blocks */
.page-body pre {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.page-body pre code {
    display: block;
    padding: 1em;
    overflow-x: auto;
    max-width: 100%;
}

/* Responsive video wrapper for maintaining aspect ratio */
.page-body .video-wrapper,
.page-body .embed-responsive {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin: 1em 0;
}

.page-body .video-wrapper iframe,
.page-body .video-wrapper object,
.page-body .video-wrapper embed,
.page-body .embed-responsive iframe {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border: 0;
}

/* Layout */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    border: 1px solid #150039; /* dark purple border */
    border-radius: 8px;
    background-color: #121212; /* slightly lighter black */
    overflow-x: hidden; /* Prevent horizontal overflow */
}

/* Main content area */
.page-content {
    max-width: 100%;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* Force all direct children to respect boundaries */
.page-body > * {
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* Header / Footer */
header, footer {
    padding: 20px 0;
    text-align: center;
    border-bottom: 1px solid #150039;
}

footer {
    border-top: 1px solid #150039;
    border-bottom: none;
    font-size: 14px;
    color: #aaa;
}

.recent-posts-footer {
    margin-top: 60px;
    padding: 40px 20px;
    background: linear-gradient(180deg, rgba(21, 0, 57, 0.05) 0%, rgba(13, 13, 13, 1) 100%);
    border-top: 2px solid #150039;
}

.recent-posts-footer h3 {
    color: #ffffff;
    font-size: 1.6em;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.recent-posts-footer h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #aa88ff, transparent);
}

.recent-posts-footer .recent-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 30px auto 0;
}

.recent-posts-footer .recent-post-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #121212 100%);
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-height: 150px;
    display: flex;
    flex-direction: column;
}

.recent-posts-footer .recent-post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #4a0070, transparent);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.recent-posts-footer .recent-post-card:hover {
    transform: translateY(-3px);
    border-color: #4a0070;
    box-shadow: 0 8px 20px rgba(74, 0, 112, 0.3);
}

.recent-posts-footer .recent-post-card:hover::before {
    transform: translateX(0);
}

.recent-posts-footer .recent-post-card h4 {
    margin: 0 0 10px 0;
    font-size: 1em;
}

.recent-posts-footer .recent-post-card h4 a {
    color: #a6d4ff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.recent-posts-footer .recent-post-card:hover h4 a {
    color: #ffffff;
}

.recent-posts-footer .recent-post-excerpt {
    color: #bbb;
    font-size: 0.85em;
    line-height: 1.4;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.recent-posts-footer .recent-post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8em;
    color: #888;
    padding-top: 10px;
    border-top: 1px solid #2a2a2a;
    margin-top: auto;
}

.recent-posts-footer .post-date {
    color: #999;
}

.recent-posts-footer .post-views {
    color: #aa88ff;
    font-weight: 500;
}

@media (max-width: 768px) {
    .recent-posts-footer .recent-posts-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .recent-posts-footer h3 {
        font-size: 1.3em;
    }
}


/* Navigation */
nav {
    margin: 20px 0;
    text-align: center;
}

nav a {
    color: #c0c0c0;
    text-decoration: none;
    margin: 0 10px;
    padding: 5px 10px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

nav a:hover {
    border: 1px solid #150039;
    color: #ffffff;
}

/* Headings */
h1, h2, h3 {
    color: #ffffff;
    margin-bottom: 16px;
}

h1 {
    font-size: 2.5em;
    border-bottom: 2px solid #150039;
    padding-bottom: 10px;
}

h2 {
    font-size: 1.8em;
    border-bottom: 1px solid #150039;
    padding-bottom: 6px;
}

/* Links */
a {
    color: #aa88ff;
}

a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Buttons */
button {
    background-color: #150039;
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #150039;
}

/* Code blocks */
pre, code {
    background-color: #1e1e1e;
    color: #dcdcdc;
    padding: 6px 10px;
    border-radius: 4px;
    font-family: Consolas, monospace;
    overflow-x: auto;
    display: block;
    margin-bottom: 20px;
}

/* Forms */
input, textarea {
    background-color: #1a1a1a;
    border: 1px solid #150039;
    color: #e0e0e0;
    padding: 8px;
    border-radius: 4px;
    width: 100%;
    margin-bottom: 10px;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #150039;
}

/* header */
header.site-header {
    position: sticky;
    top: 0;
    background-color: rgba(13, 13, 13, 1); /* opaque by default */
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 20px 0;
    border-bottom: 1px solid rgba(21, 0, 57, 0.3);
}

header.site-header.scrolled {
    background-color: rgba(13, 13, 13, 0.85); /* semi-transparent */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.site-title {
    color: #ffffff;
    font-size: 2em;
    margin: 0;
    text-align: center;
    transition: font-size 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-header.scrolled .site-title {
    font-size: 1.6em;
}

nav.site-nav {
    margin-top: 10px;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 5px;
    flex-wrap: wrap;
}

nav.site-nav a {
    color: #c0c0c0;
    text-decoration: none;
    padding: 8px 16px;
    font-weight: bold;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

nav.site-nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(74, 0, 112, 0.2), rgba(170, 136, 255, 0.2));
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: -1;
}

nav.site-nav a:hover::before {
    transform: translateY(0);
}

nav.site-nav a:hover {
    color: #ffffff;
    transform: translateY(-2px);
}

nav.site-nav a.active {
    color: #aa88ff;
    background: linear-gradient(135deg, rgba(74, 0, 112, 0.3), rgba(170, 136, 255, 0.1));
    box-shadow: 0 2px 10px rgba(170, 136, 255, 0.2);
}

nav.site-nav a.active:hover {
    color: #ffffff;
}

.site-header {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-logo {
    display: flex;
    justify-content: center;  /* Horizontal centering */
    align-items: center;      /* Vertical centering */
    height: auto;
    max-height: 200px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: top center;
    margin: 10px 0;
}

.site-logo img {
    display: block;
    max-width: 100%;
    height: auto;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
    filter: drop-shadow(0 0 20px rgba(170, 136, 255, 0.3));
}

.site-logo img:hover {
    transform: scale(1.05) rotate(5deg);
    filter: drop-shadow(0 0 30px rgba(170, 136, 255, 0.5));
}

.site-header.scrolled .site-logo {
    max-height: 50px;
    opacity: 0.9;
    margin: 5px 0;
}

.site-header.scrolled .site-logo img {
    transform: scale(0.3);
    filter: drop-shadow(0 0 10px rgba(170, 136, 255, 0.2));
}

/* Animated gradient border */
.header-gradient-border {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent,
        #4a0070 20%,
        #aa88ff 50%,
        #4a0070 80%,
        transparent
    );
    background-size: 200% 100%;
    animation: gradientSlide 3s linear infinite;
}

@keyframes gradientSlide {
    0% {
        background-position: -100% 0;
    }
    100% {
        background-position: 100% 0;
    }
}

.site-header.scrolled .header-gradient-border {
    opacity: 0.7;
}



/* footer */
.site-footer {
    background-color: #0d0d0d;
    color: #bbb;
    text-align: center;
    padding: 20px 0;
    font-size: 0.9em;
    border-top: 2px solid #150039; /* dark purple border */
    margin-top: 60px;
}

.site-footer p {
    margin: 0;
    font-family: 'Segoe UI', 'Arial', sans-serif;
    letter-spacing: 0.5px;
}

/* Posts Page */
.posts-page {
    padding: 20px 0;
}

.posts-page h2 {
    color: #ffffff;
    font-size: 2em;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    padding-bottom: 20px;
}

.posts-page h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #aa88ff, transparent);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.post-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #121212 100%);
    border: 1px solid #2a2a2a;
    border-radius: 10px;
    padding: 25px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 250px;
}

.post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #4a0070, transparent);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    border-color: #4a0070;
    box-shadow: 0 10px 30px rgba(74, 0, 112, 0.3);
}

.post-card:hover::before {
    transform: translateX(0);
}

.post-card h3 {
    margin: 0 0 15px 0;
    font-size: 1.3em;
}

.post-card h3 a {
    color: #a6d4ff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-card:hover h3 a {
    color: #ffffff;
}

.post-card .post-excerpt {
    color: #ccc;
    font-size: 0.95em;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.post-card .post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85em;
    color: #888;
    padding-top: 15px;
    border-top: 1px solid #2a2a2a;
    margin-top: auto;
}

.post-card .post-date {
    color: #999;
}

.post-card .post-views {
    color: #aa88ff;
    font-weight: 500;
}

@media (max-width: 768px) {
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .posts-page h2 {
        font-size: 1.6em;
    }
    
    .post-card {
        padding: 20px;
    }
}

/* Related Posts Section */
.related-posts {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #150039;
}

.related-posts h3 {
    color: #ffffff;
    font-size: 1.6em;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.related-posts h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #aa88ff, transparent);
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.related-post-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #121212 100%);
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.related-post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #150039, #aa88ff);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.related-post-card:hover {
    transform: translateY(-3px);
    border-color: #150039;
    box-shadow: 0 8px 20px rgba(21, 0, 57, 0.3);
}

.related-post-card:hover::before {
    transform: translateX(0);
}

.related-post-card h4 {
    margin: 0 0 12px 0;
    font-size: 1.1em;
}

.related-post-card h4 a {
    color: #a6d4ff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.related-post-card h4 a:hover {
    color: #ffffff;
}

.related-post-excerpt {
    color: #b0b0b0;
    font-size: 0.9em;
    line-height: 1.5;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8em;
    color: #666;
    padding-top: 12px;
    border-top: 1px solid #2a2a2a;
}

.related-post-meta .post-date {
    color: #888;
}

.related-post-meta .post-views {
    color: #aa88ff;
    opacity: 0.7;
}

@media (max-width: 768px) {
    .related-posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .related-posts h3 {
        font-size: 1.4em;
    }
}

/* Homepage Styles */
.homepage {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #1a0033 0%, #4a0070 100%);
    border-radius: 12px;
    margin-bottom: 60px;
}

.hero-title {
    font-size: 3em;
    color: #fff;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.3em;
    color: #e0e0e0;
    margin-bottom: 30px;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #9b59b6;
    color: white;
}

.btn-primary:hover {
    background: #8e44ad;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(155, 89, 182, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid #9b59b6;
}

.btn-secondary:hover {
    background: #9b59b6;
    transform: translateY(-2px);
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #2a2a2a;
    padding-bottom: 10px;
}

.section-header h2 {
    color: #fff;
    font-size: 2em;
}

.view-all-link {
    color: #9b59b6;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.view-all-link:hover {
    color: #b47cc9;
}

/* Featured Projects Grid */
.featured-projects {
    margin-bottom: 60px;
}

.featured-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.featured-project-card {
    background: #1a1a1a;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #2a2a2a;
    transition: all 0.3s ease;
    position: relative;
}

.featured-project-card:hover {
    transform: translateY(-5px);
    border-color: #9b59b6;
    box-shadow: 0 10px 30px rgba(155, 89, 182, 0.2);
}

.featured-project-card h3 {
    margin-bottom: 15px;
}

.featured-project-card h3 a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.featured-project-card h3 a:hover {
    color: #9b59b6;
}

.project-description {
    color: #b0b0b0;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Recent Posts */
.recent-posts {
    margin-bottom: 60px;
}

.recent-posts-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.recent-post-item {
    background: #1a1a1a;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #3498db;
    transition: all 0.3s ease;
}

.recent-post-item:hover {
    transform: translateX(5px);
    border-left-color: #9b59b6;
}

.recent-post-item h3 {
    margin-bottom: 10px;
}

.recent-post-item h3 a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.recent-post-item h3 a:hover {
    color: #9b59b6;
}

.post-excerpt {
    color: #b0b0b0;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Projects Page */
.projects-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.projects-intro {
    color: #b0b0b0;
    font-size: 1.1em;
    margin-bottom: 40px;
    text-align: center;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.project-card {
    background: #1a1a1a;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #2a2a2a;
    transition: all 0.3s ease;
    position: relative;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: #9b59b6;
    box-shadow: 0 10px 30px rgba(155, 89, 182, 0.2);
}

.project-card h3 {
    margin-bottom: 15px;
}

.project-card h3 a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.project-card h3 a:hover {
    color: #9b59b6;
}

.project-excerpt {
    color: #b0b0b0;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Project Links */
.project-links {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.project-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #2a2a2a;
    border-radius: 6px;
    color: #e0e0e0;
    text-decoration: none;
    transition: all 0.3s ease;
}

.project-link:hover {
    background: #9b59b6;
    color: white;
    transform: scale(1.1);
}

.github-link:hover {
    background: #333;
}

.hf-link {
    font-size: 1.2em;
}

.hf-link:hover {
    background: #ff9b00;
}

.demo-link:hover {
    background: #3498db;
}

.website-link:hover {
    background: #2ecc71;
}

/* Project Status Badges */
.project-status {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: 600;
    text-transform: uppercase;
}

.status-active {
    background: #2ecc71;
    color: white;
}

.status-archived {
    background: #95a5a6;
    color: white;
}

.status-coming-soon {
    background: #f39c12;
    color: white;
}

/* Project Meta */
.project-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.9em;
    color: #888;
    padding-top: 15px;
    border-top: 1px solid #2a2a2a;
}

.project-date,
.project-views {
    display: flex;
    align-items: center;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 20px;
}

.empty-state-content h2 {
    color: #fff;
    margin-bottom: 15px;
}

.empty-state-content p {
    color: #b0b0b0;
    font-size: 1.1em;
}

.no-projects {
    text-align: center;
    padding: 60px 20px;
    background: #1a1a1a;
    border-radius: 8px;
}

.no-projects p {
    color: #b0b0b0;
    font-size: 1.1em;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2em;
    }
    
    .hero-subtitle {
        font-size: 1.1em;
    }
    
    .featured-projects-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 250px;
    }
}

/* About Page Styles */
.about-page {
    max-width: 100%;
}

.about-hero {
    background: linear-gradient(135deg, #1a0033 0%, #4a0070 100%);
    padding: 60px 20px;
    margin-bottom: 0;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
}

.about-hero .about-container {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.about-photo {
    flex-shrink: 0;
}

.profile-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.about-content h1 {
    color: #fff;
    font-size: 3em;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.about-tagline {
    color: #e0e0e0;
    font-size: 1.2em;
    line-height: 1.6;
    margin: 0;
}

.about-details {
    padding: 60px 20px;
}

.about-section {
    margin-bottom: 60px;
}

.about-section h2 {
    color: #fff;
    font-size: 2.2em;
    margin-bottom: 30px;
    border-bottom: 2px solid #9b59b6;
    padding-bottom: 10px;
}

.about-section p {
    color: #e0e0e0;
    font-size: 1.1em;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.skill-category {
    background: #1a1a1a;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #2a2a2a;
}

.skill-category h3 {
    color: #9b59b6;
    font-size: 1.3em;
    margin-bottom: 15px;
    margin-top: 0;
}

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

.skill-category li {
    color: #e0e0e0;
    padding: 8px 0;
    border-bottom: 1px solid #2a2a2a;
}

.skill-category li:last-child {
    border-bottom: none;
}

.skill-category li::before {
    content: "▪";
    color: #9b59b6;
    margin-right: 8px;
}

/* Project Highlights */
.projects-highlight {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.project-highlight {
    background: #1a1a1a;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #2a2a2a;
    transition: all 0.3s ease;
}

.project-highlight:hover {
    transform: translateY(-5px);
    border-color: #9b59b6;
    box-shadow: 0 10px 30px rgba(155, 89, 182, 0.2);
}

.project-highlight h3 {
    color: #9b59b6;
    font-size: 1.3em;
    margin-bottom: 15px;
    margin-top: 0;
}

.project-highlight p {
    color: #b0b0b0;
    line-height: 1.6;
    margin: 0;
}

.cta-section {
    text-align: center;
    margin-top: 40px;
}

/* Experience Summary */
.experience-summary {
    margin: 30px 0;
}

.experience-highlight {
    background: #1a1a1a;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #2a2a2a;
    margin-bottom: 30px;
}

.experience-highlight h3 {
    color: #9b59b6;
    font-size: 1.3em;
    margin-bottom: 20px;
    margin-top: 0;
}

.experience-highlight p {
    color: #b0b0b0;
    line-height: 1.6;
    margin-bottom: 15px;
}

.experience-highlight p:last-child {
    margin-bottom: 0;
}

.experience-highlight strong {
    color: #fff;
}

/* Legacy Experience Timeline (kept for potential future use) */
.experience-timeline {
    margin-top: 30px;
}

.experience-item {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #2a2a2a;
}

.experience-item:last-child {
    border-bottom: none;
}

.experience-period {
    flex-shrink: 0;
    width: 150px;
    color: #9b59b6;
    font-weight: 600;
    font-size: 0.9em;
    padding-top: 5px;
}

.experience-details h3 {
    color: #fff;
    font-size: 1.3em;
    margin-bottom: 5px;
    margin-top: 0;
}

.experience-details h4 {
    color: #9b59b6;
    font-size: 1.1em;
    margin-bottom: 15px;
    margin-top: 0;
    font-weight: 600;
}

.experience-details p {
    color: #b0b0b0;
    line-height: 1.6;
    margin: 0;
}

/* Education Grid */
.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.education-category {
    background: #1a1a1a;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #2a2a2a;
}

.education-category h3 {
    color: #9b59b6;
    font-size: 1.3em;
    margin-bottom: 15px;
    margin-top: 0;
}

.education-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.education-category li {
    color: #e0e0e0;
    padding: 8px 0;
    border-bottom: 1px solid #2a2a2a;
}

.education-category li:last-child {
    border-bottom: none;
}

.education-category li::before {
    content: "🎓";
    margin-right: 8px;
}

/* Contact Section */
.contact-section {
    background: #1a1a1a;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    border: 2px solid #9b59b6;
}

.contact-section h2 {
    border-bottom: none;
    margin-bottom: 20px;
}

.contact-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .about-hero .about-container {
        flex-direction: column;
        text-align: center;
    }
    
    .about-content h1 {
        font-size: 2.2em;
    }
    
    .about-tagline {
        font-size: 1.1em;
    }
    
    .experience-item {
        flex-direction: column;
        gap: 15px;
    }
    
    .experience-period {
        width: auto;
    }
    
    .skills-grid,
    .projects-highlight,
    .education-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-actions .btn {
        width: 100%;
        max-width: 250px;
    }
}
