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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background-color: #FFFFFF;
    color: #1A1A1A;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 600;
    line-height: 1.3;
    color: #1A1A1A;
}

a {
    color: #0066CC;
    text-decoration: none;
    transition: color 0.2s ease;
}

p {
    margin-bottom: 1rem;
    color: #666666;
}

/* Navigation */
.navbar {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 2rem 3rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: none;
    position: relative;
    background: transparent;
}

.logo {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #1A1A1A;
    text-decoration: none;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: #666666;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s ease;
    cursor: pointer;
}

.nav-link:hover {
    color: #1A1A1A;
}

.nav-link.active {
    color: #0066CC;
}

.theme-toggle {
    background: none;
    border: none;
    color: #666666;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    margin-left: 1rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    color: #1A1A1A;
    background-color: rgba(102, 102, 102, 0.1);
}

.theme-toggle .sun-icon {
    display: block;
}

.theme-toggle .moon-icon {
    display: none;
}

/* Dark mode toggle states */
[data-theme="dark"] .theme-toggle .sun-icon {
    display: none;
}

[data-theme="dark"] .theme-toggle .moon-icon {
    display: block;
}

[data-theme="light"] .theme-toggle .sun-icon {
    display: block;
}

[data-theme="light"] .theme-toggle .moon-icon {
    display: none;
}

/* Main Container */
.main-container {
    min-height: 100vh;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
}

/* About Section */
.about-section {
    padding: 4rem 0;
}

.about-header {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
    margin-bottom: 3rem;
}

.about-text {
    flex: 1;
}

.about-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-weight: 600;
    color: #1A1A1A;
    line-height: 1.2;
}

.highlight {
    color: #0066CC;
    font-weight: 600;
}

.about-content {
    max-width: 800px;
    line-height: 1.8;
    font-size: 1.1rem;
    color: #666666;
}

.profile-image {
    flex-shrink: 0;
}

.profile-image img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.bio-section {
    margin-top: 3rem;
}

.bio-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #1A1A1A;
    font-weight: 600;
}

.bio-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666666;
    margin-bottom: 1.5rem;
}

/* Projects Section */
.projects-section {
    padding: 4rem 0;
    border-top: 1px solid #E0E0E0;
    margin-top: 3rem;
}

.projects-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 600;
    color: #1A1A1A;
}

.projects-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.project-item {
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(224, 224, 224, 0.5);
}

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

.project-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1A1A1A;
    margin-bottom: 0.5rem;
}

.project-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #666666;
    margin-bottom: 0.5rem;
}

/* Contact Section */
.contact-section {
    padding: 4rem 0;
    border-top: 1px solid #E0E0E0;
    margin-top: 3rem;
}

.contact-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: #1A1A1A;
}

.contact-content {
    color: #666666;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.contact-links {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: #666666;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.2s ease;
}

.contact-link:hover {
    color: #1A1A1A;
}

.contact-link svg {
    flex-shrink: 0;
}

/* Blogs Section */
.blogs-section {
    padding: 4rem 0;
    border-top: 1px solid #E0E0E0;
    margin-top: 3rem;
}

.blogs-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: #1A1A1A;
}

.blogs-content {
    color: #666666;
    font-size: 1rem;
    line-height: 1.6;
}

.blog-posts {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.blog-post {
    border-bottom: 1px solid #E0E0E0;
    padding-bottom: 2rem;
}

.blog-post:last-child {
    border-bottom: none;
}

.blog-post h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1A1A1A;
}

.blog-date {
    font-size: 0.9rem;
    color: #888888;
    margin-bottom: 1rem;
}

.blog-content {
    color: #666666;
    line-height: 1.6;
}

.blog-content h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 1.5rem 0 1rem 0;
    color: #1A1A1A;
}

.blog-content p {
    margin-bottom: 1rem;
}

.blog-content ul, .blog-content ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

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

.blog-content code {
    background-color: #F5F5F5;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.blog-content pre {
    background-color: #F5F5F5;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1rem 0;
}

.blog-content pre code {
    background: none;
    padding: 0;
}

.blog-post-placeholder {
    text-align: center;
    padding: 2rem;
    border: 2px dashed #E0E0E0;
    border-radius: 8px;
}

.blog-post-placeholder h3 {
    color: #888888;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.blog-card {
    background: #FFFFFF;
    border: 1px solid #E0E0E0;
    border-radius: 12px;
    padding: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #00A3FF;
}

