:root {
    --primary-color: #22c55e; /* Changed from blue to green */
    --primary-light: #4ade80;
    --primary-dark: #16a34a;
    --secondary-color: #a855f7; /* Purple as secondary */
    --dark-bg: #0a0a0a; /* Darker background */
    --dark-card: #171717; /* Darker card background */
    --dark-border: #262626; /* Darker border */
    --dark-text: #f8fafc;
    --dark-text-muted: #94a3b8;
    --light-bg: #f8fafc;
    --light-card: #ffffff;
    --light-border: #e2e8f0;
    --light-text: #0f172a;
    --light-text-muted: #64748b;
    --transition: all 0.3s ease;
    --shadow: 0 10px 30px -15px rgba(0, 0, 0, 0.1);
    --shadow-dark: 0 10px 30px -15px rgba(0, 0, 0, 0.7);
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    --font-heading: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--dark-bg);
    color: var(--dark-text);
    line-height: 1.6;
    overflow-x: hidden;
    transition: var(--transition);
}

body.light-mode {
    background-color: var(--light-bg);
    color: var(--light-text);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

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

.light-mode .btn-secondary {
    color: var(--light-text);
    border-color: var(--light-text);
}

.btn-secondary:hover {
    background-color: var(--dark-text);
    color: var(--dark-bg);
}

.light-mode .btn-secondary:hover {
    background-color: var(--light-text);
    color: var(--light-bg);
}

/* Custom Cursor */
.cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: rgba(34, 197, 94, 0.5); /* Updated to match new primary color */
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease, background-color 0.3s ease;
}

.cursor-hover {
    transform: translate(-50%, -50%) scale(1.5);
    background-color: rgba(34, 197, 94, 0.3); /* Updated to match new primary color */
}

.cursor-active {
    transform: translate(-50%, -50%) scale(0.8);
    background-color: rgba(34, 197, 94, 0.8); /* Updated to match new primary color */
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1.5rem 0;
    background-color: rgba(10, 10, 10, 0.8); /* Darker background */
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.light-mode header {
    background-color: rgba(248, 250, 252, 0.8);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo a {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-text);
}

.light-mode .logo a {
    color: var(--light-text);
}

nav ul {
    display: flex;
    gap: 2rem;
}

nav a {
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

.theme-toggle {
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--dark-card);
    color: var(--dark-text);
    transition: var(--transition);
}

.light-mode .theme-toggle {
    background-color: var(--light-card);
    color: var(--light-text);
}

.theme-toggle:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Hero Section */
.hero-section {
    padding: 10rem 0 6rem;
    position: relative;
    overflow: hidden;
}

.hero-section .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-subtitle {
    display: inline-block;
    font-size: 1rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
    padding-left: 2rem;
}

.hero-subtitle::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 1.5rem;
    height: 2px;
    background-color: var(--primary-color);
    transform: translateY(-50%);
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-title .highlight {
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.hero-title .highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background-color: rgba(34, 197, 94, 0.2); /* Updated to match new primary color */
    z-index: -1;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--dark-text-muted);
}

.light-mode .hero-description {
    color: var(--light-text-muted);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-image {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-dark);
}

.light-mode .hero-image {
    box-shadow: var(--shadow);
}

