* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 2rem;
    background: color-mix(in srgb, var(--background) 95%, transparent);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    backdrop-filter: blur(12px);
    transition: all 0.3s ease;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    color: inherit;
}

.nav-links a {
    margin-left: 0;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.nav-link:hover {
    transform: translateY(-2px);
    color: var(--primary);
}

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #f8f9fa;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.cta-buttons {
    margin-top: 2rem;
}

.primary-btn, .secondary-btn {
    padding: 0.8rem 2rem;
    margin: 0 0.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: transform 0.3s ease;
}

.primary-btn {
    background: #007bff;
    color: white;
}

.secondary-btn {
    background: transparent;
    border: 2px solid #007bff;
    color: #007bff;
}

.primary-btn:hover, .secondary-btn:hover {
    transform: translateY(-2px);
}

section {
    padding: 5rem 2rem;
}

.about-content {
    display: flex;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.skill-tags span {
    background: #e9ecef;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.project-card {
    padding: 1.5rem;
    border-radius: var(--radius);
    transition: all 0.3s ease;
    background-color: var(--card);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-card h3, .project-card p {
    padding: 1rem;
}

.view-project {
    display: block;
    width: 100%;
    padding: 1rem;
    background: #007bff;
    color: white;
    border: none;
    cursor: pointer;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input, .contact-form textarea {
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.submit-btn {
    padding: 1rem;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

footer {
    margin-top: 4rem;
    padding: 2rem;
    background: var(--background);
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--muted-foreground);
}

@media (max-width: 768px) {
    .container {
        padding: 5rem 1rem 2rem;
    }

    .navbar {
        padding: 0.75rem 1rem;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .project-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
}

:root {
    --background: hsl(210, 40%, 98%);
    --foreground: hsl(222.2, 84%, 4.9%);
    --card: hsl(0, 0%, 100%);
    --card-foreground: hsl(222.2, 84%, 4.9%);
    --popover: hsl(0, 0%, 100%);
    --popover-foreground: hsl(222.2, 84%, 4.9%);
    --primary: hsl(221.2, 83.2%, 53.3%);
    --primary-foreground: hsl(210, 40%, 98%);
    --secondary: hsl(210, 40%, 96.1%);
    --secondary-foreground: hsl(222.2, 47.4%, 11.2%);
    --muted: hsl(210, 40%, 96.1%);
    --muted-foreground: hsl(215.4, 16.3%, 46.9%);
    --accent: hsl(210, 40%, 96.1%);
    --accent-foreground: hsl(222.2, 47.4%, 11.2%);
    --destructive: hsl(0, 84.2%, 60.2%);
    --destructive-foreground: hsl(210, 40%, 98%);
    --border: hsl(214.3, 31.8%, 91.4%);
    --input: hsl(214.3, 31.8%, 91.4%);
    --ring: hsl(221.2, 83.2%, 53.3%);
    --radius: 0.75rem;
}

/* Dark mode styles */
@media (prefers-color-scheme: dark) {
    :root {
        --background: hsl(222.2, 84%, 4.9%);
        --foreground: hsl(210, 40%, 98%);
        --card: hsl(222.2, 84%, 4.9%);
        --card-foreground: hsl(210, 40%, 98%);
        --popover: hsl(222.2, 84%, 4.9%);
        --popover-foreground: hsl(210, 40%, 98%);
        --primary: hsl(217.2, 91.2%, 59.8%);
        --primary-foreground: hsl(222.2, 47.4%, 11.2%);
        --secondary: hsl(217.2, 32.6%, 17.5%);
        --secondary-foreground: hsl(210, 40%, 98%);
        --muted: hsl(217.2, 32.6%, 17.5%);
        --muted-foreground: hsl(215, 20.2%, 65.1%);
        --accent: hsl(217.2, 32.6%, 17.5%);
        --accent-foreground: hsl(210, 40%, 98%);
        --destructive: hsl(0, 62.8%, 30.6%);
        --destructive-foreground: hsl(210, 40%, 98%);
        --border: hsl(217.2, 32.6%, 17.5%);
        --input: hsl(217.2, 32.6%, 17.5%);
        --ring: hsl(224.3, 76.3%, 48%);
    }
}

/* Base styles */
body {
    background-color: var(--background);
    color: var(--foreground);
}

/* Navigation styles */
.nav-links a {
    padding: 0.5rem;
    border-radius: 9999px;
    transition: all 300ms;
}

.nav-links a:hover {
    background-color: var(--secondary);
}

/* Project card styles */
.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.1);
}

.project-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.project-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: var(--secondary);
    border-radius: 12px;
    color: var(--primary);
    transition: all 0.3s ease;
}

.project-card:hover .project-icon {
    background: var(--primary);
    color: var(--primary-foreground);
    transform: scale(1.1);
}

/* Gradient text effect */
.gradient-text {
    background: linear-gradient(135deg, var(--primary), #f87171);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    transition: all 0.3s ease;
}

.dark .gradient-text {
    background: linear-gradient(135deg, #60a5fa, #f87171);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 25px rgba(96, 165, 250, 0.3);
}

/* Animation */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Add these new styles */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 1rem 2rem;
}

.hero-section {
    text-align: center;
    padding: 2rem 0 4rem;
}

.hero-section h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.subtitle {
    color: var(--muted-foreground);
    font-size: 1.25rem;
    max-width: 42rem;
    margin: 1.5rem auto;
}

/* Category filter styles */
.category-filter {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
    overflow-x: auto;
    padding: 0.5rem;
}

.filter-buttons {
    display: flex;
    gap: 0.5rem;
    background: var(--secondary);
    padding: 0.5rem;
    border-radius: 9999px;
    border: 1px solid var(--border);
}

.filter-button {
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    border: none;
    background: transparent;
    color: var(--muted-foreground);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-button:hover {
    color: var(--foreground);
}

.filter-button.active {
    background: var(--primary);
    color: var(--primary-foreground);
}

/* Dark mode specific styles */
.dark .filter-buttons {
    background: color-mix(in srgb, var(--background) 95%, white);
    border-color: color-mix(in srgb, var(--border) 80%, transparent);
}

.dark .filter-button {
    color: var(--muted-foreground);
}

.dark .filter-button:hover {
    color: var(--foreground);
}

.dark .filter-button.active {
    background: var(--primary);
    color: var(--primary-foreground);
}

.social-links {
    display: flex;
    gap: 0.5rem;
}

.hidden {
    display: none;
}

/* Dark mode styles */
.dark {
    background-color: var(--background);
    color: var(--foreground);
}

.flashlight {
    position: relative;
    display: inline-block;
}

.dark .flashlight::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 150%;
    background: radial-gradient(
        ellipse at center,
        rgba(96, 165, 250, 0.15) 0%,
        rgba(96, 165, 250, 0.05) 50%,
        transparent 70%
    );
    pointer-events: none;
    border-radius: 50%;
    filter: blur(20px);
}

/* Add these button styles to your existing styles.css */

/* Base button styles */
.button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
}

.button-default {
    background-color: var(--primary);
    color: var(--primary-foreground);
}

.button-default:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background-color: color-mix(in srgb, var(--primary) 90%, black);
}

/* Update dark mode styles */
.dark .project-card {
    background: color-mix(in srgb, var(--background) 95%, white);
    border-color: color-mix(in srgb, var(--border) 80%, transparent);
}

.dark .project-card:hover {
    box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.3);
    border-color: var(--primary);
}