.blog-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1A1A1A;
    line-height: 1.3;
}

.blog-excerpt {
    color: #666666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.blog-excerpt p {
    margin: 0;
}

.read-more {
    display: flex;
    align-items: center;
    color: #00A3FF;
    font-weight: 500;
    font-size: 0.9rem;
}

.read-more span {
    transition: transform 0.2s ease;
}

.blog-card:hover .read-more span {
    transform: translateX(4px);
}

.blog-post-full {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.blog-post-header {
    margin-bottom: 3rem;
}

.back-link {
    display: inline-block;
    color: #00A3FF;
    text-decoration: none;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: #0088CC;
}

.blog-post-full h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1A1A1A;
    line-height: 1.2;
}

.blog-post-full h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 2.5rem 0 1.5rem 0;
    color: #1A1A1A;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #FFFFFF;
}

::-webkit-scrollbar-thumb {
    background: #E0E0E0;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #666666;
}

/* Dark Mode Support */
[data-theme="dark"] {
    background-color: #0A0A0A;
    color: #FFFFFF;
}

[data-theme="dark"] body {
    background-color: #0A0A0A;
    color: #FFFFFF;
}

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6,
[data-theme="dark"] .about-title,
[data-theme="dark"] .projects-title,
[data-theme="dark"] .contact-title,
[data-theme="dark"] .blogs-title,
[data-theme="dark"] .project-title {
    color: #FFFFFF !important;
}

[data-theme="dark"] p,
[data-theme="dark"] .about-content p,
[data-theme="dark"] .bio-section p,
[data-theme="dark"] .project-description,
[data-theme="dark"] .contact-content p,
[data-theme="dark"] .blogs-content p {
    color: #A1A1AA !important;
}

