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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    background: #ffffff;
    color: #2d3748;
    min-height: 100vh;
}

/* Navigation */
nav {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

nav .nav-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav .logo {
    font-size: 20px;
    font-weight: 700;
    color: #2d3748;
    text-decoration: none;
    letter-spacing: -0.5px;
}

nav .nav-links {
    display: flex;
    gap: 30px;
}

nav a {
    color: #2d3748;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

nav a:hover, nav a.active {
    color: #667eea;
}

nav a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: #667eea;
}

/* Mobile Nav */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: #2d3748;
    transition: all 0.3s ease;
}

/* Main Content Area */
main {
    display: flex;
    justify-content: center;
    padding: 20px;
}

.container {
    max-width: 100%;
    width: 100%;
    padding: 40px 20px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
}

.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #efeff0, #3f3f3f, #000000);
    border-radius: 20px 20px 0 0;
}

/* Sections */
.section {
    display: none;
}

.section.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

/* Typography */
h1 {
    font-size: 42px;
    color: #2d3748;
    margin-bottom: 20px;
    text-align: center;
    letter-spacing: -0.5px;
}

h2 {
    font-size: 28px;
    color: #2d3748;
    margin: 30px 0 20px;
    letter-spacing: -0.5px;
}

h3 {
    font-size: 22px;
    color: #2d3748;
    margin: 20px 0 15px;
}

p {
    line-height: 1.7;
    margin-bottom: 20px;
    color: #2d3748;
}

.label {
    font-size: 11px;
    letter-spacing: 2px;
    color: #999;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 8px;
    text-align: center;
}

.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
    margin: 30px 0;
}

/* Home Section */
#home .header {
    text-align: center;
    margin-bottom: 40px;
}

/* About Section */
#about .bio {
    font-size: 16px;
    line-height: 1.8;
    color: #2d3748;
}

.profile-image-wrapper {
    text-align: center;
    margin-bottom: 30px;
}

.profile-image {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.profile-image:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

@media (max-width: 600px) {
    .profile-image {
        width: 150px;
        height: 150px;
    }
}

/* Blog List */
.blog-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

.blog-card {
    padding: 25px;
    background: #f7fafc;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    cursor: pointer;
}

.blog-card:hover {
    background: #edf2f7;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.blog-card h3 {
    margin: 0 0 10px 0;
    color: #2d3748;
}

.blog-meta {
    font-size: 12px;
    color: #a0aec0;
    margin-bottom: 12px;
}

.blog-excerpt {
    font-size: 15px;
    color: #2d3748;
    line-height: 1.6;
    margin: 0;
}

/* Blog Post */
#post-content {
    font-size: 16px;
    line-height: 1.8;
}

#post-content h1,
#post-content h2,
#post-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
}

#post-content h1 {
    text-align: left;
}

#post-content code {
    background: #f7fafc;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 14px;
}

#post-content pre {
    background: #2d3748;
    color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
}

#post-content pre code {
    background: transparent;
    padding: 0;
    color: #ffffff;
}

#post-content blockquote {
    border-left: 4px solid #667eea;
    padding-left: 20px;
    margin: 20px 0;
    font-style: italic;
    color: #a0aec0;
}

#post-content img {
    max-width: 100%;
    border-radius: 8px;
    margin: 20px 0;
}

#post-content a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

#post-content a:hover {
    color: #2d3748;
    text-decoration: underline;
}

.back-link {
    display: inline-block;
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.back-link:hover {
    color: #2d3748;
}

.back-link i {
    margin-right: 5px;
}

/* Projects List */
.projects-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 30px;
}

.project-card {
    background: #f7fafc;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.project-card:hover {
    background: #edf2f7;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.project-card-header {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #e2e8f0;
    margin: 20px 0;
}

.project-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-thumbnail {
    transform: scale(1.05);
}

.project-card-content {
    padding: 25px;
    text-align: center;
}

.project-card-title-row {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
    gap: 15px;
    flex-wrap: wrap;
}

.project-card-title-row h3 {
    margin: 0;
    color: #2d3748;
}

.project-status {
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
    background: #e2e8f0;
    color: #2d3748;
}

.project-status.active {
    background: #c6f6d5;
    color: #22543d;
}

.project-status.completed {
    background: #bee3f8;
    color: #2c5282;
}

.project-status.archived {
    background: #e2e8f0;
    color: #718096;
}

.project-tagline {
    font-size: 15px;
    font-weight: 600;
    color: #667eea;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.project-description {
    font-size: 15px;
    color: #2d3748;
    line-height: 1.6;
    margin: 0 0 15px 0;
}

.project-tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
    justify-content: center;
}

.tech-tag {
    font-size: 12px;
    color: #667eea;
    background: #e6e9fc;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 500;
}

.project-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
    justify-content: center;
}

.project-links a {
    font-size: 13px;
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.project-links a:hover {
    color: #2d3748;
}

.project-links a i {
    margin-right: 5px;
}

.project-read-more {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 24px;
    background: #667eea;
    color: white;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.project-read-more:hover {
    background: #5568d3;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

/* Project Detail */
#project-content {
    font-size: 16px;
    line-height: 1.8;
}

#project-content h1,
#project-content h2,
#project-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
}

#project-content h1 {
    text-align: left;
}



#project-content h3 {
    color: #667eea;
    font-size: 20px;
    margin-top: 40px;
}

#project-content h2 + p em {
    font-size: 14px;
    color: #a0aec0;
    display: block;
    margin-bottom: 15px;
}


#project-content h3 + p em {
    font-size: 14px;
    color: #a0aec0;
    display: block;
    margin-bottom: 15px;
}

