/* Style for IL MARMOCCHIO - Minimalist White Developer Theme */

html {
    scroll-behavior: smooth;
}

:root {
    --bg-color: #ffffff;
    --text-color: #171717;
    --text-muted: #737373;
    --accent-color: #10b981; /* Green accent color matching Marmocchio's green shirt */
    --accent-light: #ecfdf5;
    --card-bg: #fafafa;
    --card-border: #e5e5e5;
    --font-sans: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --transition: all 0.2s ease;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-sans);
    line-height: 1.6;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    padding: 40px 20px;
}

.wrapper {
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.content {
    width: 100%;
    text-align: center;
    flex-grow: 1;
}

/* Circular Chibi Logo */
.logo-container {
    margin-top: 20px;
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
}

.circular-logo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--accent-color);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.15);
    transition: var(--transition);
}

.circular-logo:hover {
    transform: scale(1.05) rotate(3deg);
    box-shadow: 0 12px 32px rgba(16, 185, 129, 0.25);
}

/* Title in caps */
.main-title {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 8px;
    color: var(--text-color);
}

.subtitle {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 40px;
}

/* Bio Card */
.bio-card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 28px 24px;
    margin-bottom: 40px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    text-align: left;
}

.bio-text {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--text-color);
}

.green-wizard {
    color: var(--accent-color);
    font-weight: 700;
}

/* Buttons/Links */
.links-container {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 50px;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 99px;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
}

.btn-dark {
    background-color: var(--text-color);
    color: var(--bg-color);
    border: 1px solid var(--text-color);
}

.btn-dark:hover {
    background-color: #262626;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid var(--card-border);
}

.btn-outline:hover {
    background-color: var(--card-bg);
    border-color: var(--text-muted);
    transform: translateY(-2px);
}

/* About Section */
.about-section {
    text-align: left;
    padding: 40px 0;
    border-top: 1px solid var(--card-border);
}

.about-section h2 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.about-section p {
    color: var(--text-muted);
    margin-bottom: 16px;
    font-size: 1rem;
}

/* Footer */
.footer {
    padding-top: 40px;
    border-top: 1px solid var(--card-border);
    width: 100%;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Responsiveness */
@media (max-width: 480px) {
    .main-title {
        font-size: 2rem;
    }
    .circular-logo {
        width: 120px;
        height: 120px;
    }
    .links-container {
        flex-direction: column;
        gap: 12px;
    }
    .btn {
        width: 100%;
    }
}

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background-color: var(--bg-color);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    width: 90%;
    max-width: 680px;
    padding: 28px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    position: relative;
    text-align: left;
    animation: modalSlideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--text-color);
}

#modal-title {
    font-size: 1.3rem;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 8px;
}

.modal-body-content {
    font-size: 0.95rem;
    color: #404040;
    max-height: 70vh;
    overflow-y: auto;
    margin-bottom: 24px;
    padding-right: 8px;
}

.modal-body-content p {
    margin-bottom: 12px;
}

.modal-body-content ul {
    margin-left: 20px;
    margin-bottom: 12px;
}

.modal-body-content li {
    margin-bottom: 8px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
}

/* Footer links style */
.footer-links {
    margin-top: 16px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
    margin: 0 4px;
}

.footer-links a:hover {
    color: var(--accent-color);
}

/* --- Added Header & Socials --- */
.header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--card-border);
}

.header-nav {
    display: flex;
    gap: 20px;
}

.header-link {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

.header-link:hover {
    color: var(--text-color);
}

.header-socials {
    display: flex;
    gap: 16px;
    align-items: center;
}

.social-icon {
    color: var(--text-muted);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icon:hover {
    color: var(--accent-color);
}

/* --- Added Curriculum Styles --- */
.cv-item {
    margin-bottom: 24px;
}

.cv-item h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.cv-date {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent-color);
    background-color: var(--accent-light);
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 8px;
}

/* --- Added Projects Styles --- */
.project-card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    transition: var(--transition);
}

.project-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.project-card h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.project-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.project-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition);
}

.project-link:hover {
    color: var(--text-color);
}

/* --- Added Blog Styles --- */
.blog-post {
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px dashed var(--card-border);
}

.blog-post:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.post-date {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 8px;
}

.blog-post h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.blog-post p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    line-height: 1.6;
}

.read-more-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition);
}

.read-more-link:hover {
    color: var(--text-color);
}

/* --- Back to Top Button --- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--bg-color);
    border: 1px solid var(--card-border);
    color: var(--text-color);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--accent-light);
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: translateY(-3px);
}

/* --- Blog Post Images --- */
.post-image-container {
    width: 100%;
    height: 180px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
    border: 1px solid var(--card-border);
}

.post-preview-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.blog-post:hover .post-preview-image {
    transform: scale(1.03);
}