.dark .project-icon {
    background: color-mix(in srgb, var(--secondary) 90%, black);
}

/* Smooth theme transition */
body {
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Main content padding to account for fixed navbar */
main {
    padding-top: 5rem;
}

/* Project grid fixes */
.project-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.project-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--secondary);
    border-radius: 50%;
    color: var(--primary);
}

/* Dark mode navbar fix */
.dark .navbar {
    background: color-mix(in srgb, var(--background) 95%, transparent);
    border-bottom: 1px solid var(--border);
}

/* Update theme toggle button styles */
#theme-toggle {
    background: transparent;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: inherit;
    transition: all 0.3s ease;
}

#theme-toggle:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

/* Remove any background from icons */
.moon-icon, .sun-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Update social icons spacing */
.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    color: inherit;
}

.social-links a:hover {
    color: var(--primary);
    transform: translateY(-2px);
    background: transparent;
}

/* Enhance gradient text in dark mode */
.dark .gradient-text {
    background: linear-gradient(135deg, #60a5fa, #f87171);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 30px rgba(96, 165, 250, 0.2);
}

/* Optional: Add animation to the glow effect */
@keyframes softPulse {
    0% { opacity: 0.7; }
    50% { opacity: 0.9; }
    100% { opacity: 0.7; }
}

.dark .flashlight::before {
    animation: softPulse 3s ease-in-out infinite;
}

/* Blog post styles */
.blog-post {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.blog-post .post-title {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.post-content {
    color: var(--foreground);
    line-height: 1.8;
    margin-top: 1.5rem;
}

.post-content p {
    margin-bottom: 1.5rem;
}

.post-content img,
.responsive-image {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin: 1.5rem 0;
    display: block;
    object-fit: contain;
    aspect-ratio: 16/9;
    background: var(--muted);
    transition: all 0.3s ease;
}

.post-content h2, 
.post-content h3, 
.post-content h4 {
    margin: 2rem 0 1rem;
    color: var(--foreground);
}

.post-content ul, 
.post-content ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.post-content blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--muted-foreground);
}

.post-content pre {
    background: var(--muted);
    padding: 1rem;
    border-radius: var(--radius);
    overflow-x: auto;
    margin: 1.5rem 0;
}

.post-content code {
    background: var(--muted);
    padding: 0.2rem 0.4rem;
    border-radius: var(--radius);
    font-size: 0.9em;
}

/* Add image container for better control */
.post-content figure,
.image-container {
    width: 100%;
    margin: 1.5rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Style image captions */
.post-content figcaption,
.image-caption {
    font-size: 0.9rem;
    color: var(--muted-foreground);
    text-align: center;
    margin-top: 0.5rem;
}

/* Responsive image sizes */
@media (max-width: 768px) {
    .post-content img,
    .responsive-image {
        margin: 1rem 0;
    }
}

/* Optional: Add loading animation */
.post-content img,
.responsive-image {
    opacity: 0;
    animation: imageLoad 0.3s ease forwards;
}

@keyframes imageLoad {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dark mode adjustments */
.dark .post-content img,
.dark .responsive-image {
    background: color-mix(in srgb, var(--background) 95%, white);
}

/* Blog section styles */
#blog-posts {
    width: 100%;
    max-width: 1400px;
    margin: 4rem auto;
    padding: 0 2rem;
}

#blog-posts h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.blog-posts-grid {
    display: grid;
    gap: 2.5rem;
    margin-top: 2rem;
}

@media (min-width: 1200px) {
    .blog-posts-grid {
        grid-template-columns: 1fr;
    }

    .blog-post {
        padding: 3rem;
    }

    .post-content {
        font-size: 1.2rem;
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .blog-posts-grid {
        grid-template-columns: 1fr;
    }

    .blog-post {
        padding: 2.5rem;
    }
}

@media (max-width: 767px) {
    #blog-posts {
        padding: 0 1rem;
        margin: 2rem auto;
    }

    .blog-posts-grid {
        gap: 1.5rem;
    }

    .blog-post {
        padding: 1.5rem;
    }

    .blog-post .post-title {
        font-size: 1.5rem;
    }

    .post-content {
        font-size: 1rem;
    }

    .post-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

.blog-post .post-title {
    font-size: 2rem;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.post-meta {
    display: flex;
    justify-content: flex-start;
    color: var(--muted-foreground);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.post-date {
    font-style: italic;
}

.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--foreground);
}

.post-content p {
    margin-bottom: 1.5rem;
}

.post-content img.responsive-image {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: cover;
    border-radius: var(--radius);
    margin: 2rem 0;
}

.error-message {
    color: var(--destructive);
    text-align: center;
    padding: 2rem;
    background: color-mix(in srgb, var(--destructive) 10%, transparent);
    border-radius: var(--radius);
    border: 1px solid var(--destructive);
} 