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

:root {
    --color-bg: #fdfbf8;
    --color-text: #2b2112;
    --color-text-muted: #5c4a35;
    --color-accent: #2b2112;
    --color-border: #e5ddd4;
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Lato', -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(253, 251, 248, 0.95);
    backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid var(--color-border);
}

.nav-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    text-decoration: none;
}

.logo-img {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--color-text);
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2rem;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-greeting {
    font-size: 1rem;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
    animation: fadeUp 0.6s ease both;
}

.hero-name {
    margin-bottom: 0;
    animation: fadeUp 0.6s ease 0.1s both;
}

.hero-logo {
    width: clamp(280px, 50vw, 500px);
    height: auto;
    margin-bottom: -4rem;
}

.hero-portfolio {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 0;
    animation: fadeUp 0.6s ease 0.2s both;
}

.portfolio-box {
    width: 240px;
    height: 300px;
    background: linear-gradient(135deg, #ebe5db 0%, #ddd5c8 100%);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}


.box-image {
    width: 180%;
    height: 180%;
    object-fit: contain;
}

.box-label {
    font-family: 'Lexend Deca', sans-serif;
    font-size: 1.75rem;
    color: var(--color-text);
    font-weight: 400;
}

.portfolio-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(43, 33, 18, 0.12);
}

@media (max-width: 640px) {
    .hero-portfolio {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .portfolio-box {
        width: 200px;
        height: 160px;
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    background: var(--color-accent);
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 4px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    animation: fadeUp 0.6s ease 0.3s both;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Sections */
section {
    padding: 8rem 0;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 3rem;
}

/* About */
.about-content {
    max-width: 600px;
}

.about-content p {
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
}

.skill {
    padding: 0.5rem 1rem;
    background: #faf7f2;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.contact-email {
    margin-top: 2rem;
}

.contact-email a {
    color: var(--color-text);
    text-decoration: none;
    font-size: 1.1rem;
}

.contact-email a:hover {
    color: var(--color-text-muted);
}

/* Projects */
.projects {
    background: #faf7f2;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.project-image {
    height: 200px;
    background: linear-gradient(135deg, #ebe5db 0%, #ddd5c8 100%);
}

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

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

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

.project-link {
    font-size: 0.85rem;
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

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

/* Blog */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.blog-card {
    background: #faf7f2;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(43, 33, 18, 0.1);
}

.blog-image {
    height: 160px;
    background: linear-gradient(135deg, #ebe5db 0%, #ddd5c8 100%);
}

.blog-info {
    padding: 1.25rem;
}

.blog-date {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.blog-info h3 {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.blog-info p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

/* Contact */
.contact {
    text-align: center;
}

.contact-text {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
}

.social-links {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.social-link {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

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

/* Footer */
.footer {
    padding: 2rem;
    text-align: center;
    border-top: 1px solid var(--color-border);
}

.footer p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        gap: 1.5rem;
    }

    section {
        padding: 5rem 0;
    }

    .hero {
        padding-top: 5rem;
    }
}

@media (max-width: 480px) {
    .nav-links {
        display: none;
    }

    .hero-tagline {
        font-size: 1.1rem;
    }
}