[data-theme="dark"] .blog-post {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

[data-theme="dark"] .blog-post h3 {
    color: #FFFFFF !important;
}

[data-theme="dark"] .blog-date {
    color: #A1A1AA !important;
}

[data-theme="dark"] .blog-content {
    color: #A1A1AA !important;
}

[data-theme="dark"] .blog-content h4 {
    color: #FFFFFF !important;
}

[data-theme="dark"] .blog-content code {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: #FFFFFF !important;
}

[data-theme="dark"] .blog-content pre {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

[data-theme="dark"] .blog-post-placeholder {
    border: 2px dashed rgba(255, 255, 255, 0.1) !important;
}

[data-theme="dark"] .blog-post-placeholder h3 {
    color: #A1A1AA !important;
}

[data-theme="dark"] .blog-card {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

[data-theme="dark"] .blog-card:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: #00A3FF !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="dark"] .blog-card h3 {
    color: #FFFFFF !important;
}

[data-theme="dark"] .blog-excerpt {
    color: #A1A1AA !important;
}

[data-theme="dark"] .blog-post-full h1 {
    color: #FFFFFF !important;
}

[data-theme="dark"] .blog-post-full h2 {
    color: #FFFFFF !important;
}

[data-theme="dark"] .logo {
    color: #FFFFFF;
}

[data-theme="dark"] .nav-link {
    color: #A1A1AA;
}

[data-theme="dark"] .nav-link:hover,
[data-theme="dark"] .nav-link.active {
    color: #FFFFFF;
}

[data-theme="dark"] .theme-toggle {
    color: #A1A1AA;
}

[data-theme="dark"] .theme-toggle:hover {
    color: #FFFFFF;
    background-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .about-content,
[data-theme="dark"] .bio-section p,
[data-theme="dark"] .project-description,
[data-theme="dark"] .contact-content,
[data-theme="dark"] .blogs-content,
[data-theme="dark"] .contact-link {
    color: #A1A1AA !important;
}

[data-theme="dark"] .projects-section,
[data-theme="dark"] .contact-section,
[data-theme="dark"] .blogs-section {
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

[data-theme="dark"] .project-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

[data-theme="dark"] .contact-link:hover {
    color: #FFFFFF !important;
}

[data-theme="dark"] .highlight {
    color: #00A3FF;
}

[data-theme="dark"] a {
    color: #00A3FF;
}

[data-theme="dark"] .profile-image img {
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] ::-webkit-scrollbar-track {
    background: #0A0A0A;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
    background: #A1A1AA;
}

/* Auto dark mode for users who haven't set a preference */
@media (prefers-color-scheme: dark) {
    body:not([data-theme]) {
        background-color: #0A0A0A;
        color: #FFFFFF;
    }
    
    body:not([data-theme]) h1,
    body:not([data-theme]) h2,
    body:not([data-theme]) h3,
    body:not([data-theme]) h4,
    body:not([data-theme]) h5,
    body:not([data-theme]) h6 {
        color: #FFFFFF;
    }
    
    body:not([data-theme]) p {
        color: #A1A1AA;
    }
    
    body:not([data-theme]) .logo {
        color: #FFFFFF;
    }
    
    body:not([data-theme]) .nav-link {
        color: #A1A1AA;
    }
    
    body:not([data-theme]) .nav-link:hover,
    body:not([data-theme]) .nav-link.active {
        color: #FFFFFF;
    }
    
    body:not([data-theme]) .theme-toggle {
        color: #A1A1AA;
    }
    
    body:not([data-theme]) .theme-toggle:hover {
        color: #FFFFFF;
        background-color: rgba(255, 255, 255, 0.1);
    }
    
    body:not([data-theme]) .highlight {
        color: #00A3FF;
    }
    
    body:not([data-theme]) a {
        color: #00A3FF;
    }
    
    body:not([data-theme]) .projects-section,
    body:not([data-theme]) .contact-section,
    body:not([data-theme]) .blogs-section {
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    body:not([data-theme]) .project-item {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-container {
        padding: 0 1rem;
    }
    
    .navbar {
        padding: 1.5rem 1rem 2rem 1rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        gap: 1.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .theme-toggle {
        margin-left: 0;
        margin-top: 0.5rem;
    }
    
    .about-header {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
        text-align: center;
    }
    
    .profile-image img {
        width: 150px;
        height: 150px;
    }
    
    .about-title {
        font-size: 2rem;
    }
    
    .about-content {
        font-size: 1rem;
    }
    
    .bio-section p {
        font-size: 1rem;
    }
    
    .projects-title {
        font-size: 1.5rem;
    }
    
    .contact-title {
        font-size: 1.5rem;
    }
    
    .blogs-title {
        font-size: 1.5rem;
    }
    
    .blog-card {
        padding: 1.5rem;
    }
    
    .blog-card h3 {
        font-size: 1.3rem;
    }
    
    .blog-post-full h1 {
        font-size: 2rem;
    }
    
    .blog-post-full h2 {
        font-size: 1.5rem;
    }
}

/* Blog content styles */
.blog-subtitle {
    font-style: italic;
    color: #666666;
    font-size: 1.1rem;
    margin-top: 0.5rem;
    margin-bottom: 0;
}

[data-theme="dark"] .blog-subtitle {
    color: #A1A1AA;
}

.blog-image {
    margin: 2rem 0;
    text-align: center;
}

.blog-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

[data-theme="dark"] .blog-image img {
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

.blog-image img:hover {
    transform: scale(1.02);
}

.image-caption {
    margin-top: 1rem;
    font-style: italic;
    color: #666666;
    font-size: 0.9rem;
}

[data-theme="dark"] .image-caption {
    color: #A1A1AA;
}

.blog-content blockquote {
    border-left: 4px solid #00A3FF;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background-color: #F8F9FA;
    font-style: italic;
}

[data-theme="dark"] .blog-content blockquote {
    background-color: rgba(255, 255, 255, 0.05);
    border-left-color: #00A3FF;
}

.blog-content blockquote p {
    margin: 0.5rem 0;
}

.blog-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 2rem 0 1rem 0;
    color: #1A1A1A;
}

[data-theme="dark"] .blog-content h3 {
    color: #FFFFFF;
}

.blog-content sup {
    font-size: 0.75em;
    vertical-align: super;
}

.blog-content ol {
    counter-reset: list-counter;
    list-style: none;
    padding-left: 1.5rem;
}

.blog-content ol li {
    counter-increment: list-counter;
    position: relative;
    margin-bottom: 0.5rem;
}

.blog-content ol li::before {
    content: counter(list-counter) ".";
    position: absolute;
    left: -1.5rem;
    font-weight: 600;
    color: #00A3FF;
}

.blog-copyright {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #E5E7EB;
    text-align: center;
    color: #666666;
    font-size: 0.9rem;
}

[data-theme="dark"] .blog-copyright {
    border-top-color: rgba(255, 255, 255, 0.1);
    color: #A1A1AA;
} 