:root {
    --text-primary: #1a1a1a;
    --text-secondary: #666;
    --accent: #0066cc;
    --background: #EDEAE0;
    --border-light: #e5e5e5;
    --hover-bg: #f5f5f5;
    --max-width: 900px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--background);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 1rem;
}

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

a:hover {
    text-decoration: underline;
}

p {
    margin-bottom: 1.2rem;
}

/* Header and Navigation */
header {
    background: var(--background);
    padding: 1.2rem 0;
    border-bottom: 1px solid var(--border-light);
}

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

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    display: block;
    padding: 0.6rem 1.2rem;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 15px;
    transition: background 0.2s;
}

.nav-menu a:hover {
    background: var(--hover-bg);
}

.nav-menu a.active {
    background: #e8e8e8;
}

.nav-social {
    display: flex;
    gap: 0.8rem;
}

.nav-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: var(--text-primary);
    transition: opacity 0.2s;
}

.nav-social-link:hover {
    opacity: 0.6;
}

/* About/Home Page */
.about-header {
    padding: 2rem 0 1rem;
    text-align: center;
}

.name-title {
    font-size: 3.5rem;
    font-weight: 300;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.subtitle {
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--text-secondary);
}

.about-content {
    padding: 0 0 2rem;
}

.about-text {
    max-width: 650px;
    margin: 0 auto;
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-primary);
}

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

.about-text a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.about-text a:hover {
    color: var(--text-primary);
}

/* News Strip Marquee */
.news-strip {
    background: #F7F5EF;
    border-bottom: 1px solid #f0f0f0;
    padding: 0.35rem 0;
    overflow: hidden;
    margin-bottom: 0;
}

.news-marquee {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.news-track {
    display: inline-flex;
    animation: news-scroll 40s linear infinite;
    white-space: nowrap;
}

.news-item {
    color: #111010;
    font-size: 0.75rem;
    padding: 0 0.4rem;
    display: inline-block;
    font-weight: 300;
}

.news-separator {
    color: #d8d8d8;
    padding: 0 0.3rem;
    display: inline-block;
    font-size: 0.6rem;
}

@keyframes news-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.news-marquee:hover .news-track {
    animation-play-state: paused;
}

/* Page Headers */
.page-header {
    padding: 4rem 0 3rem;
    text-align: center;
    border-bottom: 1px solid var(--border-light);
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.page-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Projects Page */
.projects {
    padding: 3rem 0 4rem;
}

.project-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    max-width: 700px;
    margin: 0 auto;
}

.project-card {
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 2.5rem;
}

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

.project-card h3 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.project-tech {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    font-style: italic;
}

.project-card p {
    line-height: 1.7;
    margin-bottom: 1.2rem;
}

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

.project-link {
    color: var(--accent);
    font-size: 0.95rem;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* CV/Resume Page */
.cv-content {
    padding: 3rem 0 4rem;
    max-width: 700px;
    margin: 0 auto;
}

.cv-section {
    margin-bottom: 3.5rem;
}

.cv-section h2 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cv-entry {
    margin-bottom: 2.5rem;
}

.cv-header {
    margin-bottom: 0.5rem;
}

.cv-header h3 {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.cv-company-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-light);
}

.cv-company-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.cv-location {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.cv-role {
    margin-bottom: 1.5rem;
}

.cv-role:last-child {
    margin-bottom: 0;
}

.cv-role-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.8rem;
}

.cv-role-header h4 {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-primary);
    margin: 0;
}

.cv-date {
    color: var(--text-secondary);
    font-size: 0.95rem;
    white-space: nowrap;
}

.cv-entry h4 {
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 0.8rem;
    font-size: 1.05rem;
}

.cv-entry ul {
    margin-left: 0;
    list-style: none;
}

.cv-entry ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.cv-entry ul li:before {
    content: "–";
    position: absolute;
    left: 0;
    color: var(--text-secondary);
}

.skills-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.skill-category {
    display: flex;
    gap: 1rem;
}

.skill-category h4 {
    font-weight: 500;
    min-width: 120px;
    color: var(--text-primary);
}

.skill-category p {
    color: var(--text-secondary);
    margin: 0;
}

