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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

/* Accessibility Utilities */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #000;
    color: #fff;
    padding: 8px 16px;
    z-index: 1000;
    text-decoration: none;
    font-size: 14px;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
    outline: 2px solid #000;
    outline-offset: 2px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #333;
    outline-offset: 2px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease;
}

a:hover {
    opacity: 0.6;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Header - Centered layout like joanx.com */
.header {
    padding: 40px 20px 30px;
    text-align: center;
}

.logo {
    display: inline-block;
    margin-bottom: 20px;
}

.logo img {
    height: 80px;
    width: auto;
}

.nav {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.nav-link {
    font-size: 14px;
    font-weight: 400;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #000;
    opacity: 1;
}

/* Main Content */
.main {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 40px 60px;
    width: 100%;
}

/* Portfolio Grid - 4 columns */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.portfolio-item {
    display: block;
    overflow: hidden;
    border-radius: 4px;
    position: relative;
}

.portfolio-item:hover {
    opacity: 1;
}

.portfolio-image {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.portfolio-image img {
    max-width: 80%;
    max-height: 80%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%) brightness(0);
    opacity: 0.3;
    transition: filter 0.5s ease, opacity 0.5s ease, transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.portfolio-item:hover .portfolio-image img {
    filter: grayscale(0%) brightness(1);
    opacity: 1;
    transform: scale(1.05);
}

/* Portfolio info */
.portfolio-info {
    padding: 16px 8px;
    text-align: center;
}

.portfolio-title {
    font-size: 15px;
    font-weight: 600;
    color: #222;
    margin-bottom: 6px;
}

.portfolio-summary {
    font-size: 13px;
    font-weight: 400;
    color: #666;
    line-height: 1.5;
}

/* About Page */
.about-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.about-image {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 30px;
    background: #f5f5f5;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-bio {
    margin-bottom: 40px;
}

.about-bio p {
    font-size: 16px;
    color: #444;
    margin-bottom: 16px;
    line-height: 1.8;
}

/* About Sections */
.about-section {
    margin-bottom: 40px;
    text-align: left;
}

.about-section h2 {
    font-size: 18px;
    font-weight: 600;
    color: #222;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f0f0f0;
}

.about-section p {
    font-size: 15px;
    color: #555;
    margin-bottom: 12px;
    line-height: 1.75;
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.philosophy-item {
    font-size: 14px;
    color: #555;
    background: #f8f8f8;
    padding: 12px 16px;
    border-radius: 8px;
    border-left: 3px solid #333;
}

.philosophy-item strong {
    color: #222;
}

.about-services {
    margin-top: 40px;
}

.about-services h2 {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #999;
    margin-bottom: 16px;
}

.services-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.service-tag {
    font-size: 13px;
    font-weight: 400;
    color: #555;
    background: #f5f5f5;
    padding: 8px 16px;
    border-radius: 20px;
}

/* Footer */
.footer {
    padding: 40px 20px;
    text-align: center;
}

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

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: color 0.2s ease;
}

.social-link:hover {
    color: #000;
    opacity: 1;
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.copyright {
    font-size: 12px;
    color: #999;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .header {
        padding: 30px 15px 20px;
    }

    .logo img {
        height: 60px;
    }

    .nav {
        gap: 30px;
    }

    .main {
        padding: 15px 20px 40px;
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .about-image {
        width: 140px;
        height: 140px;
    }
}

@media (max-width: 480px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .nav {
        gap: 25px;
    }

    .nav-link {
        font-size: 13px;
    }

    .main {
        padding: 10px 15px 30px;
    }
}