.hero-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom right, rgba(34, 197, 94, 0.2), rgba(168, 85, 247, 0.2)); /* Updated gradient colors */
    z-index: 1;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-subtitle {
    display: inline-block;
    font-size: 1rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

/* About Section */
.about-section {
    padding: 6rem 0;
    background-color: var(--dark-bg);
}

.light-mode .about-section {
    background-color: var(--light-bg);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-text {
    margin-bottom: 3rem;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background-color: var(--dark-card);
    border-radius: 0.5rem;
    transition: var(--transition);
}

.light-mode .stat-item {
    background-color: var(--light-card);
    box-shadow: var(--shadow);
}

.stat-item:hover {
    transform: translateY(-5px);
}

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

.stat-label {
    font-size: 0.9rem;
    color: var(--dark-text-muted);
}

.light-mode .stat-label {
    color: var(--light-text-muted);
}

.about-contact {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.contact-item i {
    font-size: 1.2rem;
    color: var(--primary-color);
}

.contact-item a, .contact-item span {
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--dark-card);
    color: var(--dark-text);
    font-size: 1.2rem;
    transition: var(--transition);
}

.light-mode .social-link {
    background-color: var(--light-card);
    color: var(--light-text);
    box-shadow: var(--shadow);
}

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

/* Skills Section */
.skills-section {
    padding: 6rem 0;
    background-color: var(--dark-card);
}

.light-mode .skills-section {
    background-color: var(--light-card);
}

.skills-content {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.skills-category h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}

.skills-category h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 2rem;
}

.skill-card {
    background-color: var(--dark-bg);
    border-radius: 0.5rem;
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
    opacity: 0;
    transform: translateY(20px);
}

.skill-card.active {
    opacity: 1;
    transform: translateY(0);
}

.light-mode .skill-card {
    background-color: var(--light-bg);
    box-shadow: var(--shadow);
}

.skill-card:hover {
    transform: translateY(-5px);
}

.skill-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.skill-card h4 {
    font-size: 1rem;
}

/* Experience Section */
.experience-section {
    padding: 6rem 0;
    background-color: var(--dark-bg);
}

.light-mode .experience-section {
    background-color: var(--light-bg);
}

.experience-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.experience-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 120px;
    height: 100%;
    width: 2px;
    background-color: var(--dark-border);
}

.light-mode .experience-timeline::before {
    background-color: var(--light-border);
}

.timeline-item {
    display: flex;
    margin-bottom: 3rem;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
}

