:root {
    --primary: #2563eb;
    --secondary: #3b82f6;
    --background: #ffffff;
    --text: #1f2937;
    --card-bg: #f8fafc;
    --card-border: #e2e8f0;
}

/* Remove duplicate root and keep only the dark theme variables */
:root {
    --primary: #60a5fa;
    --secondary: #93c5fd;
    --background: #0f172a;
    --surface: #1e293b;
    --text: #e2e8f0;
    --text-secondary: #94a3b8;
    --card-bg: #1e293b;
    --card-border: #334155;
    --card-hover: #2d3a52;
    --code-bg: #282c34;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--background);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    background: var(--surface);
    border: 1px solid var(--card-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

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

.content {
    background: var(--surface);
    color: var(--text);
}

.content h2 {
    color: var(--primary);
}

.content h3 {
    color: var(--secondary);
}

.content code {
    background: var(--code-bg);
    color: var(--text);
}

.content pre {
    background: var(--code-bg);
    border: 1px solid var(--card-border);
}

/* Update GitHub stats theme */
.github-stats img {
    filter: invert(0.9) hue-rotate(180deg);
}

/* Update tag styling */
.tag {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Update social buttons */
.social-button {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--card-border);
}

.social-button:hover {
    background: var(--primary);
    color: var(--background);
    border-color: var(--primary);
}

/* Add subtle gradient to sections */
section {
    background: linear-gradient(to bottom, var(--background), var(--surface));
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 3rem;
}

/* Update back link for content pages */
.back-link {
    color: var(--primary);
    opacity: 0.8;
}

.back-link:hover {
    opacity: 1;
}

/* Add subtle text shadow to headings */
h1, h2, h3 {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--background);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

/* Update hero section */
.hero {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.9) 100%);
    border-radius: 1.5rem;
    padding: 4rem 3rem;
    margin-bottom: 4rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.15), transparent 50%);
    pointer-events: none;
}

.profile {
    display: flex;
    align-items: center;
    gap: 4rem;
    position: relative;
    z-index: 1;
}

.profile-image {
    width: 180px;
    height: 180px;
    border-radius: 20px;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transform: rotate(-3deg);
    transition: all 0.4s ease;
}

.profile-image:hover {
    transform: rotate(0deg) scale(1.02);
    border-color: var(--primary);
}

.profile-text {
    flex: 1;
}

.profile-text h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.profile-text p {
    font-size: 1.2rem;
    color: #94a3b8;
    max-width: 600px;
    line-height: 1.6;
}

.wave {
    display: inline-block;
    animation: wave 2.5s infinite;
    transform-origin: 70% 70%;
    font-size: 2.5rem;
    margin-right: 0.5rem;
}

@keyframes wave {
    0%, 100% { transform: rotate(0deg); }
    20% { transform: rotate(15deg); }
    40% { transform: rotate(0deg); }
    60% { transform: rotate(15deg); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero {
        padding: 3rem 2rem;
    }

    .profile {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .profile-image {
        width: 150px;
        height: 150px;
    }

    .profile-text h1 {
        font-size: 2.2rem;
    }

    .profile-text p {
        font-size: 1.1rem;
        margin: 0 auto;
    }
}

/* Add these new styles for content pages */
.content {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

.content h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--text);
}

.content h2 {
    font-size: 1.8rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.content h3 {
    font-size: 1.4rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--secondary);
}

.content p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

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

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

/* Update inline code styling */
.content code {
    background: rgba(96, 165, 250, 0.1);
    color: #93c5fd;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-family: monospace;
    border: 1px solid rgba(96, 165, 250, 0.2);
}

/* Keep the pre > code blocks different */
.content pre code {
    background: transparent;
    color: var(--text);
    padding: 0;
    border: none;
}

/* Update code block styling */
.content pre {
    background: #1a1b26;
    border: 1px solid #2f3549;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin: 1.5rem 0;
    overflow-x: auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.content pre code {
    background: transparent;
    color: #a9b1d6;
    padding: 0;
    border: none;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Add syntax highlighting colors */
.content pre code .keyword,
.content pre code .type {
    color: #bb9af7; /* purple for keywords and types */
}

.content pre code .punctuation {
    color: #89ddff; /* light blue for punctuation */
}

.content pre code .string,
.content pre code .number {
    color: #9ece6a; /* green for strings and numbers */
}

.content pre code .comment {
    color: #565f89; /* muted blue for comments */
}

/* Add a subtle gradient background */
.content pre {
    background: linear-gradient(145deg, #1a1b26, #24283b);
}

/* Add hover effect */
.content pre:hover {
    border-color: #3d59a1;
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
    transition: all 0.3s ease;
}
.content pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}

.content img {
    max-width: 100%;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
}

.back-link {
    display: inline-block;
    margin-bottom: 2rem;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.back-link:hover {
    text-decoration: underline;
}
/* Additional styles for icons and headings */
.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Keep the existing root variables and base styles */

/* Update Knowledge Base section */
.knowledge-base {
    margin-top: 2rem;
    padding: 2rem;
    background: rgba(30, 41, 59, 0.5);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.knowledge-base .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.knowledge-base .card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text);
}

.knowledge-base .card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    background: rgba(15, 23, 42, 0.8);
}

.knowledge-base .card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.knowledge-base .card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Update Featured Projects section */
.projects {
    margin-top: 3rem;
    padding: 2rem;
    background: rgba(30, 41, 59, 0.5);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.project {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 0.75rem;
}

.project h3 {
    color: var(--text);
    margin-bottom: 1rem;
}

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

/* Update section headings */
section h2 {
    color: var(--text);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Update tags */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.tag {
    background: rgba(96, 165, 250, 0.1);
    border: 1px solid rgba(96, 165, 250, 0.2);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
}

/* Update project links */
.project-link {
    color: var(--primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.project-link:hover {
    opacity: 1;
    transform: translateX(5px);
}

/* Update Connect section */
.connect {
    margin-top: 3rem;
    text-align: center;
    padding: 2rem;
    background: rgba(30, 41, 59, 0.5);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.social-button {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text);
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.social-button:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

.github-stats {
    margin-top: 2rem;
}

.github-stats img {
    border-radius: 0.75rem;
    background: rgba(15, 23, 42, 0.6);
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .grid {
        grid-template-columns: 1fr;
    }
    
    .social-links {
        flex-direction: column;
        align-items: center;
    }
}