#project-content code {
    background: #f7fafc;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 14px;
}

#project-content pre {
    background: #2d3748;
    color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
}

#project-content pre code {
    background: transparent;
    padding: 0;
    color: #ffffff;
}

#project-content img {
    max-width: 100%;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#project-content a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

#project-content a:hover {
    color: #2d3748;
    text-decoration: underline;
}

/* Add icons to GitHub and Live Site links */
#project-content a[href*="github.com"]::before {
    font-family: "Font Awesome 6 Brands";
    content: "\f09b";
    margin-right: 6px;
    font-weight: 400;
}

#project-content a[href*="raceplanner.ramblingpm.com"]::before,
#project-content a[href^="http"]:not([href*="github.com"])::before {
    font-family: "Font Awesome 6 Free";
    content: "\f35d";
    margin-right: 6px;
    font-weight: 900;
}

#project-content ul,
#project-content ol {
    margin: 15px 0;
    padding-left: 25px;
}

#project-content li {
    margin-bottom: 10px;
    line-height: 1.7;
}

/* Tech Stack section styling */
#project-content h2:has(+ ul) + ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-left: 0;
    list-style: none;
    margin: 20px 0;
}

#project-content h2:has(+ ul) + ul li {
    display: inline-block;
    font-size: 14px;
    color: #667eea;
    background: #e6e9fc;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 500;
    margin-bottom: 0;
}

#project-content h2:has(+ ul) + ul li strong {
    color: #2d3748;
    margin-right: 4px;
}

#project-content hr {
    margin: 40px 0;
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
}

#project-content blockquote {
    border-left: 4px solid #667eea;
    padding-left: 20px;
    margin: 20px 0;
    font-style: italic;
    color: #a0aec0;
    background: #f7fafc;
    padding: 15px 20px;
    border-radius: 4px;
}

@media (max-width: 600px) {
    .project-card-header {
        height: 150px;
    }

    .project-card-content {
        padding: 20px;
    }

    .project-links {
        flex-direction: column;
        gap: 10px;
    }

    .tech-tag {
        font-size: 11px;
        padding: 3px 8px;
    }
}

@media (min-width: 1024px) {
    .project-card-header {
        height: 250px;
    }

    .project-card-content {
        padding: 30px;
    }

    #project-content {
        font-size: 18px;
        line-height: 2;
    }
}

/* Contact */
.email-wrapper {
    text-align: center;
    margin: 30px 0;
}

.email {
    font-size: 28px;
    font-weight: 700;
    color: #2d3748;
    margin: 15px 0;
    letter-spacing: -0.5px;
    transition: all 0.3s ease;
    display: inline-block;
}

.email:hover {
    color: #667eea;
    transform: scale(1.02);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #f7fafc;
    color: #2d3748;
    font-size: 22px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.social-link.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
}

.social-link.threads:hover {
    background: #000000;
    color: white;
}

.social-link.github:hover {
    background: #333333;
    color: white;
}

.social-link.x:hover {
    background: #000000;
    color: white;
}

/* Loading State */
.loading {
    text-align: center;
    padding: 60px 20px;
    color: #a0aec0;
}

/* Responsive Design - Mobile First */

/* Tablet and up (600px+) */
@media (min-width: 600px) {
    .container {
        max-width: 700px;
        padding: 50px 40px;
    }

    nav .nav-container {
        max-width: 900px;
    }

    h1 {
        font-size: 48px;
    }

    #post-content {
        font-size: 17px;
        line-height: 1.9;
    }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
    .container {
        max-width: 900px;
        padding: 60px 50px;
    }

    nav .nav-container {
        max-width: 1100px;
    }

    main {
        padding: 60px 40px;
    }

    h1 {
        font-size: 52px;
    }

    h2 {
        font-size: 32px;
    }

    h3 {
        font-size: 24px;
    }

    p {
        font-size: 17px;
        line-height: 1.8;
    }

    #post-content {
        font-size: 18px;
        line-height: 2;
    }

    .blog-card {
        padding: 30px;
    }
}

/* Large Desktop (1400px+) */
@media (min-width: 1400px) {
    .container {
        max-width: 1000px;
    }

    nav .nav-container {
        max-width: 1200px;
    }
}

/* Mobile styles (below 600px) */
@media (max-width: 600px) {
    nav .nav-links {
        position: fixed;
        top: 61px;
        left: 0;
        right: 0;
        background: #ffffff;
        flex-direction: column;
        padding: 20px;
        gap: 20px;
        border-bottom: 1px solid #e2e8f0;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        transition: all 0.3s ease;
        pointer-events: none;
    }

    nav .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-toggle {
        display: flex;
    }

    h1 {
        font-size: 32px;
    }

    h2 {
        font-size: 24px;
    }

    .email {
        font-size: 22px;
    }
}
.social-icon-row {
margin-top: 24px;
display: flex;
gap: 16px;
justify-content: center;
}

.social-circle {
width: clamp(36px, 5vw, 44px);  /* responsive but capped */
height: clamp(36px, 5vw, 44px);
border-radius: 50%;
background: #f3f3f7;
display: flex;
align-items: center;
justify-content: center;
transition: 0.25s ease, transform 0.25s ease;
box-shadow: 0 2px 6px rgba(0,0,0,0.08);
flex-shrink: 0;
}

.social-circle svg {
width: clamp(18px, 2.5vw, 22px);  /* responsive but capped */
height: clamp(18px, 2.5vw, 22px);
fill: #667eea;
transition: 0.25s ease;
}

.social-circle:hover {
background: #667eea;
transform: translateY(-3px);
}

.social-circle:hover svg {
fill: #fff;
}