.timeline-item.active {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-date {
    width: 120px;
    padding-right: 2rem;
    text-align: right;
    font-weight: 600;
    display: flex;
    flex-direction: column;
}

.timeline-content {
    flex: 1;
    padding: 2rem;
    background-color: var(--dark-card);
    border-radius: 0.5rem;
    position: relative;
}

.light-mode .timeline-content {
    background-color: var(--light-card);
    box-shadow: var(--shadow);
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 20px;
    left: -8px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--primary-color);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.timeline-header h3 {
    font-size: 1.2rem;
}

.company {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
}

.location {
    font-size: 0.9rem;
    color: var(--dark-text-muted);
    margin-bottom: 1rem;
}

.light-mode .location {
    color: var(--light-text-muted);
}

.responsibilities ul {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.responsibilities li {
    position: relative;
    padding-left: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.responsibilities li::before {
    content: '•';
    position: absolute;
    left: -1rem;
    color: var(--primary-color);
}

.tech-used {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-used span {
    font-size: 0.8rem;
    padding: 0.25rem 0.75rem;
    background-color: rgba(34, 197, 94, 0.1); /* Updated to match new primary color */
    color: var(--primary-color);
    border-radius: 1rem;
}

/* Education Section */
.education-section {
    padding: 6rem 0;
    background-color: var(--dark-card);
}

.light-mode .education-section {
    background-color: var(--light-card);
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.education-card {
    background-color: var(--dark-bg);
    border-radius: 0.5rem;
    padding: 2rem;
    transition: var(--transition);
    opacity: 0;
    transform: translateY(20px);
}

.education-card.active {
    opacity: 1;
    transform: translateY(0);
}

.light-mode .education-card {
    background-color: var(--light-bg);
    box-shadow: var(--shadow);
}

.education-card:hover {
    transform: translateY(-5px);
}

.education-year {
    font-size: 0.9rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.education-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.education-card h4 {
    font-size: 1rem;
    color: var(--dark-text-muted);
    margin-bottom: 1rem;
    font-weight: 500;
}

.light-mode .education-card h4 {
    color: var(--light-text-muted);
}

.institution {
    font-size: 0.9rem;
}

/* Contact Section */
.contact-section {
    padding: 6rem 0;
    background-color: var(--dark-bg);
}

.light-mode .contact-section {
    background-color: var(--light-bg);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

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

.contact-card {
    background-color: var(--dark-card);
    border-radius: 0.5rem;
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: var(--transition);
    opacity: 0;
    transform: translateY(20px);
}

.contact-card.active {
    opacity: 1;
    transform: translateY(0);
}

.light-mode .contact-card {
    background-color: var(--light-card);
    box-shadow: var(--shadow);
}

.contact-card:hover {
    transform: translateY(-5px);
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.contact-details h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.contact-details p {
    font-size: 0.9rem;
    color: var(--dark-text-muted);
}

.light-mode .contact-details p {
    color: var(--light-text-muted);
}

.contact-details .social-links {
    justify-content: flex-start;
}

.contact-form-container {
    background-color: var(--dark-card);
    border-radius: 0.5rem;
    padding: 2rem;
}

.light-mode .contact-form-container {
    background-color: var(--light-card);
    box-shadow: var(--shadow);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    padding: 0.75rem;
    border-radius: 0.25rem;
    border: 1px solid var(--dark-border);
    background-color: var(--dark-bg);
    color: var(--dark-text);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    transition: var(--transition);
}

.light-mode .form-group input,
.light-mode .form-group textarea {
    border-color: var(--light-border);
    background-color: var(--light-bg);
    color: var(--light-text);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Footer */
footer {
    background-color: var(--dark-card);
    padding: 3rem 0;
}

.light-mode footer {
    background-color: var(--light-card);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-logo a {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-text {
    font-size: 0.9rem;
    color: var(--dark-text-muted);
}

.light-mode .footer-text {
    color: var(--light-text-muted);
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    font-size: 0.9rem;
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.footer-links a:hover::after {
    width: 100%;
}

/* Blog Page Styles */
.blog-hero {
    padding: 10rem 0 4rem;
    text-align: center;
    background-color: var(--dark-bg);
}

.blog-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.blog-description {
    font-size: 1.1rem;
    margin-top: 1.5rem;
    color: var(--dark-text-muted);
}

.light-mode .blog-description {
    color: var(--light-text-muted);
}

/* Blog Categories */
.blog-categories {
    padding: 2rem 0;
    background-color: var(--dark-card);
}

.light-mode .blog-categories {
    background-color: var(--light-card);
}

.categories-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.category-tag {
    padding: 0.5rem 1.5rem;
    border-radius: 2rem;
    font-size: 0.9rem;
    font-weight: 500;
    background-color: var(--dark-bg);
    transition: var(--transition);
}

.light-mode .category-tag {
    background-color: var(--light-bg);
}

.category-tag.active, 
.category-tag:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Featured Post */
.blog-featured {
    padding: 4rem 0;
    background-color: var(--dark-bg);
}

.light-mode .blog-featured {
    background-color: var(--light-bg);
}

.featured-post {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background-color: var(--dark-card);
    border-radius: 0.5rem;
    overflow: hidden;
}

.light-mode .featured-post {
    background-color: var(--light-card);
    box-shadow: var(--shadow);
}

.featured-image {
    height: 100%;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-content {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.post-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.post-category {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.post-date {
    color: var(--dark-text-muted);
    font-size: 0.9rem;
}

.light-mode .post-date {
    color: var(--light-text-muted);
}

.featured-content h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.featured-content p {
    margin-bottom: 2rem;
}

/* Blog Grid */
.blog-grid-section {
    padding: 4rem 0;
    background-color: var(--dark-bg);
}

.light-mode .blog-grid-section {
    background-color: var(--light-bg);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.blog-card {
    background-color: var(--dark-card);
    border-radius: 0.5rem;
    overflow: hidden;
    transition: var(--transition);
}

.light-mode .blog-card {
    background-color: var(--light-card);
    box-shadow: var(--shadow);
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-card-image {
    position: relative;
    height: 200px;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-card-image .post-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.25rem 0.75rem;
    background-color: var(--dark-bg);
    border-radius: 2rem;
    font-size: 0.8rem;
}

.light-mode .blog-card-image .post-category {
    background-color: var(--light-bg);
}

.blog-card-content {
    padding: 1.5rem;
}

.blog-card-content h3 {
    font-size: 1.3rem;
    margin: 0.5rem 0 1rem;
}

.blog-card-content p {
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    color: var(--dark-text-muted);
}

.light-mode .blog-card-content p {
    color: var(--light-text-muted);
}

.read-more {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.read-more i {
    transition: var(--transition);
}

.read-more:hover i {
    transform: translateX(5px);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.pagination a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--dark-card);
    font-size: 0.9rem;
    transition: var(--transition);
}

.light-mode .pagination a {
    background-color: var(--light-card);
    box-shadow: var(--shadow);
}

.pagination a.active,
.pagination a:hover {
    background-color: var(--primary-color);
    color: white;
}

.pagination a.next {
    width: auto;
    padding: 0 1.5rem;
    border-radius: 2rem;
    gap: 0.5rem;
}

/* Newsletter Section */
.newsletter-section {
    padding: 5rem 0;
    background-color: var(--dark-card);
    text-align: center;
}

.light-mode .newsletter-section {
    background-color: var(--light-card);
}

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

.newsletter-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.newsletter-content p {
    margin-bottom: 2rem;
    color: var(--dark-text-muted);
}

.light-mode .newsletter-content p {
    color: var(--light-text-muted);
}

.newsletter-form {
    display: flex;
    gap: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem 1.5rem;
    border-radius: 0.25rem;
    border: 1px solid var(--dark-border);
    background-color: var(--dark-bg);
    color: var(--dark-text);
    font-family: var(--font-sans);
}

.light-mode .newsletter-form input {
    border-color: var(--light-border);
    background-color: var(--light-bg);
    color: var(--light-text);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Blog Post Page Styles */
.post-header {
    padding: 10rem 0 4rem;
    background-color: var(--dark-bg);
}

.light-mode .post-header {
    background-color: var(--light-bg);
}

.post-header-content {
    max-width: 800px;
    margin: 0 auto;
}

.post-header-meta {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
}

.author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-name {
    font-weight: 600;
}

.post-header-title {
    font-size: 3rem;
    margin-bottom: 2rem;
    line-height: 1.2;
}

.post-featured-image {
    width: 100%;
    height: 500px;
    border-radius: 0.5rem;
    overflow: hidden;
    margin-bottom: 3rem;
}

.post-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 0;
}

.post-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.post-content h2 {
    font-size: 2rem;
    margin: 3rem 0 1.5rem;
}

.post-content h3 {
    font-size: 1.5rem;
    margin: 2.5rem 0 1.5rem;
}

.post-content ul, .post-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.post-content li {
    margin-bottom: 0.5rem;
}

.post-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--dark-text-muted);
}

.light-mode .post-content blockquote {
    color: var(--light-text-muted);
}

.post-content pre {
    background-color: var(--dark-card);
    padding: 1.5rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 2rem 0;
}

.light-mode .post-content pre {
    background-color: var(--light-card);
}

.post-content code {
    font-family: monospace;
    font-size: 0.9rem;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 3rem 0;
}

.post-tag {
    padding: 0.25rem 1rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    background-color: var(--dark-card);
    transition: var(--transition);
}

.light-mode .post-tag {
    background-color: var(--light-card);
    box-shadow: var(--shadow);
}

.post-tag:hover {
    background-color: var(--primary-color);
    color: white;
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    margin: 4rem 0;
    padding-top: 2rem;
    border-top: 1px solid var(--dark-border);
}

.light-mode .post-navigation {
    border-color: var(--light-border);
}

.post-nav-item {
    max-width: 45%;
}

.post-nav-label {
    font-size: 0.8rem;
    color: var(--dark-text-muted);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.light-mode .post-nav-label {
    color: var(--light-text-muted);
}

.post-nav-title {
    font-size: 1.1rem;
    font-weight: 600;
}

.post-nav-item:hover .post-nav-title {
    color: var(--primary-color);
}

/* Related Posts */
.related-posts {
    padding: 4rem 0;
    background-color: var(--dark-card);
}

.light-mode .related-posts {
    background-color: var(--light-card);
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

/* Project Page Styles */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.project-card {
    background-color: var(--dark-card);
    border-radius: 0.5rem;
    overflow: hidden;
    transition: var(--transition);
}

.light-mode .project-card {
    background-color: var(--light-card);
    box-shadow: var(--shadow);
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-image {
    position: relative;
    height: 250px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0.1), rgba(10, 10, 10, 0.8));
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
}

.project-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.25rem 0.75rem;
    background-color: var(--primary-color);
    color: white;
    border-radius: 2rem;
    font-size: 0.8rem;
}

.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.project-content p {
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    color: var(--dark-text-muted);
}

.light-mode .project-content p {
    color: var(--light-text-muted);
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.project-tech span {
    font-size: 0.8rem;
    padding: 0.25rem 0.75rem;
    background-color: rgba(34, 197, 94, 0.1);
    color: var(--primary-color);
    border-radius: 1rem;
}

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

.project-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.project-link i {
    transition: var(--transition);
}

.project-link:hover {
    color: var(--primary-color);
}

.project-link:hover i {
    transform: translateX(3px);
}

/* Project Detail Page */
.project-header {
    padding: 10rem 0 4rem;
    background-color: var(--dark-bg);
}

.light-mode .project-header {
    background-color: var(--light-bg);
}

.project-header-content {
    max-width: 800px;
    margin: 0 auto;
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.project-meta-item {
    display: flex;
    flex-direction: column;
}

.project-meta-label {
    font-size: 0.9rem;
    color: var(--dark-text-muted);
    margin-bottom: 0.5rem;
}

.light-mode .project-meta-label {
    color: var(--light-text-muted);
}

.project-meta-value {
    font-weight: 600;
}

.project-header-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.project-header-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--dark-text-muted);
}

.light-mode .project-header-description {
    color: var(--light-text-muted);
}

.project-header-links {
    display: flex;
    gap: 1rem;
}

.project-gallery {
    padding: 4rem 0;
    background-color: var(--dark-card);
}

.light-mode .project-gallery {
    background-color: var(--light-card);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    border-radius: 0.5rem;
    overflow: hidden;
    height: 250px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Blog Post Page Styles */
.post-header {
    padding: 10rem 0 2rem;
    background-color: var(--dark-bg);
}

.light-mode .post-header {
    background-color: var(--light-bg);
}

.post-header-content {
    max-width: 800px;
    margin: 0 auto;
}

.post-header-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.post-category {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.post-date {
    color: var(--dark-text-muted);
    font-size: 0.9rem;
}

.light-mode .post-date {
    color: var(--light-text-muted);
}

.post-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-image {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
}

.author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-name {
    font-weight: 600;
}

.post-header-title {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 2rem;
}

.post-featured-image {
    width: 100%;
    max-width: 1000px;
    height: 400px;
    margin: 0 auto;
    border-radius: 0.5rem;
    overflow: hidden;
}

.post-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 0;
}

.post-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.post-content h2 {
    font-size: 2rem;
    margin: 3rem 0 1.5rem;
}

.post-content h3 {
    font-size: 1.5rem;
    margin: 2.5rem 0 1.5rem;
}

.post-content ul, .post-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.post-content li {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.post-content pre {
    background-color: var(--dark-card);
    padding: 1.5rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 2rem 0;
}

.light-mode .post-content pre {
    background-color: var(--light-card);
}

.post-content code {
    font-family: monospace;
    font-size: 0.9rem;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 3rem 0;
}

.post-tag {
    padding: 0.25rem 1rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    background-color: var(--dark-card);
    transition: var(--transition);
}

.light-mode .post-tag {
    background-color: var(--light-card);
    box-shadow: var(--shadow);
}

.post-tag:hover {
    background-color: var(--primary-color);
    color: white;
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    margin: 4rem 0;
    padding-top: 2rem;
    border-top: 1px solid var(--dark-border);
}

.light-mode .post-navigation {
    border-color: var(--light-border);
}

.post-nav-item {
    max-width: 45%;
}

.post-nav-label {
    font-size: 0.8rem;
    color: var(--dark-text-muted);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.light-mode .post-nav-label {
    color: var(--light-text-muted);
}

.post-nav-title {
    font-size: 1.1rem;
    font-weight: 600;
}

.post-nav-item:hover .post-nav-title {
    color: var(--primary-color);
}

/* Related Posts */
.related-posts {
    padding: 4rem 0;
    background-color: var(--dark-card);
}

.light-mode .related-posts {
    background-color: var(--light-card);
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.blog-card {
    background-color: var(--dark-bg);
    border-radius: 0.5rem;
    overflow: hidden;
    transition: var(--transition);
}

.light-mode .blog-card {
    background-color: var(--light-bg);
    box-shadow: var(--shadow);
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-card-image {
    position: relative;
    height: 200px;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-card-image .post-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.25rem 0.75rem;
    background-color: var(--dark-bg);
    border-radius: 2rem;
    font-size: 0.8rem;
}

.light-mode .blog-card-image .post-category {
    background-color: var(--light-bg);
}

.blog-card-content {
    padding: 1.5rem;
}

.blog-card-content h3 {
    font-size: 1.3rem;
    margin: 0.5rem 0 1rem;
}

.blog-card-content p {
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    color: var(--dark-text-muted);
}

.light-mode .blog-card-content p {
    color: var(--light-text-muted);
}

.read-more {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.read-more i {
    transition: var(--transition);
}

.read-more:hover i {
    transform: translateX(5px);
}

/* Newsletter Section */
.newsletter-section {
    padding: 5rem 0;
    background-color: var(--dark-bg);
    text-align: center;
}

.light-mode .newsletter-section {
    background-color: var(--light-bg);
}

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

.newsletter-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.newsletter-content p {
    margin-bottom: 2rem;
    color: var(--dark-text-muted);
}

.light-mode .newsletter-content p {
    color: var(--light-text-muted);
}

.newsletter-form {
    display: flex;
    gap: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem 1.5rem;
    border-radius: 0.25rem;
    border: 1px solid var(--dark-border);
    background-color: var(--dark-card);
    color: var(--dark-text);
    font-family: var(--font-sans);
}

.light-mode .newsletter-form input {
    border-color: var(--light-border);
    background-color: var(--light-card);
    color: var(--light-text);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Responsive Styles for Blog Post */
@media (max-width: 992px) {
    .post-header-title {
        font-size: 2.2rem;
    }
    
    .post-featured-image {
        height: 350px;
    }
    
    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .post-header {
        padding: 8rem 0 2rem;
    }
    
    .post-header-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .post-header-title {
        font-size: 1.8rem;
    }
    
    .post-featured-image {
        height: 250px;
    }
    
    .post-content h2 {
        font-size: 1.6rem;
    }
    
    .post-content h3 {
        font-size: 1.3rem;
    }
    
    .post-navigation {
        flex-direction: column;
        gap: 2rem;
    }
    
    .post-nav-item {
        max-width: 100%;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
}

/* Responsive Styles for Blog and Projects */
@media (max-width: 992px) {
    .featured-post {
        grid-template-columns: 1fr;
    }
    
    .featured-image {
        height: 300px;
    }
    
    .blog-grid, .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    .post-header-title, .project-header-title {
        font-size: 2.5rem;
    }
    
    .post-featured-image {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .blog-hero, .post-header, .project-header {
        padding: 8rem 0 3rem;
    }
    
    .featured-content {
        padding: 2rem;
    }
    
    .featured-content h2 {
        font-size: 1.5rem;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .blog-grid, .projects-grid, .related-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .post-header-title, .project-header-title {
        font-size: 2rem;
    }
    
    .post-featured-image {
        height: 300px;
    }
    
    .post-navigation {
        flex-direction: column;
        gap: 2rem;
    }
    
    .post-nav-item {
        max-width: 100%;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .categories-list {
        gap: 0.5rem;
    }
    
    .category-tag {
        padding: 0.4rem 1rem;
        font-size: 0.8rem;
    }
    
    .featured-content {
        padding: 1.5rem;
    }
    
    .post-header-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .project-meta {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Animation Delays */
.timeline-item:nth-child(1),
.education-card:nth-child(1),
.skill-card:nth-child(1),
.contact-card:nth-child(1),
.blog-card:nth-child(1),
.project-card:nth-child(1) {
    transition-delay: 0.1s;
}

.timeline-item:nth-child(2),
.education-card:nth-child(2),
.skill-card:nth-child(2),
.contact-card:nth-child(2),
.blog-card:nth-child(2),
.project-card:nth-child(2) {
    transition-delay: 0.2s;
}

.timeline-item:nth-child(3),
.education-card:nth-child(3),
.skill-card:nth-child(3),
.contact-card:nth-child(3),
.blog-card:nth-child(3),
.project-card:nth-child(3) {
    transition-delay: 0.3s;
}

.timeline-item:nth-child(4),
.education-card:nth-child(4),
.skill-card:nth-child(4),
.contact-card:nth-child(4),
.blog-card:nth-child(4),
.project-card:nth-child(4) {
    transition-delay: 0.4s;
}

.timeline-item:nth-child(5),
.skill-card:nth-child(5),
.blog-card:nth-child(5),
.project-card:nth-child(5) {
    transition-delay: 0.5s;
}

.blog-card:nth-child(6),
.project-card:nth-child(6) {
    transition-delay: 0.6s;
}

/* For users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}