.cv-download {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
}

.cv-download a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Blog List */
.blog-list {
    padding: 3rem 0 4rem;
    max-width: 700px;
    margin: 0 auto;
}

.blog-preview {
    margin-bottom: 3rem;
}

.blog-preview h2 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.blog-preview h2 a {
    color: var(--text-primary);
    text-decoration: none;
}

.blog-preview h2 a:hover {
    color: var(--accent);
}

.blog-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.tag {
    background: var(--hover-bg);
    padding: 0.2rem 0.6rem;
    border-radius: 3px;
    font-size: 0.85rem;
}

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

.read-more {
    color: var(--accent);
    font-size: 0.95rem;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.no-posts {
    text-align: center;
    color: var(--text-secondary);
    padding: 3rem 0;
    font-size: 1.1rem;
}

/* Blog Post */
.blog-post {
    padding: 3rem 0 4rem;
    max-width: 650px;
    margin: 0 auto;
}

.post-header {
    margin-bottom: 3rem;
    text-align: center;
}

.post-header h1 {
    font-size: 2.2rem;
    font-weight: 400;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.post-content {
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 3rem;
}

.post-content h2 {
    font-size: 1.5rem;
    font-weight: 500;
    margin: 2.5rem 0 1rem;
}

.post-content h3 {
    font-size: 1.3rem;
    font-weight: 500;
    margin: 2rem 0 1rem;
}

.post-content ul,
.post-content ol {
    margin: 1.5rem 0 1.5rem 1.5rem;
}

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

.post-content blockquote {
    border-left: 3px solid var(--border-light);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    color: var(--text-secondary);
    font-style: italic;
}

.post-content code {
    background: var(--hover-bg);
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-size: 0.9em;
    font-family: 'SF Mono', Monaco, 'Courier New', monospace;
}

.post-content pre {
    background: var(--hover-bg);
    padding: 1.5rem;
    border-radius: 5px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

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

.post-footer {
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
}

.back-link {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* RSS Float Button */
.rss-float-button {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    background: #ff6600;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 1000;
    text-decoration: none;
}

.rss-float-button:hover {
    background: #ff7722;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

/* Contact Page */
.contact-content {
    padding: 3rem 0 4rem;
    max-width: 650px;
    margin: 0 auto;
}

.contact-info h2 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
}

.contact-info p {
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.contact-methods {
    margin: 3rem 0;
}

.contact-method {
    margin-bottom: 2rem;
}

.contact-method h3 {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.contact-method a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.social-links-large {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    border: 1px solid var(--border-light);
    border-radius: 5px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s;
}

.social-link:hover {
    background: var(--hover-bg);
    text-decoration: none;
}

/* Footer */
footer {
    border-top: 1px solid var(--border-light);
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.footer-container p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

.social-links {
    display: none; /* Hidden since we have them in nav */
}

/* Home sections - simplified */
.home-sections {
    display: none; /* Hiding the card grid for cleaner look */
}

/* Technology Carousel */
.tech-carousel-section {
    padding: 0 0 3rem;
    overflow: hidden;
}

.tech-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 1rem 0;
}

.carousel-track {
    display: inline-flex;
    animation: tech-scroll 35s linear infinite;
}

.tech-item {
    flex: 0 0 auto;
    width: 100px;
    text-align: center;
    margin: 0 0.75rem;
    background: #F7F5EF;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 1rem 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s, box-shadow 0.3s;
}

.tech-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tech-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.tech-item:hover .tech-icon {
    transform: scale(1.1);
}

.tech-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.tech-name {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
    font-weight: 500;
}

@keyframes tech-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Pause on hover */
.tech-carousel:hover .carousel-track {
    animation-play-state: paused;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-3 {
    margin-top: 3rem;
}

.mb-3 {
    margin-bottom: 3rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu {
        font-size: 0.95rem;
    }
    
    .nav-menu a {
        padding: 0.5rem 0.8rem;
    }
    
    .name-title {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .about-text,
    .post-content {
        font-size: 16px;
    }

    .cv-content {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .cv-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .skill-category {
        flex-direction: column;
        gap: 0.3rem;
    }
    
    .skill-category h4 {
        min-width: auto;
    }
}